Tuesday, November 29, 2011

Chagning the port that apache runs on

This machine used Debain 6, apache was installed using apt-get

In oder to change the default port that apache ran on I had to change two files


first in 
/etc/apache2/ports.conf
i changes the lines
NameVirtualHost *:80
Listen 80

to 

NameVirtualHost *:8000
Listen 8000

Then I needed to change the actual site virtual host file
/etc/apache2/sites-enabled/000-default
I found the line 
and changed it to

afterworlds I restarted the server using
/etc/init.d/apache2 restart