access to website via local host only, not domain name

On an update from 10.4.11 to 10.5. We lost our website. It works if you access it on the server using localhost in the address bar but not if you try to access it by IP or hostname.

It was working for a while but then we tried to enable WebDAV and the whole thing went sideways.

We got a lot of errors. We couldn't start the Webserver for a while and we got:
(Could not start web service - details in error log.) 100002

Then we tried to upgrade from Apache 1.3.x to 2.2.x and got:
'CANNOT TRANSLATEERR' while processing a command of type: 'setApacheMode'
We were able to fix that by following this link
<http://lists.apple.com/archives/macos-x-server/2008/Jan/msg00655.html>
Which suggested changing /var/db/.Apacheversion from 1 to 2.

That got the web services running again but unfortunately with the localhost only problem. When we attempt to load the page by IP we get:
Safari can’t open the page “ http://192.168.1.2/”. The error was: “Operation could not be completed. (kCFErrorDomainCFNetwork error 302.)

I've tried deleting my sites and adding them back, restarting a lot, replacing the /etc/apache2/httpd.conf file with the /etc/apache2/httpd.conf.default file. No luck.

Does this ring any bells for anyone?

Thanks
-- jmca

MacBook, Mac OS X (10.5.2)

Posted on Sep 27, 2008 4:23 PM

Reply
2 replies

Sep 28, 2008 12:23 PM in response to jmca

Check Server Admin -> (server) -> Web -> Sites and look at the virtual host configuration.

Specifically you're looking for the Address setting. If that's set to localhost then Apache will only serve this site for localhost connections and ignore any network requests. Set it to 'Any', or to your server's actual IP address to fix that.

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.

access to website via local host only, not domain name

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