[EMAIL PROTECTED] Strange problem mod_proxy_ajp, jboss and sessions.
Hi I have a strange session keeping problem between apache 2.2.3 and jboss 4.2.2. The java side of the problem is documented in the seam framework forum (http://www.seamframework.org/Community/StatelessSessionBeanAndModproxyajp) including a demo application to demonstrate the problem. In general, the problem is that when I access jboss directly I get the correct responce, but when I access it through apache with very simple mod_proxy_ajp configuration (ProxyPass /someplace/ ajp://localhost:8009/someplace/), I don't get the result. This problem is probably due to a combination of proxy settings and how jboss seam handles session, so if anybody here knows also java/seam please take a look at the post and see if you have any ideas. Thanks. -- Haim - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache 2.2.8 VirtuaHost and a NAS
Hi On Mon, 2008-03-03 at 21:10 -0900, Brian wrote: > DocumentRoot "L:/test" Wouldn't that be "L:\test", with a backslash? - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] SSLVerifyClient with IE7
I've setup a https site with Apache 2.0.52, mod_ssl 2.0.52 and OpenSSL 0.9.7a (Red Hat Enterprise Linux ES release 4 (Nahant Update 4)). A special directory should be optional authenticated via client certificate. This works with Firefox, Netscape, IE6 but not with IE7 (Windows XP SP2 and Windows Vista). When trying to access the page with IE7 the browser let me choose the client certificate but then shows the error message "The browser can not connect to the site.". In the log files of the server there's only 1 new line: [error] Re-negotiation handshake failed: Not accepted by client!? Here's the httpd.conf part for SSL: SSLEngine on SSLProtocol +SSLv3 SSLCipherSuite HIGH:MEDIUM:SSLv3 SSLCertificateFile /etc/httpd/conf/ssl.crt/mydomain.crt SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mydomain.key SSLCACertificateFile /etc/httpd/conf/ssl.crt/mydomain.ca-bundle SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 SSLVerifyClient optional SSLVerifyDepth 5 SSLCACertificateFile /etc/httpd/conf/protected/ssl.crt SSLOptions +FakeBasicAuth +StdEnvVars +ExportCertData Any suggestions? -- View this message in context: http://www.nabble.com/SSLVerifyClient-with-IE7-tp15827486p15827486.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Firefox and html
Hi all, I am just starting to investigate why: An html page (with an html extension), sent to Firefox (2.0.0.12), will render a page (with a form), and will allow me to 'post' it. But when the (Perl) cgi script returns the answer page (using a 'print qq~ ...' statement, the resulting page shows html code (Firefox does not render the page). Any ideas? -Grant - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache 2.2.8 VirtuaHost and a NAS
On Tue, Mar 4, 2008 at 7:13 AM, Graeme Fowler <[EMAIL PROTECTED]> wrote: > Hi > > On Mon, 2008-03-03 at 21:10 -0900, Brian wrote: > > DocumentRoot "L:/test" > > Wouldn't that be "L:\test", with a backslash? No, all paths in httpd.conf should use forward slashes. The problem of not being able to access network drives is typically explained by running apache as a service under privileges that don't allow network access (usually LocalSystem). See: http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Firefox and html
Hi, Grant Peel wrote: Hi all, I am just starting to investigate why: An html page (with an html extension), sent to Firefox (2.0.0.12), will render a page (with a form), and will allow me to 'post' it. But when the (Perl) cgi script returns the answer page (using a 'print qq~ ...' statement, the resulting page shows html code (Firefox does not render the page). Any ideas? Because you're not returning the correct content type. Sounds like it's being served as text/plain, not text/html. Neil. -- Neil Hillard[EMAIL PROTECTED] AgustaWestland http://www.whl.co.uk/ Disclaimer: This message does not necessarily reflect the views of Westland Helicopters Ltd. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] mod_rewrite, cookies and : in the value
Configuration: 2 servers which use two different cookies to help maintain sessions. The cookies are set domain wide so each server can actually update the others cookies. When a request is sent to either server, I want to be able to update the others cookies (session timeout time) with mod_rewrite due to an application limitation (which allows these to get out of sync). This is a simple task, except that the value of the cookie actually has a ":" in it which confuses mod_rewrite and the parameters since the parameter separator is a ":". Example: RewriteCond %{HTTP_COOKIE} "CookieName=(.*);" RewriteRule ^/ - [CO=CookieName:%1:domain.com:20:/,C] With the value of %1 being "list: someData|OtherData " Mod_rewrite takes this to be: RewriteRule ^/ - [CO=CookieName:list:someData|OtherData:domain.com:20:/,C] ...which just throws things off :) Does anyone have a trick which would allow a ":" to be in the data of a cookie when set? thanks benji --- Benji Spencer System Administrator Ph: 312-329-2288 smime.p7s Description: S/MIME cryptographic signature
[EMAIL PROTECTED] httpd process
hi all, i just installed apache on centos 5 and have it automatically start up when boot: chkconfig httpd on [EMAIL PROTECTED] ~]# ps aux | grep httpd root 2375 0.0 3.8 26412 9932 ?Ss 08:02 0:00 /usr/sbin/httpd apache2405 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2406 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2407 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2408 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2409 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2410 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2411 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2412 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd root 2892 0.0 0.2 3896 688 pts/0S+ 10:34 0:00 grep httpd why do i have so many httpd services running? i can't access to it (http://10.0.0.160), how do i troubleshoot this problem? less /etc/httpd/logs/access_log is empty. less /etc/httpd/logs/error_log and i got: [Mon Mar 03 13:30:03 2008] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_ t:s0 [Mon Mar 03 13:30:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Mar 03 13:30:04 2008] [notice] Digest: generating secret for digest authentication ... [Mon Mar 03 13:30:04 2008] [notice] Digest: done [Mon Mar 03 13:30:04 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Mon Mar 03 13:30:05 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Tue Mar 04 08:00:38 2008] [notice] caught SIGTERM, shutting down [Tue Mar 04 08:02:51 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:ht tpd_t:s0 [Tue Mar 04 08:02:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Mar 04 08:02:52 2008] [notice] Digest: generating secret for digest authentication ... [Tue Mar 04 08:02:52 2008] [notice] Digest: done [Tue Mar 04 08:02:53 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Tue Mar 04 08:02:53 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations anything i have done wrong??? thanks, t. hiep - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_rewrite, cookies and : in the value
On 2008-03-04, Ben Spencer wrote: > This is a simple task, except that the value of the cookie actually has > a ":" in it which confuses mod_rewrite and the parameters since the > parameter separator is a ":". You just need to escape the colon as “%3A” (percentage-three-uppercase A). -- Daniel’s linux notebook – http://www.opensource-notebook.com/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, 4 Mar 2008, Joshua Slive wrote: On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: hi all, i just installed apache on centos 5 and have it automatically start up when boot: why do i have so many httpd services running? This is entirely normal. See: http://httpd.apache.org/docs/2.2/mod/prefork.html i can't access to it (http://10.0.0.160), how do i troubleshoot this problem? What happens when you try to access that URL? The page cannot be displayed it from? What happens if you try to access http://127.0.0.1/ from the server? What does the Listen directive in httpd.conf look like? i don't have x windows install, but i'll install lynx to test. i haven't change anything in httpd.conf yet. i'll into next. any advice what i should change??? thanks, t. hiep - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > hi all, > > i just installed apache on centos 5 and have it automatically start up > when boot: > why do i have so many httpd services running? This is entirely normal. See: http://httpd.apache.org/docs/2.2/mod/prefork.html > i can't access to it (http://10.0.0.160), how do i troubleshoot this > problem? What happens when you try to access that URL? Where are you accessing it from? What happens if you try to access http://127.0.0.1/ from the server? What does the Listen directive in httpd.conf look like? Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > On Tue, 4 Mar 2008, Joshua Slive wrote: > > > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > >> hi all, > >> > >> i just installed apache on centos 5 and have it automatically start up > >> when boot: > > > >> why do i have so many httpd services running? > > > > This is entirely normal. See: > > http://httpd.apache.org/docs/2.2/mod/prefork.html > > > >> i can't access to it (http://10.0.0.160), how do i troubleshoot this > >> problem? > > > > What happens when you try to access that URL? > The page cannot be displayed What is the exact text that appears in the browser? (I'm guessing it is the standard network failure error message, but I want be sure.) > > >> it from? What happens if you try to access http://127.0.0.1/ from the > > server? What does the Listen directive in httpd.conf look like? > > > > i don't have x windows install, but i'll install lynx to test. i haven't > change anything in httpd.conf yet. i'll into next. any advice what i > should change??? The most likely explanations for not being able to access a running server have nothing to do with apache configuration. I would check the Listen directive just to be sure. But the problem is more likely to lie with your firewall (either internal to linux or a separate network firewall) or with other network configuration settings. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Firefox and html
Grant Peel wrote: Hi all, I am just starting to investigate why: An html page (with an html extension), sent to Firefox (2.0.0.12), will render a page (with a form), and will allow me to 'post' it. But when the (Perl) cgi script returns the answer page (using a 'print qq~ ...' statement, the resulting page shows html code (Firefox does not render the page). Any ideas? End original message. - Your script needs to send a Content-type header. If you don't do that, Firefox is assuming it is getting a text/plain document. Dragon ~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] ErrorDocument not working for HTTP code 413
On Mon, Mar 3, 2008 at 9:58 PM, <[EMAIL PROTECTED]> wrote: > Joshua, > > Since i need to limit the file size being uploaded either via Apache/httpd > or the plugin, i tried using the Apache LimitRequestBody attribute. > I noticed that when this kicks in, though i see an error in the Apache > error log saying that the file size is larger than that is allowed, > this does not result in Error 413 in the access log and nor does the > ErrorDocument kick in. > Was wondering why this would be the case? I explained that in my first email in this thread. Certain types of errordocs can't be overriden for security reasons. I'm not sure why the proper error code doesn't show up in the access log. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, 4 Mar 2008, Joshua Slive wrote: On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: On Tue, 4 Mar 2008, Joshua Slive wrote: > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: >> hi all, >> >> i just installed apache on centos 5 and have it automatically start up >> when boot: > >> why do i have so many httpd services running? > > This is entirely normal. See: > http://httpd.apache.org/docs/2.2/mod/prefork.html > >> i can't access to it (http://10.0.0.160), how do i troubleshoot this >> problem? > > What happens when you try to access that URL? The page cannot be displayed What is the exact text that appears in the browser? (I'm guessing it is the standard network failure error message, but I want be sure.) it from? What happens if you try to access http://127.0.0.1/ from the > server? What does the Listen directive in httpd.conf look like? > i don't have x windows install, but i'll install lynx to test. i haven't change anything in httpd.conf yet. i'll into next. any advice what i should change??? The most likely explanations for not being able to access a running server have nothing to do with apache configuration. I would check the Listen directive just to be sure. But the problem is more likely to lie with your firewall (either internal to linux or a separate network firewall) or with other network configuration settings. i found the problem in /etc/httpd/conf/httpd.conf #ServerName www.example.com:80 should be: ServerName 10.0.0.160:80 ServerName dev.jss.com:80 however, i just overwhelming with so many directives in this file. any advice on how to understand one by one. it's just so much i don't know where to start. i assume the link at the very beginning of the file is place to start. i'm kinda newbie on this stuff. i'm setup this box for development, but will duplicate this box for production later on. t. hiep - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, Mar 4, 2008 at 11:15 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > i found the problem in /etc/httpd/conf/httpd.conf > > #ServerName www.example.com:80 > > should be: > ServerName 10.0.0.160:80 > ServerName dev.jss.com:80 No, that wasn't your problem. When "UseCanonicalName off" is set (which is typically the default) ServerName doesn't do anything. And even when it does something, it wouldn't prevent you from connecting to the server. > > however, i just overwhelming with so many directives in this file. any > advice on how to understand one by one. it's just so much i don't know > where to start. i assume the link at the very beginning of the file is > place to start. > > i'm kinda newbie on this stuff. i'm setup this box for development, but > will duplicate this box for production later on. If you are completely lost, you should consider buying a book to get started: http://opensource.atlassian.com/confluence/oss/display/BOOKS/Books+on+Apache+HTTP+Server+%28httpd%29 But if you want to go at it yourself, it's not a bad idea to go through each directive in httpd.conf and look it up in the list here: http://httpd.apache.org/docs/2.2/mod/directives.html to figure out what it does. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] mod_rewrite, cookies and : in the value
> > This is a simple task, except that the value of the cookie actually has > > a ":" in it which confuses mod_rewrite and the parameters since the > > parameter separator is a ":". > > You just need to escape the colon as "%3A" (percentage-three-uppercase A). HmmmThanks. How to do that in the apache configuration? Thanks smime.p7s Description: S/MIME cryptographic signature
[EMAIL PROTECTED] Optimize for large file downloads on Windows
I tried posting the question below on alt.apache.configuration and comp.infosystems.www.servers.ms-windows, but I haven't received any replies, so I thought I would give this mailing list a shot. I'm afraid I do not know any experts. I have read every FAQ I could find and searched using all relevant terms I can think of. I haven't been able to find anything that appeared to relate to my specific issue. Hello, We have an in house http based records system at my company. Several years ago I converted it from running on IIS to Apache. Everything has worked perfectly. The server has to be Windows for a variety of reasons. Apache 2.0.45 was latest and greatest at the time, so that is what I have been using. The files are uploaded using a cgi/http post. They are downloaded using straight http. All files are zip compressed. We have started storing some larger files within the application. Some of the files are now 50 MB and greater. For my benchmark on this issue, I'm using a 47 MB file. As the files grew, the download time has become slower than I would have expected. On the 47 MB file, it is between 12 and 15 seconds every time. Given the number of files a user would pull over a day, this actually really adds up. To simplify troubleshooting, I just did a fresh install of the newest windows Apache with all the default options. It still takes 12 to 15 seconds. Now for the fun part. IIS 6 on the same server, download time is 3 seconds. It is reproducible on different machines. The servers are New HP DL360s with plenty of horsepower. It is a gigabit LAN. 2003 server. Straight Windows file copy takes about 2 seconds. I really don't want to have to go back to IIS. I'm sure there has got be a way to optimize my Apache configuration to speed it up. I can't imagine IIS being faster. I will be glad to provide any more info that might help. Any help you could provide would be greatly appreciated. -Matthew Kitchin - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Optimize for large file downloads on Windows
On Tue, Mar 4, 2008 at 12:42 PM, Matthew Kitchin (Usenet/Lists) <[EMAIL PROTECTED]> wrote: > I tried posting the question below on alt.apache.configuration and > comp.infosystems.www.servers.ms-windows, but I haven't received any replies, > so I thought I would give this mailing list a shot. I'm afraid I do not know > any experts. I have read every FAQ I could find and searched using all > relevant terms I can think of. I haven't been able to find anything that > appeared to relate to my specific issue. > > Hello, > We have an in house http based records system at my company. Several years > ago I converted it from running on IIS to Apache. Everything has worked > perfectly. The server has to be Windows for a variety of reasons. Apache > 2.0.45 was latest and greatest at the time, so that is what I have been > using. The files are uploaded using a cgi/http post. They are downloaded > using straight http. All files are zip compressed. We have started storing > some larger files within the application. Some of the files are now 50 MB > and greater. For my benchmark on this issue, I'm using a 47 MB file. As the > files grew, the download time has become slower than I would have expected. > On the 47 MB file, it is between 12 and 15 seconds every time. Given the > number of files a user would pull over a day, this actually really adds up. > To simplify troubleshooting, I just did a fresh install of the newest > windows Apache with all the default options. It still takes 12 to 15 > seconds. Now for the fun part. IIS 6 on the same server, download time is 3 > seconds. It is reproducible on different machines. The servers are New HP > DL360s with plenty of horsepower. It is a gigabit LAN. 2003 server. Straight > Windows file copy takes about 2 seconds. I really don't want to have to go > back to IIS. I'm sure there has got be a way to optimize my Apache > configuration to speed it up. I can't imagine IIS being faster. I will be > glad to provide any more info that might help. I'm not an expert on this top but... The traditional place to start debugging a problem like this is to try various combinations of the following three directives in httpd.conf: Win32DisableAcceptEx EnableSendfile Off EnableMMAP Off If any of those works, it probably means that apache is having difficulties with your network drivers/firewalls/etc. And in addition, you should certainly move to the latest 2.2 release. 2.0.45 is very old. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_negotiation: prefer-type cookie? (as prefer-language)
On Mon, Mar 3, 2008 at 5:53 PM, Daniel Aleksandersen <[EMAIL PROTECTED]> > …or maybe it is possible to check for a cookie, and if that fails (meaning > no override) than the mod_negotiation process would start. I have no idea > how this would look in a .htaccess file. This might indeed be possible; but it will be complicated. It depends on exactly how your negotiation is setup, but could look something like RewriteCond %{HTTP:Cookie} type=(.+) RewriteRule (.*) $1%1 That essentially just tags the contents of the type= cookie onto the end of the URL if it exists. By the way, as with all complex mod_rewrite stuff, this would be easier to do in httpd.conf rather than in .htaccess, and it can only be reasonably debugged by using the RewriteLog. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, 4 Mar 2008, Joshua Slive wrote: On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: On Tue, 4 Mar 2008, Joshua Slive wrote: > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: >> hi all, >> >> i just installed apache on centos 5 and have it automatically start up >> when boot: > >> why do i have so many httpd services running? > > This is entirely normal. See: > http://httpd.apache.org/docs/2.2/mod/prefork.html > >> i can't access to it (http://10.0.0.160), how do i troubleshoot this >> problem? > > What happens when you try to access that URL? The page cannot be displayed What is the exact text that appears in the browser? (I'm guessing it is the standard network failure error message, but I want be sure.) it from? What happens if you try to access http://127.0.0.1/ from the > server? What does the Listen directive in httpd.conf look like? > i don't have x windows install, but i'll install lynx to test. i haven't change anything in httpd.conf yet. i'll into next. any advice what i should change??? The most likely explanations for not being able to access a running server have nothing to do with apache configuration. I would check the Listen directive just to be sure. But the problem is more likely to lie with your firewall (either internal to linux or a separate network firewall) or with other network configuration settings. i disabled SELinux, but still not working. there is no firewall between 10.0.0.160 & 10.0.0.128. Listen 80 so, what might be wrong??? [EMAIL PROTECTED] www]# ls -all /var/www/ total 64 drwxr-xr-x 8 root root 4096 Mar 3 11:44 . drwxr-xr-x 21 root root 4096 Mar 3 11:44 .. drwxr-xr-x 2 root root 4096 Jan 15 20:36 cgi-bin drwxr-xr-x 3 root root 4096 Mar 3 11:43 error drwxr-xr-x 2 root root 4096 Jan 15 20:36 html drwxr-xr-x 3 root root 4096 Mar 3 11:44 icons drwxr-xr-x 14 root root 4096 Mar 3 11:44 manual drwxr-xr-x 2 webalizer root 4096 Mar 3 11:44 usage should i change to apache??? t. hiep - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, Mar 4, 2008 at 1:59 PM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > > On Tue, 4 Mar 2008, Joshua Slive wrote: > > > On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > >> On Tue, 4 Mar 2008, Joshua Slive wrote: > >> > >> > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > >> >> hi all, > >> >> > >> >> i just installed apache on centos 5 and have it automatically start up > >> >> when boot: > >> > > >> >> why do i have so many httpd services running? > >> > > >> > This is entirely normal. See: > >> > http://httpd.apache.org/docs/2.2/mod/prefork.html > >> > > >> >> i can't access to it (http://10.0.0.160), how do i troubleshoot this > >> >> problem? > >> > > >> > What happens when you try to access that URL? > >> The page cannot be displayed > > > > What is the exact text that appears in the browser? (I'm guessing it > > is the standard network failure error message, but I want be sure.) > > > >> > >> > >>>> > it from? What happens if you try to access http://127.0.0.1/ from the > >> > server? What does the Listen directive in httpd.conf look like? > >> > > >> > >> i don't have x windows install, but i'll install lynx to test. i haven't > >> change anything in httpd.conf yet. i'll into next. any advice what i > >> should change??? > > > > The most likely explanations for not being able to access a running > > server have nothing to do with apache configuration. I would check the > > Listen directive just to be sure. But the problem is more likely to > > lie with your firewall (either internal to linux or a separate network > > firewall) or with other network configuration settings. > > > i disabled SELinux, but still not working. there is no firewall between > 10.0.0.160 & 10.0.0.128. > > Listen 80 > > so, what might be wrong??? Again, you need to check from the local machine. If you don't have a browser, you can do telnet 127.0.0.1 80 GET / HTTP/1.0 then press enter twice. If that works, it confirms it is a network problem and not an apache config problem. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] httpd process
On Tue, 4 Mar 2008, Joshua Slive wrote: On Tue, Mar 4, 2008 at 1:59 PM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: On Tue, 4 Mar 2008, Joshua Slive wrote: > On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: >> On Tue, 4 Mar 2008, Joshua Slive wrote: >> >>> On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: hi all, i just installed apache on centos 5 and have it automatically start up when boot: >>> why do i have so many httpd services running? >>> >>> This is entirely normal. See: >>> http://httpd.apache.org/docs/2.2/mod/prefork.html >>> i can't access to it (http://10.0.0.160), how do i troubleshoot this problem? >>> >>> What happens when you try to access that URL? >> The page cannot be displayed > > What is the exact text that appears in the browser? (I'm guessing it > is the standard network failure error message, but I want be sure.) > >> >> >> >> it from? What happens if you try to access http://127.0.0.1/ from the >>> server? What does the Listen directive in httpd.conf look like? >>> >> >> i don't have x windows install, but i'll install lynx to test. i haven't >> change anything in httpd.conf yet. i'll into next. any advice what i >> should change??? > > The most likely explanations for not being able to access a running > server have nothing to do with apache configuration. I would check the > Listen directive just to be sure. But the problem is more likely to > lie with your firewall (either internal to linux or a separate network > firewall) or with other network configuration settings. > i disabled SELinux, but still not working. there is no firewall between 10.0.0.160 & 10.0.0.128. Listen 80 so, what might be wrong??? Again, you need to check from the local machine. If you don't have a browser, you can do telnet 127.0.0.1 80 GET / HTTP/1.0 then press enter twice. If that works, it confirms it is a network problem and not an apache config problem. got it. thanks. t. hiep - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Optimize for large file downloads on Windows
Joshua Slive wrote: The traditional place to start debugging a problem like this is to try various combinations of the following three directives in httpd.conf: Win32DisableAcceptEx EnableSendfile Off EnableMMAP Off If any of those works, it probably means that apache is having difficulties with your network drivers/firewalls/etc. And in addition, you should certainly move to the latest 2.2 release. 2.0.45 is very old. I think you nailed it. Setting these 2 options EnableMMAP off EnableSendfile off Dropped the download time to between 2 and 3 seconds. Thank you! I will work on a project for upgrading to 2.2, but it is a little more involved than it might sound. this is part of a healthcare EMR, nad major changes require extesnive testing and certification. Thanks again for your help! - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Referencing Environment Variable in httpd.conf
Hi all, This is my first post so I would like to share what made me get here. I´m evaluating Drupal as a CMS, and since I´m running Vista Ultimate the natural choice was to get Drupal working over IIS7. Drupal has a neat featured called "Clean URLs" which requires URL Rewriting, so that a path like /drupal?q=admin/build/block can be re-written as /drupal/admin/build/block Unfortunately, IIS >doesn´t currently have< any URL Rewriting, free ISAPI filters that work. Tried ISAPI_Rewrite Lite and Ionic ISAPI Rewrite all day yesterday and it only led me to frustation... So after realizing I needed to get Apache to get the work done, I installed it and started configuring httpd.conf. NOW TO THE POINT: I read an old post on this newsgroup mentioning you could access Enviroment Variables in httpd.conf Since I already had defined variables (APACHE_HOME for Apache´s root directory and PHPRC for PHP installation dir), I WOULD LIKE TO SAY: IT IS POSSIBLE TO REFERENCE A SYSTEM ENVIRONMENT VARIABLE IN HTTPD.CONF, STATE IT LIKE: ${MY_SYS_ENV} (First I tried %{MY_SYS_ENV} but I forgot that env variables are just scalars and thus follow the perl-like syntax - a simple dollar sign prefix) In my case, I had: #Clean URL for Drupal RewriteEngine on RewriteBase /drupal RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] I found this valuable info in this archive: http://www.issociate.de/board/goto/1147159/Using_environment_variable_in_httpd.conf.html so after that I have clean urls working, THANKS FOR THAT ! Niloct
[EMAIL PROTECTED] Apache Behind Proxy Trailing Slash Issue
Hi, folks. I'm new to the list, but I've been working with Apache for some years and have been through most configurations and upgrades. I'm running into a specific problem right now and need some guidance. As you know, trailing slashes are required for directories and when it is omitted from a request, Apache performs a redirect to include the trailing slash. This is fine and I understand the necessity. The problem is that I have Apache (2.0.63) running behind a firewall on port 8080. Squid (2.6b18) is the proxy running on port 80. When Apache receives a directory request without a trailing slash, its redirect includes its running port (e.g. http://myserver/dir is redirected to http://myserver:8080/dir/). 8080 is user inaccessible and the redirect fails. How do I prevent Apache from affixing the port into the URL redirect? Does Apache need to know that it's running behind a reverse proxy? Thank you! Chris - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache Behind Proxy Trailing Slash Issue
On Tue, Mar 4, 2008 at 3:53 PM, Christopher Bianchi <[EMAIL PROTECTED]> wrote: > The problem is that I have Apache (2.0.63) running behind a firewall on > port 8080. Squid (2.6b18) is the proxy running on port 80. > > When Apache receives a directory request without a trailing slash, its > redirect includes its running port (e.g. http://myserver/dir is redirected > to http://myserver:8080/dir/). 8080 is user inaccessible and the redirect > fails. > > How do I prevent Apache from affixing the port into the URL redirect? Does > Apache need to know that it's running behind a reverse proxy? Normally the proxy is responsible for fixing this up (as the apache proxy will do with the ProxyPassReverse directive). I'd guess squid could do it with the right config. But you can get apache to lie about its own name and port using something like ServerName myserver:80 UseCanonicalName On Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Apache 2.2.8 VirtuaHost and a NAS
Yes but all of the paths are treated as Unix style. Ie... The original working website works with a local hard drive called 'E:' So "E:/test/" works and displays the website. However "L:/test/" does not. -Original Message- From: Graeme Fowler [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 3:13 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Apache 2.2.8 VirtuaHost and a NAS Hi On Mon, 2008-03-03 at 21:10 -0900, Brian wrote: > DocumentRoot "L:/test" Wouldn't that be "L:\test", with a backslash? - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache Behind Proxy Trailing Slash Issue
Thanks for the response, Joshua. Unfortunately, that didn't do the trick. When I appended the :80 to the ServerName directive, I simply got "Cannot find server" messages when attempting to access http://myserver/dir (no trailing slash). I may have to move to using a separate Apache server to handle these requests, however I'm a bit concerned due to the number of virtual hosts operating on this server. Chris On Tue, March 4, 2008 4:02 pm, Joshua Slive wrote: > On Tue, Mar 4, 2008 at 3:53 PM, Christopher Bianchi <[EMAIL PROTECTED]> > wrote: > >> The problem is that I have Apache (2.0.63) running behind a firewall on >> port 8080. Squid (2.6b18) is the proxy running on port 80. >> >> When Apache receives a directory request without a trailing slash, its >> redirect includes its running port (e.g. http://myserver/dir is >> redirected >> to http://myserver:8080/dir/). 8080 is user inaccessible and the >> redirect >> fails. >> >> How do I prevent Apache from affixing the port into the URL redirect? >> Does >> Apache need to know that it's running behind a reverse proxy? > > Normally the proxy is responsible for fixing this up (as the apache > proxy will do with the ProxyPassReverse directive). I'd guess squid > could do it with the right config. > > But you can get apache to lie about its own name and port using something > like > ServerName myserver:80 > UseCanonicalName On > > Joshua. > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache Behind Proxy Trailing Slash Issue
On 4 Mar 2008, at 20:53, Christopher Bianchi wrote: How do I prevent Apache from affixing the port into the URL redirect? Does Apache need to know that it's running behind a reverse proxy? The proxy should be in charge of this. If the proxy were Apache, we could tell you how ( http://www.apachetutor.org/admin/reverseproxies ). I believe squid can fix headers, but I haven't heard of it having the capability to filter contents. On Apache, you could use mod_headers (Header edit) to fixup outgoing headers. You'll need mod_headers from 2.2 to do that, but AFAIK it's source-compatible with 2.0. -- Nick Kew - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache 2.2.8 VirtuaHost and a NAS
Joshua Slive wrote: On Tue, Mar 4, 2008 at 7:13 AM, Graeme Fowler <[EMAIL PROTECTED]> wrote: Hi On Mon, 2008-03-03 at 21:10 -0900, Brian wrote: > DocumentRoot "L:/test" Wouldn't that be "L:\test", with a backslash? No, all paths in httpd.conf should use forward slashes. The problem of not being able to access network drives is typically explained by running apache as a service under privileges that don't allow network access (usually LocalSystem). See: http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc Exactly; it's also worth using //machine/share/ syntax instead of L: since the service control manager won't mount up L: for you. But if the service "run as" account doesn't have access to //machine/share, httpd won't start. See your application event log for details. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Apache 2.2.8 VirtuaHost and a NAS
William A. Rowe, Jr. wrote: >Joshua Slive wrote: >> On Tue, Mar 4, 2008 at 7:13 AM, Graeme Fowler <[EMAIL PROTECTED]> wrote: >>> Hi >>> >>> On Mon, 2008-03-03 at 21:10 -0900, Brian wrote: >>> > DocumentRoot "L:/test" >>> >>> Wouldn't that be "L:\test", with a backslash? >> >> No, all paths in httpd.conf should use forward slashes. >> >> The problem of not being able to access network drives is typically >> explained by running apache as a service under privileges that don't >> allow network access (usually LocalSystem). See: >> http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc > >Exactly; it's also worth using //machine/share/ syntax instead of L: since >the service control manager won't mount up L: for you. > >But if the service "run as" account doesn't have access to //machine/share, >httpd won't start. See your application event log for details. > Ok, thank you both to you Will and Joshua! It works now. First off in case anyone tried to do something similar setting it up to run as a windows account which has access to the NAS was already done, but I missed the step where it had to have log on as a service modified. 1. Create a normal domain user account, and be sure to memorize its password. **2. Grant the newly-created user a privilege of Log on as a service and Act as part of the operating system. You can also manually set these via the Local Security Policy MMC snap-in. ** 3. Confirm that the created account is a member of the Users group. Grant the account read and execute (RX) rights to all document and script folders (htdocs and cgi-bin for example). 4. Grant the account change (RWXD) rights to the Apache logs directory. 5. Grant the account read and execute (RX) rights to the httpd.exe binary executable Additionally I did not know until now that the service control manager would not mount the drive even though it shows in the OS as already being mounted. Good to know. And yes, ///share/test/ did work perfectly!! Thanks again to both of you. Brian - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] build Apache 2.2.8 error ( httpd : error PRJ0002 : error result returned from 'rc.exe'. )
Hi all I am getting following error while trying to build Apache 2.2.8 src in windows with nmake tool in VC7 platform. Build Log --- Build started: Project: httpd, Configuration: Release|Win32 --- Command Lines httpd : warning PRJ0041 : Cannot find missing dependency 'ICON_FILE' for file 'httpd.rc'. Your project may still build, but may continue to appear out of date until this file is found. httpd : warning PRJ0041 : Cannot find missing dependency 'strings.h' for file 'httpd.rc'. Your project may still build, but may continue to appear out of date until this file is found. Creating command line "rc.exe /d "NDEBUG" /d "APP_FILE" /d "BIN_NAME="httpd.exe"" /d "LONG_NAME="Apache HTTP Server"" /d "ICON_FILE="apache.ico"" /l 0x409 /I "build\win32" /I "./include" /I "./srclib/apr/include" /fo".\Release/httpd.res" ".\build\win32\httpd.rc"" Output Window Compiling resources... fatal error RC1107: invalid usage; use RC /? for Help httpd : error PRJ0002 : error result returned from 'rc.exe'. httpd : warning PRJ0041 : Cannot find missing dependency 'ICON_FILE' for file 'httpd.rc'. Your project may still build, but may continue to appear out of date until this file is found. httpd : warning PRJ0041 : Cannot find missing dependency 'strings.h' for file 'httpd.rc'. Your project may still build, but may continue to appear out of date until this file is found. Results Build log was saved at "file://d:\Dump\httpd-2.2.8-win32-src\httpd-2.2.8\Release\BuildLog.htm" httpd - 1 error(s), 0 warning(s) PLEASE ADVICE ... Suman - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]