Click to See Complete Forum and Search --> : Apache which port?


bringerofnight
10-20-2005, 07:43 AM
How do you change what port apache is running on i want to run it on 81

Stephen Philbin
10-20-2005, 11:36 AM
You need to set it in the httpd.conf file. The conf file can usually be found at /usr/local/apache/conf/httpd.conf if you're using Apache 1 or /usr/local/apache2/conf/httpd.conf if you're using Apache 2 (default locations). There'll be a line instructing Apache to use port 80. Change that to say 81 and then restart the server to make the change take effect.

bringerofnight
10-20-2005, 03:56 PM
ok i have apache running on port 80 and would like to make a copy and run it on port 81 for my brother so i just install it on his account and set the config right thanks a lot

ray326
10-20-2005, 11:35 PM
You could also do that with a single instance of Apache using virtual hosts.

bringerofnight
10-24-2005, 09:46 PM
how do you do that?

ray326
10-25-2005, 11:40 PM
http://httpd.apache.org/docs/1.3/vhosts/
http://httpd.apache.org/docs/2.0/vhosts/