Hi all I have an installation of Apache2 running on a Ubuntu 8.04 server, for both normal web hosting as well as forward proxying. What I'd like to know is if it is at all possible to have these two purposes use different ports. Ie, I want the web to still use the default port 80, but I want the proxy to be something user defined. If needed, here is the section in httpd.conf regarding the proxy module <IfModule mod_proxy.c> ProxyRequests On <Proxy *> Order deny,allow Allow from all AuthType Basic AuthName "Password Required Bro" AuthUserFile /usr/local/apache2/conf/.htpasswd Require valid-user </Proxy> </IfModule> Code (markup): Cheers
Do you want to use the server for hosting (Apache) and use it as a proxy ? What you have provided you can, for example run Apache on port 80 and run nginx on another port - you can mod_proxy to divert traffic nginx to Apache - for example you have data.domain.com (serving images, static files) running under nginx . So you call your images etc trough nginx (trough data.domain.com) and serve pages trough Apache. Example.