Operating Systems > Linux and UNIX
apache port
Master of Reality:
so i will have to make another virtual host
voidmain:
Well yes, I thought that's what I said. But if you aren't using virtual hosts (only one site hosted by your Apache) then you can have it listen on multiple ports by:
http://httpd.apache.org/docs/bind.html
Master of Reality:
but the virtual hosts dont effect what ports apache can listen on so wont i have to set 'Listen' to more then one port before i can set my virtual hosts to do it?
voidmain:
Before you can use a port on a Virtual Host you must have a "Listen <portnum>" in the config:
Listen 80
Listen 443
Listen 8000
Listen 8800
etc.
Then you can do a:
NameVirtualHost chatroom.fuckmicrosoft.com
<VirtualHost chatroom.fuckmicrosoft.com:8000>
ServerName chatroom.fuckmicrosoft.com
DocumentRoot /var/www/chatroom
...
...
...
</VirtualHost>
<VirtualHost chatroom.fuckmicrosoft.com:8800>
ServerName chatroom.fuckmicrosoft.com
DocumentRoot /var/www/chatroom
...
...
...
</VirtualHost>
Well, at least that's the way I do it, but maybe there is an easier way...
Master of Reality:
should i comment out the 'Port' command?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version