Apache port numbers

Discussion in 'Apache' started by goodvikings, Jun 25, 2010.

  1. #1
    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
     
    goodvikings, Jun 25, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    Why are you using the proxy module for?
     
    madaboutlinux, Jun 25, 2010 IP
  3. abiko

    abiko Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    abiko, Jun 25, 2010 IP
  4. goodvikings

    goodvikings Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    @madaboutlinux - forward proxying

    @abiko - Nah I'd like to keep it all within apache
     
    goodvikings, Jun 25, 2010 IP