Changing default port for Apache does not work ubuntu 12.04

I am using Ubuntu 12.04

I tried changing my default apache2 port from 80 to 8085
I edited /etc/apache2/ports.conf

I edited the line " Listen 80 Listen 8085

then restarted my apache service
Then, to check this in the browser, I set http://localhost:8085
404 Not Found Results 404 Not Found

Then I opened the terminal and ran

  netstat -tulpn |  grep 8085 

o / n this:

  tcp 0 0 0.0.0.0:8085 0.0.0.0:* LISTEN 

Am I doing something wrong? or am I missing something?

Thanks and all the best!

+7
source share
1 answer

I almost had to guess, given the correctness of your configuration, that you just need to restart and restart apache:

 sudo service apache2 reload sudo service apache2 restart 

If not, I suppose why this did not go unanswered, there is not enough information about the basic information, for example, "/var/log/apache2/error.info" or additional explanations, as well as providing us with what you did earlier as a configuration .

I hope you processed it and did not give up!

= ^)

+9
source

Source: https://habr.com/ru/post/916867/


All Articles