DEV Community

Indra Wahyu
Indra Wahyu

Posted on

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

Top comments (0)

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay