Can’t access localhost files

Firefox version 48.0.2

OS 10.6.8

Early 2008 Mac Pro

MacPro3,1

64-Bit Intel

SMC Version (system): 1.25f4

Proxies: 

Exceptions List: *.local, 169.2xx/xx

FTP Passive Mode: Yes

ATT|Uverse WiFi


I am suddenly not able to access my personal website files on my Mac Pro using localhost. The browser says to try loading the page again. When I do this, an ATT|Uverse page appears saying that the problem has been resolved and to close the browser and try again. Same result.


I have have never had this happen before.


Is is this a Mac Pro computer problem? A browser problem? Or an ATT|Uverse router problem?


Any suggestions appreciated.

Posted on Jan 26, 2020 6:03 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 29, 2020 11:08 AM

Actually I think it does. I contacted ATT|Uverse and it turns out my router which connects all my devices to WiFi and the internet has been “retired” unbeknownst to me until now. This means firmware updates weren’t being made to the router. They are sending me a new router, which I have to connect in place of the old one. The support guy thinks this is the reason why my desktop localhost webserver is not available. I will report back when the change is made. Fingers crossed.

Similar questions

52 replies

Jan 31, 2020 8:59 AM in response to BDAqua

This is my /etc/hosts


hosts

##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting. Do not change this entry.

##

127.0.0.1  localhost

255.255.255.255  broadcasthost

::1            localhost 

fe80::1%lo0  localhost


I also have from /etc

(a backup to hosts, which has DriveMap o the last line)


hosts.bak

##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting. Do not change this entry.

##

127.0.0.1  localhost

255.255.255.255  broadcasthost

::1            localhost 

fe80::1%lo0  localhost

127.0.0.1 DriveMap


hostconfig

# This file is going away


AFPSERVER=-NO-

AUTHSERVER=-NO-

AUTOMOUNT=-YES-

NFSLOCKS=-AUTOMATIC-

NISDOMAIN=-NO-

TIMESYNC=-YES-

QTSSERVER=-NO-

WEBSERVER=-NO-

SMBSERVER=-NO-

SNMPSERVER=-NO-

MYSQLCOM=-YES-


Also:

hostconfig~orig

# This file is going away


AFPSERVER=-NO-

AUTHSERVER=-NO-

TIMESYNC=-NO-

QTSSERVER=-NO-


 

And from the Apache2 folder:


localhost.zone

$TTL  86400

$ORIGIN localhost.

@      1D IN SOA  @ root (

          42    ; serial (d. adams)

          3H    ; refresh

          15M    ; retry

          1W    ; expiry

          1D )    ; minimum

1D IN NS  @

      1D IN A    127.0.0.1


What else should I be looking at?

Feb 5, 2020 3:30 PM in response to Shelley Schreiber

“You seem somewhat unfamiliar with running a web server, and with troubleshooting a web server?”


That comment helped me solve this! My Mac isn’t a webserver computer, it’s a client. Your observation steered me to my Sharing folder in my System Preferences Pane. I discovered that the Web Sharing Service was not checked. When I checked it, it solved my /Library/WebServer/Documents access problem. I can now access my computer’s website via my browser.


Thank you so much for sticking with this thread!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can’t access localhost files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.