httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rocco Scappatura" <>
Subject [users@httpd]
Date Wed, 29 Apr 2009 17:22:23 GMT

I ve an Apache2.2+Tomcat5.5+Windows2K platform.

I use Apache2.2 to proxy almost all the requests for 80 port of my server

Since some days I would like to setup an Apache2.2 virtual host to show
the content of a site directly through Apache2.2 (i.e.: not proxying the
requests for the site - say - to Tomcat).

It should be quite simple to set this up in httpd.conf:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

and in httpd-vhosts.conf:

<VirtualHost *:80>
    DocumentRoot "C:/Apache2.2/htdocs/virtualhost2"
    ErrorLog "logs/"
    CustomLog "logs/" common

But after reload apache service and I try to access to I get the content of

Basically it happens that the request for is seen by
Apache as a request for / and so proxied to Tomcat.

How could I solve this issue?

Below I ve reported the mod_proxy configuration..

Thanks in advance,


<IfModule mod_proxy.c>
	ProxyHTMLLogVerbose On
	LogLevel Debug

	ProxyRequests off

	ProxyPass /blog/ http://localhost:8081/roller/blog/
	ProxyPassReverse /blog/ http://localhost:8081/roller/blog/
	ProxyHTMLURLMap /blog/
	ProxyHTMLURLMap  http://localhost:8081/roller/blog/ /blog/

	<Location /blog/ >
		SetOutputFilter  proxy-html
		ProxyHTMLURLMap  /roller/blog/ /blog/
		ProxyHTMLURLMap  /blog /blog
		RequestHeader    unset  Accept-Encoding

	ProxyPass /roller/ http://localhost:8081/roller/
	ProxyPassReverse /roller/ http://localhost:8081/roller/
	ProxyHTMLURLMap /roller/
	ProxyHTMLURLMap  http://localhost:8081/roller/ /roller/

	ProxyPass /path1/file1 !
	ProxyPass /virtualhost !
	ProxyPass /path2/ !
	ProxyPass /path3/ !
	ProxyPass / http://localhost:8081/domain/
	ProxyPassReverse / http://localhost:8081/domain/

	<Location / >
		SetOutputFilter  proxy-html
		ProxyHTMLURLMap /domain/ /
		RequestHeader    unset  Accept-Encoding

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message