How Do I Let Outside Connections Access My Apache Server?

104 16
    • 1). Open your Apache httpd.conf file. The file is located in the Apache installation directory, which is usually "c:\program files\apache\conf." The file is in plain text, so you can use a plain text editor such as Notepad or more advanced editors such as Notepad++.

    • 2). Scroll down to line 120 in the httpd.conf file. This line lists the port for the website. The typical port used for websites is 80. Change line 120 in the file to the following statement:

      Listen 80

    • 3). Go to line 212 in the httpd.conf file. This line lists the server name and local host location for the website. Change this line to the following statement:

      ServerName localhost:80

      Change "ServerName" to the name of your website.

    • 4). Click the Windows Start button and select "Run." Enter "cmd" into the text box and press the "OK" button. This starts the Windows command prompt.

    • 5). Type "net stop apache" and press "Enter." Type "net start apache" and press "Enter." This restarts the Apache service on the web host. Any changes made to the httpd.conf file do not take effect until you restart Apache. Your users can now connect to your website.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.