is there any way by which i can change the port number and localhost name on which apache web server runs in ubuntu ?

link|improve this question
Please set some useful tags. "help" isn't very detailed nor helpful in categorizing your question... – joschi May 18 '10 at 5:46
feedback

migrated from stackoverflow.com May 18 '10 at 4:17

This question came from our site for professional and enthusiast programmers.

3 Answers

Yes. Check out Listen parameter in httpd.conf configuration file.

link|improve this answer
feedback

Edit the file:

/etc/apache2/apache2.conf

or the files in:

/etc/apache2/sites-enabled/

link|improve this answer
feedback

go to /etc/apache2/sites-enabled/

<VirtualHost *:[whateverport]>
     ...
     ServerAlias [whatever]
     ...
</VirtualHost>

and add the listen to in the /etc/apache2/ports.conf

link|improve this answer
feedback

Your Answer

 
or
required, but never shown