[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

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
(http://www.mysite.it).

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 http://www.virtualhost.it - 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>
    ServerAdmin webmaster@xxxxxxxxx
    DocumentRoot "C:/Apache2.2/htdocs/virtualhost2"
    ServerName virtualhost.mysite.it
    ErrorLog "logs/virtualhost.mysite.it-error_log"
    CustomLog "logs/virtualhost.mysite.it-access_log" common
</VirtualHost>

But after reload apache service and I try to access to
http://www.virtualhost.it I get the content of http://www.mysite.it.

Basically it happens that the request for http://www.mysite.it 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,

rocsca

<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  http://www.domain.it/roller/blog/ /blog/
	ProxyHTMLURLMap  http://localhost:8081/roller/blog/ /blog/

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

	ProxyPass /roller/ http://localhost:8081/roller/
	ProxyPassReverse /roller/ http://localhost:8081/roller/
	ProxyHTMLURLMap  http://www.domain.it/roller/ /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
	</Location>
</IfModule>



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux