ErrorDocument und ProxyErrorOverride
Hallo, ich spreche mit einem Apache 2.2 via Rewrite-Proxy-Request einen Tomcat an. Nun möchte ich gerne automatisch eine Wartungsseite anzeigen, wenn der Tomcat heruntergefahren wird. Das geht wie folgt: ProxyErrorOverride On ErrorDocument 503 /wartung/wartungsseite.html Damit funktioniert aber die dynamische 404-Seite nicht mehr, die sonst der Tomcat bei einer falschen URL ausgegeben hat. Dazu müsste man entweder dem ProxyErrorOverride sagen, dass er nur bei 503 greifen soll, oder dem ErrorDocument sagen, dass es bei 404 den Tomcat requesten soll, aber bitte als Proxy-Request, da der tomcat ja nicht auf Port 80 läuft. Beides geht laut Doku nicht. Daher meine Frage: Gibt es noch eine andere Lösung für diese Problematik? Viele Grüße, Dirk -- Apache HTTP Server Mailing List users-de unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org sonstige Anfragen an users-de-h...@httpd.apache.org --
Re: ErrorDocument und ProxyErrorOverride
Am 16. April 2009 14:30 schrieb Treger, Dirk dirk.tre...@aperto.de: ich spreche mit einem Apache 2.2 via Rewrite-Proxy-Request einen Tomcat an. Nun möchte ich gerne automatisch eine Wartungsseite anzeigen, wenn der Tomcat heruntergefahren wird. [...] Gibt es noch eine andere Lösung für diese Problematik? Mir würde spontan ein hot standby einfallen, der dann (und nur dann) greifen würde, wenn in einem konfigurierten banancer der Tomcat-Server eben nicht erreichbar wäre. NameVirtualhost *:80 NameVirtualhost *:81 Virtualhost *:80 andere Direktiven Proxy balancer://hotstandby BalancerMember ajp://localhost:8080 # hot-standby BalancerMember http://localhost:81 status=+H /Proxy ProxyPassMatch ^(/.++(?=\.jsp))$ balancer://hotstandby$1 /Virtualhost Virtualhost *:81 andere Direktiven ErrorDocument 503 /wartung/wartungsseite.html RedirectMatch 503 ^/.*+(?!/wartung/wartungsseite\.html)$ /Virtualhost Bob -- Apache HTTP Server Mailing List users-de unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org sonstige Anfragen an users-de-h...@httpd.apache.org --
Re: [us...@httpd] mod_proxy and mod_rewrite issue
inas inassen wrote: Hi all, I have a web application running on tomcat with a context myapp I access this webapp via apache using a proxypass and proxy balancer == http://myserver.com/myapp Now, I want to use the url http://myserver.com and apache will forward my request to tomcat by adding the URI /myapp to this URL. mod_rewrite does that, but my question is that how can I avoid displaying the context path in the browser adress bar? so I want to write http://myserver.com/abd and to be redirected to http://myserver.com/myapp/abd without displaying the URL http://myserver.com/myapp/abd in the adress bar. I believe you are missing an element above : both Apache and Tomcat cannot be listening on the same port 80 on the same server. So you must be proxying http://myserver.com/abd; to http://myserver.com:8080/myapp/abd;, no ? Anyway, do you have other applications than /myapp on your Tomcat server ? If not, then you could make /myapp be the ROOT application under Tomcat. See here for info of how to do that : http://wiki.apache.org/tomcat/HowTo #38 If you do that, then you could access your (formerly) /myapp application directly on Tomcat by http://myserver.com:8080;. And by consequence, you could also from Apache proxy directly there. Another thing : have you looked at the AJP connectors (mod_proy_ajp and mod_jk) ? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Rewrite all except one case
Hi all, I play a long time with rewrite to get follow rule: server/foo/(.*) should proxied to server/abc/$1 This works with RewriteRule /foo/(.*) /abc/$1 [P] then all requests to directory /foo are proxied (also with arguments) to /abc/ but now I need one exception: /foo should be proxied / or redirected to /abc/ers I try this with RewriteCondition (PATH_INFO and SCRIPT_FILENAME) but without success. The condition is either always true or false in all cases. I don't find the right Condition or ServerVariable Does any have a hint or tip for me. Thanks for all regards Dietmar - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Rewrite all except one case
On Apr 16, 2009, at 3:07 AM, dietmar.muel...@eurotours.at wrote: Hi all, I play a long time with rewrite to get follow rule: server/foo/(.*) should proxied to server/abc/$1 This works with RewriteRule /foo/(.*) /abc/$1 [P] then all requests to directory /foo are proxied (also with arguments) to /abc/ but now I need one exception: /foo should be proxied / or redirected to /abc/ers I try this with RewriteCondition (PATH_INFO and SCRIPT_FILENAME) but without success. The condition is either always true or false in all cases. I don't find the right Condition or ServerVariable Try using RewriteCond and %{REQUEST_FILENAME}. If that doesn't help, what does your condition look like? Did you use RewriteLog to see what the server is trying to match against? Doug Bell -- Senior Developer, Plain Black Corp. all that groks is - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Rewrite all except one case
On Thu, Apr 16, 2009 at 10:07 AM, dietmar.muel...@eurotours.at wrote: Hi all, I play a long time with rewrite to get follow rule: server/foo/(.*) should proxied to server/abc/$1 This works with RewriteRule /foo/(.*) /abc/$1 [P] then all requests to directory /foo are proxied (also with arguments) to /abc/ but now I need one exception: /foo should be proxied / or redirected to /abc/ers I try this with RewriteCondition (PATH_INFO and SCRIPT_FILENAME) but without success. The condition is either always true or false in all cases. I don't find the right Condition or ServerVariable Best solution would be to have a different rule in front of your other rule: (And you don't need the P, in fact it might cause loops) For example: RewriteRule ^/foo$ /abc/ers [L] RewriteRule ^/foo/(.*) /abc/$1 The L flag cause apache to ignore subsequent rules. Krist -- krist.vanbes...@gmail.com kr...@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
I'm trying to get an accurate request/per second of my apache for different pages and for different server options. I am using both ab and siege against apache to try to find out how many users can be loading a specific page at a time. I find that if when concurrent connections are set to anything above 50-100, the server will run fine for 5-10 seconds but then completely stops accepting new connections after that. All connections from ab and siege returns connection time out. The higher I set the concurrent users, the faster this happens. If I set it to 1000, it happens almost immediately. It is as if the server has ran out on something. But I am not sure what, ran out of sockets? Cpu usageis showing as 2% and plenty of memory. Also this is done over LAN so the network is not the limiting factor. Surely apache must be able to handle over 100 simultaneous connections at the same time? My application will probably have more than 100 users making request at the same time. Any ideas? What command should I be using with ab/siege to properly probe the maximum request/second? PS. so far I am only benching the default page (ie. welcome to apache...)
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
Did the error log say something? It surely will have something incase its not able to find any resources or breached any limits! Regards Prasanna Ram On Thu, Apr 16, 2009 at 5:57 PM, asd asd ya...@hotmail.com wrote: I'm trying to get an accurate request/per second of my apache for different pages and for different server options. I am using both ab and siege against apache to try to find out how many users can be loading a specific page at a time. I find that if when concurrent connections are set to anything above 50-100, the server will run fine for 5-10 seconds but then completely stops accepting new connections after that. All connections from ab and siege returns connection time out. The higher I set the concurrent users, the faster this happens. If I set it to 1000, it happens almost immediately. It is as if the server has ran out on something. But I am not sure what, ran out of sockets? Cpu usageis showing as 2% and plenty of memory. Also this is done over LAN so the network is not the limiting factor. Surely apache must be able to handle over 100 simultaneous connections at the same time? My application will probably have more than 100 users making request at the same time. Any ideas? What command should I be using with ab/siege to properly probe the maximum request/second? PS. so far I am only benching the default page (ie. welcome to apache...)
Re: [us...@httpd] cgi http complete header
please... help ? How canI get rid of the extra http headers apache is sending ? 2009/4/16 Ruben Lihet evil...@gmail.com: I managed to get rid of the .htacces error. I had to add a RedirectBase /cgi-bin directive to the .htacces and now it's working. But another problem occured. Now because mod_rewrite is rewriting my url, the nph prefix for my script is ignored, so apache add his own header like this: HTTP/1.1 200 OK Date: Mon, 06 Apr 2009 23:58:47 GMT Server: Apache/2.2.3 (CentOS) Content-Length: 0 Connection: close Content-Type: text/plain; charset=UTF-8 How can I use mod_rewrite to pass the request-header to the nph-cgi and my script preserve its nph properties ? 2009/4/15 Ruben Lihet evil...@gmail.com: Okay, so .. I made a little test. In the same directory with my cgi script I write a .htaccess file containig this: Allow from all Options +FollowSymLinks RewriteEngine on RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1header=%{HTTP:Range} The problem now is that when I call the script like this: http://web.devel/cgi-bin/rs/24333/ the browser says: Not Found The requested URL /var/www/cgi-bin/rs/nph-main.cgi was not found on this server which I find very strange because the script is there. Another thing I noticed is that apache logs this error: [Tue Apr 07 00:59:08 2009] [error] [client 192.168.18.1] File does not exist: /var/www/html/var Any hints what could it be ? Thanks again! 2009/4/15 Ruben Lihet evil...@gmail.com: great, thanks, than I'll stick to mod_rewrite and do some digging in the docs! 2009/4/15 André Warnier a...@ice-sa.com: Ruben Lihet wrote: OK, but can mod_rewrite read the http-header ? That's exactly what Eric suggested. mod_rewrite reads the http header, and copies its content to an environment value, which your cgi program can just obtain from its running environment. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org -- Lihet Ruben Tel: +40 746 037 017 email: lihet.ru...@gmail.com, evil...@gmail.com Web: http://www.faultlessp.net/ - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
The error log is empty! Is there some sort of limit put on number of requests allowed from external host? I just tried ab -n 10 -c 300 http://localhost/ and it did not show the drop dead behavior after a certain period of time. However local benchmarking seems to have a ceiling of its own, once I increase the concurrent users to 500 it gives apr_socket_recv: Connection reset by peer (104) But at least 500 is a lot higher than 50. I hear apache is capable of serving thousands of requests per second, what am I missing? Thanks From: Prasanna Ram Venkatachalam Sent: Thursday, April 16, 2009 9:45 AM To: users@httpd.apache.org Subject: Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?! Did the error log say something? It surely will have something incase its not able to find any resources or breached any limits! Regards Prasanna Ram On Thu, Apr 16, 2009 at 5:57 PM, asd asd ya...@hotmail.com wrote: I'm trying to get an accurate request/per second of my apache for different pages and for different server options. I am using both ab and siege against apache to try to find out how many users can be loading a specific page at a time. I find that if when concurrent connections are set to anything above 50-100, the server will run fine for 5-10 seconds but then completely stops accepting new connections after that. All connections from ab and siege returns connection time out. The higher I set the concurrent users, the faster this happens. If I set it to 1000, it happens almost immediately. It is as if the server has ran out on something. But I am not sure what, ran out of sockets? Cpu usageis showing as 2% and plenty of memory. Also this is done over LAN so the network is not the limiting factor. Surely apache must be able to handle over 100 simultaneous connections at the same time? My application will probably have more than 100 users making request at the same time. Any ideas? What command should I be using with ab/siege to properly probe the maximum request/second? PS. so far I am only benching the default page (ie. welcome to apache...)
Re: [us...@httpd] cgi http complete header
On Thu, Apr 16, 2009 at 10:07 AM, Ruben Lihet evil...@gmail.com wrote: please... help ? How canI get rid of the extra http headers apache is sending ? Does it help if you use - (no quotes) for your substitution, just to get the side-effect of the RewriteRule? -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Regarding modules mod_fastcgi, mod_perl and mod_oprocmgr.
Hi Guys I have to completely replace the Apache 1.3 HTTP server with Apache 2.2. In Apache 1.3 modules like mod_fastcgi, mod_perl and mod_oprocmgr are present. Now I just wanted to confirm two things, 1) If our application does not use any CGI or perl scripts, Is it necessary to have the modules like mod_perl and mod_fastcgi to be present in the sever. 2) mod_oprocmgr is configured in Apache 1.3 and when I am looking to configure the mod_oprocmgr for Apache 2.2, the module (.so) file is not present. * Now my question is - Is this module not required in Apache 2.2? * If it is required, how could I install and configure this module. Any help will be really appreciated. Thanks Tarun CONFIDENTIALITY NOTICE This message and any attachment are confidential and may also be privileged. If you are not the intended recipient of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you are not the intended recipient please telephone or e-mail the sender and delete this message and any attachment from your system.
RE: [us...@httpd] mod_proxy and mod_rewrite issue
Thanks Andre, Yes you right, I'm not using the same port and either the same server My URL is: http://myserver.com/myapp and it's redirected by apache to http://mybackend.com:8080/myapp using mod_proxy_http and ajp://mybackend.com:8009/myapp using mod_proxy_ajp and both work fine. my issue is that I want to hide the URI in the browser when you click any link in the html page or when you write an URL in the adress bar. I think making my application as ROOT will answer my question to avoid specifiying the context path. Thanks Andre. Date: Thu, 16 Apr 2009 08:05:33 +0200 From: a...@ice-sa.com To: users@httpd.apache.org Subject: Re: [us...@httpd] mod_proxy and mod_rewrite issue inas inassen wrote: Hi all, I have a web application running on tomcat with a context myapp I access this webapp via apache using a proxypass and proxy balancer == http://myserver.com/myapp Now, I want to use the url http://myserver.com and apache will forward my request to tomcat by adding the URI /myapp to this URL. mod_rewrite does that, but my question is that how can I avoid displaying the context path in the browser adress bar? so I want to write http://myserver.com/abd and to be redirected to http://myserver.com/myapp/abd without displaying the URL http://myserver.com/myapp/abd in the adress bar. I believe you are missing an element above : both Apache and Tomcat cannot be listening on the same port 80 on the same server. So you must be proxying http://myserver.com/abd; to http://myserver.com:8080/myapp/abd;, no ? Anyway, do you have other applications than /myapp on your Tomcat server ? If not, then you could make /myapp be the ROOT application under Tomcat. See here for info of how to do that : http://wiki.apache.org/tomcat/HowTo #38 If you do that, then you could access your (formerly) /myapp application directly on Tomcat by http://myserver.com:8080;. And by consequence, you could also from Apache proxy directly there. Another thing : have you looked at the AJP connectors (mod_proy_ajp and mod_jk) ? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org _ Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! http://www.microsoft.com/windows/windowslive/default.aspx
Re: [us...@httpd] Re: Apache (php5/fcgi) can't resolve hostnames
On Wed, Apr 15, 2009 at 10:33 PM, Krist van Besien krist.vanbes...@gmail.com wrote: On Thu, Apr 16, 2009 at 12:30 AM, Aaron Turner synfina...@gmail.com wrote: Looks like I figured it out. OSX's internal name resolution API calls (gethostbyname?) apparently doesn't honor /etc/resolv.conf, but the 'host' command does. This is also why getent hosts is a better tool to debug DNS issues than the host command. Alas, getent doesn't exist on OSX. -- Aaron Turner http://synfin.net/ http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix Windows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
Could you give more detail about your apache? Also wud be better if u give the details of MPM mode u are using and their configuration details. I dont think there is any limit reg requests specific from external host. Prasanna Ram On Thu, Apr 16, 2009 at 7:47 PM, ya...@hotmail.com wrote: apr_socket_recv: Connection reset by peer (104)
[us...@httpd] Apache ldap authentication and secrurity
Server - RH5 httpd-2.2.3 I have setup a server that uses ssl ldap authentication. This all works fine. I am trying to understand the connection from a client browser to the server. I am sniffing the packets on the server with tcpdump and also have tried wireshark. Since the server is using http not https I assumed that all traffic from the client browser to the server would be in clear text. So, when I connect to the server with the client browser I get the authentication window. I enter a username and passwd. Looking at the traffic on the server I see everything but the username and passwd. I would of thought that it would transmit the username and pass in clear text to the server since it is using http. The web server goes to the ldap server using ssl, so that traffic is encrypted as I expected. I'm just confused as to why the username and pass is not seen when looking at the packets. This is of course good behavior, but I am just trying to understand how it works. It seems that I have done this before with earlier versions and have seen the username and pass. Maybe I'm just remembering this wrong. Anyone know how this works? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Apache ldap authentication and secrurity
On Thu, Apr 16, 2009 at 12:24 PM, apa...@buglecreek.com wrote: Server - RH5 httpd-2.2.3 I have setup a server that uses ssl ldap authentication. This all works fine. I am trying to understand the connection from a client browser to the server. I am sniffing the packets on the server with tcpdump and also have tried wireshark. Since the server is using http not https I assumed that all traffic from the client browser to the server would be in clear text. So, when I connect to the server with the client browser I get the authentication window. I enter a username and passwd. Looking at the traffic on the server I see everything but the username and passwd It's base64-encoded in the Authorization request header. -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Re: Wildcard patterns not allowed in Include /home/www/*/*.conf
Am 2009-04-13 08:04:38, schrieb Dan Poirier: Looking at the code, wildcards are only allowed in the last component of the path. So Include /home/www/foo/*.conf is okay, but not Include /home/www/*/httpd.conf. I wish, it could... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # http://www.tamay-dogan.net/ Michelle Konzack http://www.can4linux.org/ Apt. 917 http://www.flexray4linux.org/ 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
Re: [us...@httpd] cgi http complete header
Where do I have to put the dash - ? In this rule: RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1header=%{HTTP:Range} 2009/4/15 Ruben Lihet evil...@gmail.com: Okay, so .. I made a little test. In the same directory with my cgi script I write a .htaccess file containig this: Allow from all Options +FollowSymLinks RewriteEngine on RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1header=%{HTTP:Range} The problem now is that when I call the script like this: http://web.devel/cgi-bin/rs/24333/ the browser says: Not Found The requested URL /var/www/cgi-bin/rs/nph-main.cgi was not found on this server which I find very strange because the script is there. Another thing I noticed is that apache logs this error: [Tue Apr 07 00:59:08 2009] [error] [client 192.168.18.1] File does not exist: /var/www/html/var Any hints what could it be ? Thanks again! 2009/4/15 Ruben Lihet evil...@gmail.com: great, thanks, than I'll stick to mod_rewrite and do some digging in the docs! 2009/4/15 André Warnier a...@ice-sa.com: Ruben Lihet wrote: OK, but can mod_rewrite read the http-header ? That's exactly what Eric suggested. mod_rewrite reads the http header, and copies its content to an environment value, which your cgi program can just obtain from its running environment. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org -- Lihet Ruben Tel: +40 746 037 017 email: lihet.ru...@gmail.com, evil...@gmail.com Web: http://www.faultlessp.net/ - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] cgi http complete header
On Thu, Apr 16, 2009 at 2:52 PM, Ruben Lihet evil...@gmail.com wrote: Where do I have to put the dash - ? In this rule: RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1header=%{HTTP:Range} I don't really follow what you're doing with the rule, but I was thinking more like: RewriteCond %{HTTP:Range} (.*) RewriteRule nph-main.cgi - [E=MYRANGE:%1] -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] cgi http complete header
Yep, thats exactly what I needed. And it's very logical. When a range request is made, mod_rewrite sets an environment variable with the corresponding value. Thanks! Problem solved. 2009/4/16 Eric Covener cove...@gmail.com: On Thu, Apr 16, 2009 at 2:52 PM, Ruben Lihet evil...@gmail.com wrote: Where do I have to put the dash - ? In this rule: RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1header=%{HTTP:Range} I don't really follow what you're doing with the rule, but I was thinking more like: RewriteCond %{HTTP:Range} (.*) RewriteRule nph-main.cgi - [E=MYRANGE:%1] -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] WebDAV works for anything but Windows Vista and Windows 7
Hi all, my WebDAV setup works fine for Windows XP, Linux, Mac OS X, Java, but it doesn't work at all when using the native WebDAV client of Windows Vista (and Windows 7). https://www.numlock.ch/webdav/testshare user: testshare pwd: testshare The share uses a self-signed certificate and the configuration looks as follows: Directory /path/to/webdav/testshare Options Indexes Dav On AuthType Basic AuthName Some name AuthUserFile /path/to/pwdfile Require user testshare /Directory # Note: setenvif_module is loaded by default IfModule setenvif_module BrowserMatch Microsoft Data Access Internet Publishing Provider redirect-carefully BrowserMatch MS FrontPage redirect-carefully BrowserMatch ^WebDrive redirect-carefully BrowserMatch ^WebDAVFS/1.[012345] redirect-carefully BrowserMatch ^gnome-vfs/1.0 redirect-carefully BrowserMatch ^XML Spy redirect-carefully BrowserMatch ^Dreamweaver-WebDAV-SCM1 redirect-carefully /IfModule The error message on Windows Vista (64 bit business edition) reads in about: Specified folder invalid. Choose another folder Apache doesn't log any error at all, suggesting that Vista's request doesn't even reach the server for whatever strange reason (note that using a Java-based DAVExplorer client on the same Windows Vista box works fine, however). Strangely, I couldn't spot any WebDAV related error message in Windows Vista's logs either. I already tried a lot of the (server and client side) hints I found on the web, but none of them helped. I'd appreciate if any of you could confirm whether accessing my test share using Windows Vista (64 bit) works. The mission's primary target is to make my Apache WebDAV share work nicely with Vista/Windows 7 (or the other way round, more appropriately ;). Thanks Daniel - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Apache won't display index.cgi
I'm running Apache 2.0.58 and Apache2-AuthenRadius-0.6 for authentication on a Sun Sparc V210. I was running another radius module but this one seems better, so I switched. However, I can no longer get Apache to display my index.cgi page when I browse to the directory it's in. It prompts for authentication, which works, but all I get is a blank page. If I manually add index.cgi to the url, my script runs correctly. I think this is the relevant configuration. What have I missed? BTW, if I remove authentication, the index page comes right up. # DirectoryIndex index.cgi Directory /usr/local/web/docs PerlAuthenHandler Apache2::AuthenRadius PerlSetVar Auth_Radius_host1 xxx PerlSetVar Auth_Radius_port1 1812 PerlSetVar Auth_Radius_secret1 xxx PerlSetVar Auth_Radius_host2 x PerlSetVar Auth_Radius_port2 1812 PerlSetVar Auth_Radius_secret2 xxx PerlSetVar Auth_Radius_timeout 5 AuthName Web AuthType Basic Options ExecCGI AuthGroupFile /usr/local/web/conf/web_auth AuthAuthoritative on Require group web_auth /Directory -Mike - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] WebDAV works for anything but Windows Vista and Windows 7
antispam.apache@numlock.ch wrote: Hi all, my WebDAV setup works fine for Windows XP, Linux, Mac OS X, Java, but it doesn't work at all when using the native WebDAV client of Windows Vista (and Windows 7). [snip] I already tried a lot of the (server and client side) hints I found on the web, but none of them helped. Considering both the above, I doubt that this will help, but just in case you missed it : there is a long, long history of successive versions of Windows so-called web folders (aka web redirector) implementations that did not work, or worked only with patches, or worked differently wheter you had/have this or that version of MS-Office installed on the same PC or not and so on.. I would not be that surprised if Vista's implementation was different yet again, and caused problems yet again. Summaries (apparently recently updated) can be found here : http://greenbytes.de/tech/webdav/webfolder-client-list.html http://greenbytes.de/tech/webdav/webdav-redirector-list.html Maybe one hint, if you have not seen or tried it before : when you create/connect the DAV folder under Windows, at the moment it asks for the URL/path, make sure to add the :port number after the hostname, even if it is the default port for the protocol. Like, connect to http(s)://server.company.com:port/dirname - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] WebDAV works for anything but Windows Vista and Windows 7
André Warnier wrote: antispam.apache@numlock.ch wrote: Hi all, my WebDAV setup works fine for Windows XP, Linux, Mac OS X, Java, but it doesn't work at all when using the native WebDAV client of Windows Vista (and Windows 7). [snip] I already tried a lot of the (server and client side) hints I found on the web, but none of them helped. Considering both the above, I doubt that this will help, but just in case you missed it : there is a long, long history of successive versions of Windows so-called web folders (aka web redirector) implementations that did not work, or worked only with patches, or worked differently wheter you had/have this or that version of MS-Office installed on the same PC or not and so on.. I would not be that surprised if Vista's implementation was different yet again, and caused problems yet again. Summaries (apparently recently updated) can be found here : http://greenbytes.de/tech/webdav/webfolder-client-list.html http://greenbytes.de/tech/webdav/webdav-redirector-list.html Maybe one hint, if you have not seen or tried it before : when you create/connect the DAV folder under Windows, at the moment it asks for the URL/path, make sure to add the :port number after the hostname, even if it is the default port for the protocol. Like, connect to http(s)://server.company.com:port/dirname Sorry, according to the summaries above, it would seem that for Vista it may be just the opposite : the port number should /not/ be specified. However, another of the listed cases may apply : I see your URL is https://www.numlock.ch/webdav/testshare , which would fall in the category server-discovery of the above pages. Suggestion : - in the server configuration, define an Alias /testdav/ /webdav/testshare/ - in Windows, try connecting to https://www.numlock.ch/testdav - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
RE: [us...@httpd] WebDAV works for anything but Windows Vista and Windows 7
Vista and I'm assuming W7 have issues with most webdav, These are the extra steps on the client I've had to do to make vista work with webdav from a win server. (a) The below update must be applied. http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64displaylang=en It is also necessary to have the client machine completely current will all Windows updates (and client restarted of course). (b) Access through Internet Explorer does not work, the user must access via Windows Explorer: Windows Vista - Map Web Folder: - Computer - Map Network Drive - Connect to a Web site that you can use to store our documents and pictures - Enter address 2. Reduced WebDAV Functionality Even though connections will be able to made, there is reduced functionality with Windows Vista client WebDAV connections. File operations such as, copy, move and delete work but WebDAV enabled clients are not able to open or save files to the WebDAV location. This includes opening files from Microsoft Office (Word or Excel). Pete -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, April 16, 2009 5:29 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] WebDAV works for anything but Windows Vista and Windows 7 André Warnier wrote: antispam.apache@numlock.ch wrote: Hi all, my WebDAV setup works fine for Windows XP, Linux, Mac OS X, Java, but it doesn't work at all when using the native WebDAV client of Windows Vista (and Windows 7). [snip] I already tried a lot of the (server and client side) hints I found on the web, but none of them helped. Considering both the above, I doubt that this will help, but just in case you missed it : there is a long, long history of successive versions of Windows so-called web folders (aka web redirector) implementations that did not work, or worked only with patches, or worked differently wheter you had/have this or that version of MS-Office installed on the same PC or not and so on.. I would not be that surprised if Vista's implementation was different yet again, and caused problems yet again. Summaries (apparently recently updated) can be found here : http://greenbytes.de/tech/webdav/webfolder-client-list.html http://greenbytes.de/tech/webdav/webdav-redirector-list.html Maybe one hint, if you have not seen or tried it before : when you create/connect the DAV folder under Windows, at the moment it asks for the URL/path, make sure to add the :port number after the hostname, even if it is the default port for the protocol. Like, connect to http(s)://server.company.com:port/dirname Sorry, according to the summaries above, it would seem that for Vista it may be just the opposite : the port number should /not/ be specified. However, another of the listed cases may apply : I see your URL is https://www.numlock.ch/webdav/testshare , which would fall in the category server-discovery of the above pages. Suggestion : - in the server configuration, define an Alias /testdav/ /webdav/testshare/ - in Windows, try connecting to https://www.numlock.ch/testdav - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
[Test ~]# httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c [Test ~]# httpd -v Server version: Apache/2.2.11 (Unix) Server built: Mar 6 2009 09:12:52 It is a fresh install on fedora 10, with the default configuration benchmarking the default welcome page. Can anyone run some ab/siege and check the results? From: Prasanna Ram Venkatachalam Sent: Thursday, April 16, 2009 11:52 AM To: users@httpd.apache.org Subject: Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?! Could you give more detail about your apache? Also wud be better if u give the details of MPM mode u are using and their configuration details. I dont think there is any limit reg requests specific from external host. Prasanna Ram On Thu, Apr 16, 2009 at 7:47 PM, ya...@hotmail.com wrote: apr_socket_recv: Connection reset by peer (104)
[us...@httpd] How exactly does ab -n works? Please?
I read so many man pages but I still don't understand this, the -n flag basically tells it to make n number of requests. So assuming my server can take 10 request per second, I would expect ab -100 to take 10 seconds and ab -1000 to take 100 seconds. But that is not the case. I find that if I do ab -n 1 everything works fine. But if I do ab -n 3, the server also gives a time out. What is the logic here?
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
asd asd wrote: I find that if when concurrent connections are set to anything above 50-100, the server will run fine for 5-10 seconds but then completely stops accepting new connections after that. Not the server, this is TCP/IP 101. Client and server exhaust the number of possible tuples that identify the connection until WAIT_TIMEOUT expires, no more connections are possible. Use keepalives during your stress testing and you'll be much happier with the possible results. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
So unless I use multiple boxes, I'm not going to be able to service more than 50-100 requests per second no matter how fast apache is? -- From: William A. Rowe, Jr. wr...@rowe-clan.net Sent: Thursday, April 16, 2009 6:27 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?! asd asd wrote: I find that if when concurrent connections are set to anything above 50-100, the server will run fine for 5-10 seconds but then completely stops accepting new connections after that. Not the server, this is TCP/IP 101. Client and server exhaust the number of possible tuples that identify the connection until WAIT_TIMEOUT expires, no more connections are possible. Use keepalives during your stress testing and you'll be much happier with the possible results. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
ya...@hotmail.com wrote: So unless I use multiple boxes, I'm not going to be able to service more than 50-100 requests per second no matter how fast apache is? Read it again, that's not what I said. READ. Learn. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
RE: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
That is exactly what you said. Unless you mean keep alives? That's useless I 'm trying to serve requests from different clients, not multiple requests from the same client. So how is this going to work with connections getting exhausted at 100? Date: Thu, 16 Apr 2009 18:43:12 -0500 From: wr...@rowe-clan.net To: users@httpd.apache.org Subject: Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?! ya...@hotmail.com wrote: So unless I use multiple boxes, I'm not going to be able to service more than 50-100 requests per second no matter how fast apache is? Read it again, that's not what I said. READ. Learn. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
Guys, if i remember currently the default number of concurrent connections served by apache is 256. Right? Shud be good if u tune prefork settings further in httpd-mpm.conf and then rerun your test. Regards Prasanna Ram On Fri, Apr 17, 2009 at 6:07 AM, asd asd ya...@hotmail.com wrote: That is exactly what you said. Unless you mean keep alives? That's useless I 'm trying to serve requests from different clients, not multiple requests from the same client. So how is this going to work with connections getting exhausted at 100? Date: Thu, 16 Apr 2009 18:43:12 -0500 From: wr...@rowe-clan.net To: users@httpd.apache.org Subject: Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?! ya...@hotmail.com wrote: So unless I use multiple boxes, I'm not going to be able to service more than 50-100 requests per second no matter how fast apache is? Read it again, that's not what I said. READ. Learn. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Apache won't display index.cgi
Is it possible that the authentication module (whatever it is) you are using overrides the default index page settings of apache? If thats so, it wud be better to look into the paramters used with that particular module! Since without the module, its working, this might be the reason. (sorry i dont know much about the module you are using :() Regards Prasanna Ram On Fri, Apr 17, 2009 at 1:57 AM, Mike Diggins mike.digg...@mcmaster.cawrote: I'm running Apache 2.0.58 and Apache2-AuthenRadius-0.6 for authentication on a Sun Sparc V210. I was running another radius module but this one seems better, so I switched. However, I can no longer get Apache to display my index.cgi page when I browse to the directory it's in. It prompts for authentication, which works, but all I get is a blank page. If I manually add index.cgi to the url, my script runs correctly. I think this is the relevant configuration. What have I missed? BTW, if I remove authentication, the index page comes right up. # DirectoryIndex index.cgi Directory /usr/local/web/docs PerlAuthenHandler Apache2::AuthenRadius PerlSetVar Auth_Radius_host1 xxx PerlSetVar Auth_Radius_port1 1812 PerlSetVar Auth_Radius_secret1 xxx PerlSetVar Auth_Radius_host2 x PerlSetVar Auth_Radius_port2 1812 PerlSetVar Auth_Radius_secret2 xxx PerlSetVar Auth_Radius_timeout 5 AuthName Web AuthType Basic Options ExecCGI AuthGroupFile /usr/local/web/conf/web_auth AuthAuthoritative on Require group web_auth /Directory -Mike - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Weird timeout connections during benchmark (apache completely stops)?!
asd asd wrote: That is exactly what you said. Unless you mean keep alives? Yup. That's useless I 'm trying to serve requests from different clients, not multiple requests from the same client. So how is this going to work with connections getting exhausted at 100? Measuring the 'connect' time is so negligible to be almost immaterial, if you are generating httpd content and attempting to measure the capacity of your server. The exhaustion is not at 100, you merely perceive it to be. You want to combine concurrency (-c) and keepalives (-k) to replicate the processing load on httpd without exhausting the tcp connection id's. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Unsubscribe
Please Unsubscribe me. Thanks, Durga
Re: [us...@httpd] Unsubscribe
I'd like to think most people would at least try to follow the 'correct way(tm)' to unsubscribe... -- Glen Barber - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Unsubscribe
At 06:45 PM 4/16/2009, Durga Prasad (duprasad) wrote: Please Unsubscribe me. As the headers of every message say: list-unsubscribe: mailto:users-unsubscr...@httpd.apache.org - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Unsubscribe
**Hi Durga! Thank you and please send an email to users-unsubscr...@httpd.apache.org Btw, Are u really work at Cisco? :) On 4/17/09, Durga Prasad (duprasad) dupra...@cisco.com wrote: Please Unsubscribe me. Thanks, Durga -- Ken Zhao (SL: Ken March) http://zhaoke.com
Re: [us...@httpd] How exactly does ab -n works? Please?
On Thu, Apr 16, 2009 at 5:47 PM, ya...@hotmail.com wrote: I read so many man pages but I still don't understand this, the -n flag basically tells it to make n number of requests. So assuming my server can take 10 request per second, I would expect ab -100 to take 10 seconds and ab -1000 to take 100 seconds. But that is not the case. I find that if I do ab -n 1 everything works fine. But if I do ab -n 3, the server also gives a time out. What is the logic here? it doesn't do anything in parallel unless you pass -c. -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] chunked encoding mod_deflate
Hello, Just want to ask if possible to set mod_deflate + chunked encoding together, similar to yahoo.com, e.g. Transfer-Encoding=chunked Content-Encoding=gzip Currently I found if I set mod_deflate to process my php program, then it will skip Transfer-Encoding=chunked Any idea? Thanks. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org