Change Port Apache2

bukanspot

Indra Wahyu

Posted on April 17, 2023

Change Port Apache2

You can change apache2 port with add the new port to /etc/apache2/ports.conf. Use nano or vim to edit file. This is my example, I want to change http port from 80 to 3000.

nano /etc/apache2/ports.conf
Enter fullscreen mode Exit fullscreen mode

Add the new port

Listen 3000
Enter fullscreen mode Exit fullscreen mode

Restart apache2

sudo service apache2 restart
Enter fullscreen mode Exit fullscreen mode

Open in browser http://localhost:3000

💖 💪 🙅 🚩
bukanspot
Indra Wahyu

Posted on April 17, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Change Port Apache2
beginners Change Port Apache2

April 17, 2023