You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by david joffrin <da...@hotmail.com> on 2005/05/01 21:58:45 UTC

[users@httpd] virtual host + mod_proxy

Hi,

I have a set of virtual host entries on my file, in particular, I 'd like of 
those entries to forward my request to my JBOSS instance running, I have 
therefore defined it as follow:
<VirtualHost *:80>
ServerName www.bidnplay.com
ServerAdmin admin@bidnplay.com
CustomLog logs/access-bidnplay.log combined
ProxyRequests Off
<Proxy http://www.bidnplay.com>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/sudetp
ProxyPassReverse / http://localhost:8080/sudetp
</VirtualHost>

HOWEVER, when I type in www.bidnplay.com in my browser, nothing is happening 
except that my log file keeps on increasing with the following entry:
127.0.0.1 - - [01/May/2005:19:59:40 +0100] "GET / HTTP/1.1" 302 - "-" 
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

Thanks.
DvJ



---------------------------------------------------------------------
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


Re: [users@httpd] virtual host + mod_proxy

Posted by Joshua Slive <js...@gmail.com>.
On 5/1/05, david joffrin <da...@hotmail.com> wrote:
> Hi,
> 
> I have a set of virtual host entries on my file, in particular, I 'd like of
> those entries to forward my request to my JBOSS instance running, I have
> therefore defined it as follow:

> <Proxy http://www.bidnplay.com>
> Order deny,allow
> Allow from all
> </Proxy>

The above section is probably not doing anything at all.

> ProxyPass / http://localhost:8080/sudetp
> ProxyPassReverse / http://localhost:8080/sudetp
> </VirtualHost>
> 
> HOWEVER, when I type in www.bidnplay.com in my browser, nothing is happening
> except that my log file keeps on increasing with the following entry:
> 127.0.0.1 - - [01/May/2005:19:59:40 +0100] "GET / HTTP/1.1" 302 - "-"
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

You need to examine the actual HTTP headers being returned by the
server.  It sounds like there is some kind of redirect loop, most
likely originating in your back-end application.

Joshua.

---------------------------------------------------------------------
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