Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My website work only if I run:

domain.com:44400

How to set port 44400 as the default in Apache?

I need have access by domain.com not domain.com:44400

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

To make the server accept connections on both port 44400, on all interfaces, use:

Listen 44400

To make the server accept connections on port 44400 for one interface, use

Listen domain.com:44400

Open your apache2.conf file. To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo gedit /etc/apache2/apache2.conf

Setup Listen as follows:

Listen 44400

Save and close the file. Restart the apache:

sudo /etc/init.d/apache2 restart

Verify that Apache listing:

sudo netstat -tulpn | grep :44400
share|improve this answer
    
Is port 44400 blocked by the default firewall rules? –  Bert May 7 '13 at 14:32
    
I can't personally verify it. Port 44400 is TCP CSTM Port for DFM, HUM Applications, and its Direction (of Establishment) of Connection is Server Internal. It can be used to run to Warsow servers on port 44400 on the same server, if the server have two IP addresses. So I don't thinks it blocked. –  Mitch May 7 '13 at 15:25
add comment

Open httpd.conf in /etc/apache2 and write:

Listen 44400
share|improve this answer
    
Depending on your setup, you also have to change your virtual host configuration in /etc/apache2/sites-available to include the port to listen on. –  soulsource May 7 '13 at 8:59
add comment

To have access by domain.com

write

listen 80

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.