[users@httpd] Proxy to different port

2011-10-24 Thread Josu Lazkano
Hello list, I am trying to proxy a web interface on 81 port (http://host:81) to a site on my Apache (http://host/SITE) on same server. This is the site configuration that I try: ProxyPass /site http://localhost:81 ProxyPassReverse /site http://localhost:81 Order

Re: [users@httpd] Proxy to different port

2011-10-24 Thread Igor Cicimov
mod_proxy_html? On Oct 24, 2011 6:52 PM, "Josu Lazkano" wrote: > Hello list, I am trying to proxy a web interface on 81 port > (http://host:81) to a site on my Apache (http://host/SITE) on same > server. > > This is the site configuration that I try: > > ProxyPass /site http://localhost:81

Re: [users@httpd] Proxy to different port

2011-10-24 Thread Josu Lazkano
On Mon, 2011-10-24 at 10:04 +0200, Igor Cicimov wrote: > mod_proxy_html? > > > On Oct 24, 2011 6:52 PM, "Josu Lazkano" > wrote: > Hello list, I am trying to proxy a web interface on 81 port > (http://host:81) to a site on my Apache (http://host/SITE) on > same > s

[users@httpd] intermittent timeouts

2011-10-24 Thread Alex Harvey
Dear List, I have observed a strange problem with a busy Apache webserver that functions as a reverse proxy serving static content. I am running RHEL 5u5 2.6.18-238.12.1.el5 and Apache/2.2.3. During the site's peak load periods we intermittently see response time to a wget of index.html jump fro

Re: [users@httpd] Proxy to different port

2011-10-24 Thread Tom Evans
On Mon, Oct 24, 2011 at 9:12 AM, Josu Lazkano wrote: > > Thanks Igor, this my aenables mods: > > > > The mod_proxy is enabled, it works well on first link, but not on > others. It looks that is a html code problem. > > Thanks and best regards. He didn't say "mod_proxy", he said "mod_proxy_html".

[users@httpd] Facing Rewrite rule problem

2011-10-24 Thread bluedimp rapor
Hi, I am working on http rewrite rules and faced the following issue. I have to redirect the incoming urls based on a url pattern and I have written the following rule RewriteCond %{QUERY_STRING} pattern RewriteRule ^(.*) http://example.com/$1 [R=permanent,P,NE] but I am facing the issu

Re: [users@httpd] Map URL to directory

2011-10-24 Thread Matus UHLAR - fantomas
Pete Houston wrote: Most likely what you are after is the "Alias" directive. On 21.10.11 10:53, milan tomic wrote: Yes, Alias is what I need. But it doesn't work for me. I have this case: DocumentRoot "D:/Dir1/Dir2" ProxyPass http://tomcat1/MainPath/App1 Alias /MainPath/AL "D:\Dir3\Di

Re: [users@httpd] Map URL to directory

2011-10-24 Thread Tom Evans
On Fri, Oct 21, 2011 at 6:53 PM, milan tomic wrote: > > > Pete Houston wrote: >> >> Most likely what you are after is the "Alias" directive. >> > > Yes, Alias is what I need. But it doesn't work for me. I have this case: > > >  DocumentRoot "D:/Dir1/Dir2" > > >  ProxyPass  http://tomcat1/MainPat

Re: [users@httpd] Proxy to different port

2011-10-24 Thread Josu Lazkano
On Mon, 2011-10-24 at 11:41 +0200, Tom Evans wrote: > "mod_proxy_html" Thanks! I have enabled this module: # a2enmod proxy_html Module proxy_html already enabled If I configure this way I can not get my web: ProxyPass /site/ http://localhost:81/site/ ProxyPassReverse /site/ http://localhost:

[users@httpd] Apache 2.2.3 Session tracking with mod_session produces load error on module load

2011-10-24 Thread Pranesh Vadhirajan
We are using Apache server 2.2.3 at work as our web server. Currently I am tasked to track metrics for our website's content access. I am able to gather some information (client's ip, request type, uri, etc.) from the request_rec structure. I also need to correlate "clicks" on the web site w

Re: [users@httpd] Proxy to different port

2011-10-24 Thread Nick Kew
On Mon, 24 Oct 2011 16:07:25 +0200 Josu Lazkano wrote: > Syntax error on line 1 of /etc/apache2/sites-enabled/proxy_web: > Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a > module not included in the server configuration You would get that if the mod_proxy_html version you

Re: [users@httpd] Apache 2.2.3 Session tracking with mod_session produces load error on module load

2011-10-24 Thread Nick Kew
On Mon, 24 Oct 2011 10:44:02 -0400 "Pranesh Vadhirajan" wrote: > error: httpd: Syntax error on line 217 of /etc/httpd/conf/httpd.conf: Cannot > load /usr/lib64/httpd/modules/mod_session.so into server: > /usr/lib64/httpd/modules/mod_session.so: undefined symbol: session_module. Could there be a

Re: [users@httpd] Apache 2.2.3 Session tracking with mod_session produces load error on module load

2011-10-24 Thread Mark Montague
On October 24, 2011 10:44 , "Pranesh Vadhirajan" wrote: I am trying to use the mod_session module. Since mod_session is built into Apache for versions 2.3 or later, in order for me to use it on our Apache 2.2.3 server, I tried to build it from source. [...] I'm getting the following error: er

RE: [users@httpd] Apache 2.2.3 Session tracking with mod_session produces load error on module load

2011-10-24 Thread Pranesh Vadhirajan
Thanks for your responses, Nick Kew and Mark Montague. I'm very new to developing modules with Apache and I'm not sure that I would be able to backport modules from Apache 2.3 to 2.2. Certainly seems very unlikely considering that I would have to do this in less than two weeks (specifically Novem

[users@httpd] 100% cpu with double slash in beginning of URI (Linux64)

2011-10-24 Thread Svenne Krap
Hi. I am currently investigating a misbehaving apache httpd 2.2.21 with apr 1.4.5 on linux 64-bit. I have a virtual domain defined as (it runs behind a 1-on-1 nat, hence the rfc 1918 address) : ServerName sub.domain.tld ServerAdmin webmas...@sub.domain.tld ServerAlias www.sub.domain.tld

Re: [users@httpd] Apache 2.2.3 Session tracking with mod_session produces load error on module load

2011-10-24 Thread Mark Montague
On October 24, 2011 12:01 , "Pranesh Vadhirajan" wrote: Anyway, all I need to do is to correlate "clicks" with their user, so I really just need a way to find a user's session info somehow to track requests of a user. If I don't need mod_session for this, then I have no need to use it. If you

Re: [users@httpd] 100% cpu with double slash in beginning of URI (Linux64)

2011-10-24 Thread Bostjan Skufca
Can't reproduce it with the same versions/arch. Although I have noticed those urls lately on one of servers I am taking care of. The only difference is: i'm using *:80 as Listen address, not IP:80. b. On 24 October 2011 18:02, Svenne Krap wrote: > Hi. > > I am currently investigating a misbe

Re: [users@httpd] 100% cpu with double slash in beginning of URI (Linux64)

2011-10-24 Thread Ben Timby
Svenne, When troubleshooting issues like this, I often use strace to attach to the pid of the program in questions. A lot of times seeing what the process is doing when pegged at 100% CPU will lead you to the solution. The nice thing about strace is you can attach to the already running process a

Re: [users@httpd] 100% cpu with double slash in beginning of URI (Linux64)

2011-10-24 Thread Svenne Krap
When I attach to the process with strace all i get is : read(7, And it blocks (for several minutes at least) while the cpu is 100%. Svenne On 24-10-2011 20:58, Ben Timby wrote: > Svenne, > > When troubleshooting issues like this, I often use strace to attach to > the pid of the program in quest

Re: [users@httpd] 100% cpu with double slash in beginning of URI (Linux64)

2011-10-24 Thread Bostjan Skufca
This means that your httpd process is stuck waiting for file descriptor number 7. You should now look at what this file descriptor is. "lsof" command is useful here: "lsof -p PID" where PID is the PID number of the stuck process. In the fourth column look for number 7 followed by either r, w or u