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 webmas...@mysite.it
    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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to