apache 2 help

Associate
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
 
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).
 
Back
Top Bottom