httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject Re: [users@httpd] rewrite rule for mingle
Date Fri, 11 Jun 2010 11:18:27 GMT
On Fri, Jun 11, 2010 at 4:08 PM, Tom Evans <tevans.uk@googlemail.com> wrote:
> On Fri, Jun 11, 2010 at 11:30 AM, Tapas Mishra <mightydreams@gmail.com> wrote:
>> So let me know what you want to know.
>
>
> Does this not work for you?
No

> <VirtualHost *:80 >
>   ServerName site1.mydomain.com
>   ServerAdmin webmaster@localhost
>
>   ProxyRequests off
>   <Proxy *>
>       Order deny,allow
>       Allow from all
>   </Proxy>
>   ProxyPreserveHost On
>   ProxyPass /mingle/ http://192.168.1.10:8080/
>   ProxyPass / http://192.168.1.10/
>   ProxyPassReverse /mingle/ http://192.168.1.10:8080/
>
>   ErrorLog /var/log/apache2/site1.mydomain.com_error.log
>
>   LogLevel warn
>
>   CustomLog /var/log/apache2/site1.mydomain.com_access.log combined
>   CustomLog /var/log/apache2/site1.mydomain.com-resp_log resp
>   LogFormat "%{X-Forwarded-For}i  %D %t" resp
> </VirtualHost>
>
> If not, why not?
Well I do not know the exact reason.After your previous message I have
tried to log more messages

I added the following line to my vhost definition

 CustomLog /var/log/apache2/site-resp_log resp

 LogFormat "%f %p (redirected request)%>s  %U %v" resp


 (filename requested)proxy:http://site.mydomain.com/profile/login
(Canonical port serving request)80 (redirected request)404  (URL
requested )/profile/login

these are the the logged message in site-resp_log
and they are clearly wrong.
In fact the request internally should go i.e.

filename requeste above should be http://site.mydomain.com:8080  (This
should be taken care by my reverse proxy user should not type)

 URL requested :8080/profile/login


Does this give some clue?

-- 
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message