• TechOps

    Need clarity?
    Chat with our experts now

    • Web Hosting SupportWeb Hosting Support
    • Helpdesk Support

      Skilled and professional 24/7 helpdesk support

    • Product Support

      Boost your product support with our expertise

    • Managed ServicesManaged Services
    • Server Management

      Don't let server issues slow you down. Let us manage them for you

    • Server Monitoring

      Safeguard your server health with our comprehensive monitoring solutions

    • Staff AugmentationStaff Augmentation
    • Hire an Admin

      Transform your business operations with our expert administrative support

    • Hire a Team

      Augment your workforce with highly skilled professional from our diverse talent pool

  • CloudOps

    Confused?
    Discuss with our sales team now.

    • Author ProfileAWS
      Well Architected Review
    • Author ProfileFinOps As a Service

      FinOps As a Service

    • Migrate

      Upgrade the journey: Migrate & Modernize seamlessly

    • Modernize

      Effortless CloudOps mastery for seamless cloud management

    • Optimize

      Efficient CloudOps: Boosting performance through optimization

    • Manage

      Simplify compliance complexities with our dedicated service

  • DevOps

    How Supportsages
    is creating an
    impact?

    View Casestudies
    • Author Profile24/7 DevOps As a Service

      Round-the-clock DevOps for uninterrupted efficiency

    • Author ProfileCI/CD Pipeline

      Automated CI/CD pipeline for seamless deployments

    • Author ProfileInfrastructure As a Code

      Crafting infrastructure with ingenious code

    • Author ProfileDevSecOps

      Integrated security in continuous DevOps practices

    • Author ProfileHire DevOps Engineers

      Level up your team with DevOps visionaries

    • Author ProfileConsulting Services

      Navigate success with expert DevOps consulting

  • SecOps

    Expert SecOps Services
    for any Scale

    • Author ProfileVAPT

      Vulnerability Assessment and Penetration Testing

    • Author ProfileSource Code Review

      Ensuring source code security and safe practices to reduce risks

    • Author ProfileSecurity Consultation

      On demand services for improving server security

    • Author ProfileSystem Hardening

      Reduced vulnerability and proactive protection

    • Author ProfileManaged SOC

      Monitors and maintains system security. Quick response on incidents

    • Author ProfileCompliance as a Service

      Regulatory compliance, reduced risk

  • Insights

    Explore our latest
    insights and resources

    Blog

    Explore our latest articles and insights

    Case Studies

    Read about our client success stories

  • Contact Us

  • About
  • Certifications
  • Life at Supportsages
  • Events
  • Contact
  • Careers
  • Blog

  • Dedicated Support Team
  • Quasi-dedicated Support Team
  • Hire a DevOps Engineer
  • Hire a Billing Support Staff
  • Per-ticket Support Plan
  • Managed Services

  • Microsoft Azure Expert
  • AWS Cloud Expert
  • Hire a developer
SS

SupportSages

Bites of wisdom @ work


Copyright © 2008 - 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

Apache :HTTP Server Port modification

Sharafuddin M.A

  • 3 min read
Apache :HTTP Server Port modification

Generating audio, please wait...

Apache Port Change:

We all know that the default Port number of Apache is 80. For more security purpose we will be forced for Apache port change, Please see below mentioned steps inorder to change the port number.Assume you need  to change the port number of httpd from  80 to 8080 and for https from 443 to 1023

Search the httpd configuration file 

#vi /usr/local/apache/conf/httpd.conf 

For changing httpd port

Find this line- Listen 80 in the configuration file.

Listen 0.0.0.0:80

Change it to

Listen 0.0.0.0:8080 



Now save the edited file.

For changing https port

Find this line- Listen 443 in the configuration file. 

Listen 0.0.0.0:443

Replace the following line by Listen 0.0.0.0:1023

Listen 0.0.0.0:1023

Now save the edited file.

Finally restart the Apache service.

#/etc/init.d/httpd restart

he Port has been changed successfully.

 

Now you  need to open those ports in firewall. Inorder to open the ports follow below mentioned steps.

# Allow incoming TCP ports

TCP_IN = “20,21,22,25,53,8080,110,143,1023,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,23220,287,3306″

# Allow outgoing TCP ports

TCP_OUT = “20,21,22,25,37,43,53,8080,110,113,1023,587,873,2087,2089,2703,3306″

And Restart the CSF

#/etc/init.d/csf restart

Apache port change working correctly or not ?

Follow the steps to check the modifications are working correctly or not.

For example consider the IP 67.228.194.218

#telnet 67.228.194.218 8080
Trying 67.228.194.218…
Connected to 67.228.194.218.
Escape character is ‘^]’.
^]
telnet> q
Connection closed.

#telnet 67.228.194.218 1023
Trying 67.228.194.218…
Connected to 67.228.194.218.
Escape character is ‘^]’.
^]
telnet> q
Connection closed.

If the telnet is connected to the server, we can confirm that the port has been changed successfully.

  • Apache
  • Howtos
  • Linux

Looking for AWS Experts?

We provide top-of-the-line custom AWS setup services tailored to your needs.

Apache :HTTP Server Port modification

Common Errors in FFmpeg installation

Common Errors in FFmpeg installation
  • Howtos
  • Linux
  • Troubleshooting
logo

How to Migrate the solusVM master server.

SupportSages Logo
  • Howtos
  • Linux
logo

Kloxo restart fails giving entropy error

SupportSages Logo
  • General
  • Howtos
  • Linux
  • Troubleshooting
  • VPS
logo

Monitoring with Nagios and NRPE

SupportSages Logo
  • Howtos
  • Linux
logo

Posts by Sharafuddin M.A

Sharaf got immense interest and knowledge in implementing custom application and security solutions. He is highly competent in identifying and resolving security vulnerabilities, security breaches, hacked server recovery and server hardening. This soft spoken guy loves to watch movies and hanging out with friends.