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

What is the issue if we keep the default apache port open in a server.
LVL 4
Durga Charan OjhaSr. System AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Prabhin MPEngineer-TechOPSCommented:
can please elaborate your question?
0
Durga Charan OjhaSr. System AdministratorAuthor 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.
0
Martyn SpencerSoftware Developer / Linux System Administrator / Managing DirectorCommented:
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.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Five Tenets of the Most Secure Backup

Data loss can hit a business in any number of ways. In reality, companies should expect to lose data at some point. The challenge is having a plan to recover from such an event.

Prabhin MPEngineer-TechOPSCommented:
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.
0
Durga Charan OjhaSr. System AdministratorAuthor Commented:
Thank you Martyn Spencer and Prabhin MP
0
Durga Charan OjhaSr. System AdministratorAuthor Commented:
Thank you Martyn Spencer and Prabhin MP
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.