2
votes

How can I make apache use port 3000 instead of 80 to run my ruby on rails application on an external server?

3

3 Answers

8
votes

Edit your httpd.conf Find the line that says Listen 80 and change the 80 to whatever port you want to use.

Don't forget to restart apache.

5
votes

In Server version: Apache/2.2.22 (Debian) Server built: Feb 1 2014 21:26:04 There is file named ports.conf in /etc/apache2 dir and you can change listening ports from there.

3
votes

On Ubuntu, it's /etc/apache2/ports.conf.