PDA

View Full Version : [ubuntu] Change http port


any.linux12
November 3rd, 2009, 06:03 AM
Hi!

Can I have more than one http port and chose the file (index.html) that represents that port? for example, can I have one website on the default port (80) and one in the 81,82...9999 whatever?

Lars Noodén
November 3rd, 2009, 06:28 AM
That would be setting up port-based virtual hosts:

http://httpd.apache.org/docs/2.0/vhosts/examples.html#port

One of the files to look at will be /etc/apache2/ports.conf in addition to one configuration file per vhost.