What is the issue if we keep the default apache port open in a server.

Durga Charan Ojha
Durga Charan Ojha used Ask the Experts™
on
What is the issue if we keep the default apache port open in a server.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Prabhin MPDevOps Engineer
Distinguished Expert 2018

Commented:
can please elaborate your question?
Durga Charan OjhaSr. System Administrator

Author

Commented:
Yes I do have a server and apache2 running using port 80, default port
and that server is on Public IP. so wanted to know if there is any security flaw if we keep web server running in default port instead of changing it to some other port.
Software Developer / Linux System Administrator / Managing Director
Commented:
If you change it to a non default port, it pretty much loses its main benefit unless people know to connect via the new port number. Port scans would pick it up as an HTTP server even on a different port. You should disable Apache if not in use, and if in use, use the standard ports unless for some reason you would like to multiplex connections to the server and not use name based resolution.

In short, the security of the Apache server is good unless you run a web application that has flaws or you set the Apache server up incorrectly. A default install is usually quite secure.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Prabhin MPDevOps Engineer
Distinguished Expert 2018
Commented:
running application on default port number doesn't have any issue. It's always better to enable https.
make sure that you have installed the latest stable apache.


Most of the web application runs on port 80 and 443.
if you want to change the port to some unknown then always you need to type the exact port number in the browser for accessing the application, which makes the user remember port number always.

If you want to restrict the access use .htaccess or create some firewall rules.
Durga Charan OjhaSr. System Administrator

Author

Commented:
Thank you Martyn Spencer and Prabhin MP
Durga Charan OjhaSr. System Administrator

Author

Commented:
Thank you Martyn Spencer and Prabhin MP

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial