Task: Change Apache port
Open /etc/apache2/ports.conf file, enter:
# vim /etc/apache2/ports.conf
OR$ sudo vim /etc/apache2/ports.conf
To make the server accept connection on port 81, enter:
Listen 81
Save and close the file And Open /etc/apache2/sites-enabled/000-default :
# vim /etc/apache2/sites-enabled/000-default
< VirtualHost *:80> TO < VirtualHost *:81>
Save and close the file. Restart Apache 2 web server:
# /etc/init.d/apache2 restart
OR
$ sudo /etc/init.d/apache2 restart
No comments:
Post a Comment