1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

apache 2 help

Discussion in 'Linux & Open Source' started by deano, 22 Jul 2006.

  1. deano

    Wise Guy

    Joined: 18 Oct 2002

    Posts: 2,261

    Location: Kidderminster

    Hi,

    running apache on centos 4.3, main site is up and running fine in /var/www/html

    How would i go about adding another site but on a specefic port?

    so far i've added this to the bottom of my httpd.conf file:-

    <VirtualHost *:20000>
    DocumentRoot /www/vhost1
    ServerName www.deano.test
    </VirtualHost>

    but i dont get anything displayed in a browser on the servers ip address and that port :(

    what am i doing wrong? never really used apache so trying to learn but getting fed up with it at the moment.

    Cheers
    Deano
     
  2. Augmented

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,464

    Location: London Town

    First thing I can think of is whether you've set up Apache to listen on that port?

    You'll likely already have a Listen 80 in your main httpd.conf, so add
    Code:
    Listen 20000
    underneath it and restart apache (apachectl graceful).
     
  3. deano

    Wise Guy

    Joined: 18 Oct 2002

    Posts: 2,261

    Location: Kidderminster

    hi,
    cheers for the information it's working, just got password protection to sort out now.

    cheers
    deano