DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30308>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30308

Add Example For VitualHost plus Proxy

           Summary: Add Example For VitualHost plus Proxy
           Product: Apache httpd-2.0
           Version: 2.1-HEAD
          Platform: Other
               URL: http://httpd.apache.org/docs-2.1/vhosts/examples.html
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Documentation
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


While I'm aware that the VirtualHost Examples page says that another page on
combining Proxy and VirtualHost in the config is on its way, it can't come soon
enough for me.  Here's the example I'd like added (Let me know if I should edit
and attach the html instead, I want to help :).

Using VirtualHost and mod_proxy together:
We use ProxyPreserveHost because the secondary server should recieve requests
with the desired hostname intact in case we're proxying multiple hostnames to a
single machine.  Be careful if you've already used ProxyPass to set up a folder
to the secondary server, that can conflict with 
Server configuration
<VirtualHost *:*>
  ProxyPreserveHost On
  ProxyPass / http://192.168.111.2/
  ProxyPassReverse / http://192.168.111.2/
  ServerName bugzilla.mydomain.com
  ServerAlias bugzilla.mydomain.com
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to