Click to See Complete Forum and Search --> : How to host a Virtual Server on port 8008?


Junior G.
04-05-2002, 09:47 AM
Hello everyone,

First, I would like to thank everyone for your continuous help. I also would like to say special thanks to chikn for his help configuring my Apache Server.

Now back to my question, how can I host a Virtual Server from one port like 8008 and not 80?
My Apache Server is configured at the moment to listen on port 80 for all Web Sites, but I would like to have one of my Virtual Servers to listen on port 8008 alone. Can that be possible?
I tried configuring my Virtual Site this way...
NameVirtualHost aaa.bbb.ccc.bb
<VirtualHost aaa.bbb.ccc.bb:8008>
ServerName myserver.mydomain.com
ServerAdmin root@localhost
ServerPath /samba
DocumentRoot /samba/html
HostNameLookups Off
ServerAlias myserver
User apache
Group apache
</VirtualHost>

This configuration makes my Virtual Server points to my default Web Site, which is held in /var/www/html. If I take the port number out and try again, then it works again and points to the correct site in /samba/html.

Is there something else that I need to change? Maybe my httpd.conf file?

Please help. Any suggestions welcome...

Choozo
04-05-2002, 10:02 AM
Originally posted by Junior G.:
<STRONG>Is there something else that I need to change? Maybe my httpd.conf file?
</STRONG>

Now, you already did that .... right?

Take a look at all the friendly documentation over on www.apache.org (http://www.apache.org) which should explain most of what you need about tweaking virtual servers.

Cheers :)

chikn
04-05-2002, 10:36 AM
This should do it. Works on mine dont know why not on yours.
Listen 8080

&lt;VirtualHost your.ip.add.ress:8080&gt;


I should add you do this per vhosts entry in the Vhosts.conf file.

[ 05 April 2002: Message edited by: chikn ]

Junior G.
04-08-2002, 10:34 AM
Hi Guys,
I found out why this wasn't working.
I had a comma (,) at the end on my Listen entry in httpd.conf like this...

Listen 8008,

I removed the comma and it is now working.

Thanks