0

What's it mean if I can connect to the "It works!" page in Chrome via http://localhost:8080, but not directly using http://localhost, in which event I get "This site can't be reached"? I suppose the question is, how can I access the page without typing in the port number? Shouldn't this be possible?

2 Answers 2

0

http://localhost using port 80 so, change your apache config to port 80 not 8080. If you are using ubuntu and apache2, the config file is in /etc/apache2/sites-enable/000-default.conf, /etc/apache2/ports.conf.

0

You dont say your Os but this can be on 2 causes, first check if your firewall is blocking port 80, second check your apache ports configuration files, in ubuntu the port configuration is splitted across several files:

In /etc/apache2/ports check that there is a 'Listen 80' directive

In /etc/apache2/sites-available/000-default check that there is a VirtualHost *:80 directive

7
  • Sorry, I'm just using Windows. I'm on a Windows machine. Changing the httpd.conf file to Listen on port 80 gives me, "This Site Can't Be Reached" - localhost or localhost:80.
    – ARNK
    Oct 21, 2016 at 19:06
  • I ran a .bat to check what's holding port 80 and 443 and it says "httpd.exe 3848 Services"?
    – ARNK
    Oct 21, 2016 at 19:24
  • So if httpd.exe 3848 is Apache2.4 service which is running, how can I just use localhost without the colon port number?
    – ARNK
    Oct 21, 2016 at 19:28
  • are you running iis? because this sounds like you already have one server running on port 80
    – Chico3001
    Oct 22, 2016 at 16:04
  • Hey Chico. Nope, I'm not running iis ??
    – ARNK
    Nov 10, 2016 at 3:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .