Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|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
add comment

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

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

3 Answers

Edit the file:

/etc/apache2/apache2.conf

or the files in:

/etc/apache2/sites-enabled/

share|improve this answer
add comment

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

share|improve this answer
add comment

go to /etc/apache2/sites-enabled/

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

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.