Apache default port change not working ubuntu 12.04

14,341

I would almost have to guess, given your configuration is correct, that you needed to just to reload and restart apache:

sudo service apache2 reload

sudo service apache2 restart

If not, I believe why this has gone unanswered is there was not enough basic info posting like "/var/log/apache2/error.info" output or further explanation, along with providing us with what you had done prior as far as configuration.

Hope you got it handled and did not give up!

=^)

Share:
14,341
Chaitanya Chandurkar
Author by

Chaitanya Chandurkar

Currently, I am full-time graduate student at University of Massachusetts Dartmouth. Pursuing masters in Computer and Information Science. More inclined towards Artificial Intelligence, Design Patterns and Paradigmatic Software Development. Apart from this, I do Android and Web Development as leisure activity.

Updated on June 23, 2022

Comments

  • Chaitanya Chandurkar
    Chaitanya Chandurkar almost 2 years

    I'm using Ubuntu 12.04

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

    I edited line Listen 80 to Listen 8085

    then restarted my apache service
    then to test this in browser I putted http://localhost:8085
    The result is 404 Not Found

    then I opened terminal and ran

    netstat -tulpn | grep 8085 

    o/p is:

    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 regards!