How to change apache's default tcp/ip port

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


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.


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.


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


  • Is there a way to remove '/web' from url in Symfony application without moving content of
  • (Un)setting a cookie in mod_rewrite
  • deploying Node.js app for production
  • Symfony 3 new project error
  • staticfiles and STATIC_URL with virrtualenv - django
  • Node can't scrape certain pages
  • cast stl::vector containing pointers to stl::vector containing constant pointers
  • Simple command-line app I/O in Dart
  • Can't configure nginx as a proxy for tomcat with context path
  • What is wrong in my MVC implementation?
  • https in htaccess and order of rules (using Expression Engine)
  • Version in docker-compose is unsupported
  • how to bypass pinentry (passphrase screen) while decrypting a file using gpgme
  • How do I capture a rsolr Sunspot exception raised on a different thread from a model callback?
  • Unix Network Programming Clarification
  • SSL client cert authentication for only some URLs?
  • allocating memory to an array of string
  • VSCode change debug shell to bash on windows
  • python script hangs on input method when running spark
  • Is it possible to access block's scope in method?
  • Using $this when not in object context
  • Fetching methods from BroadcastReceiver to update UI
  • How do I fake an specific browser client when using Java's Net library?
  • How reduce the height of an mschart by breaking up the y-axis
  • Perl system calls when running as another user using sudo
  • Symfony2: How to get request parameter
  • GridView Sorting works once only
  • Calling of Constructors in a Java
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • Traverse Array and Display in markup
  • Transpose CSV data with awk (pivot transformation)
  • WPF Applying a trigger on binding failure
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • How can i traverse a binary tree from right to left in java?