ChocolateLover Posted November 7, 2008 Share Posted November 7, 2008 I've been running Leopard 10.5.5 Apache 2.2 php 5 MySQL 5 quite happily for months. I'd changed DocumentRoot in httpd.conf to DocumentRoot "/Users/<username>/Sites" and I was able to run pages in my "/Users/<username>/Sites" by calling http://localhost/<sitename>/<pagename> A few days ago localhost started pointing to an index.html that I can't even find on my computer. System preferences, Sharing, Websharing shows me that my computers website is http://192.168.1.68/ and my personal website is http://192.168.1.68/~<username>/. That worked for a day or so, I just substituted http://192.168.1.68/~<username>/ for http://localhost/. Then yesterday looking in System preferences, Sharing, Websharing it showed my webserver as being on my Time Capsule. I didn't investigate that further. I'm not connected to my Time Capsule today. Today, from System preferences, Sharing, Websharing clicking on http://192.168.1.68/ gives me the "If you can see this, it means that the installation of the Apache web server software on this system was successful." index.html, which I can only find on my computer under History. If I click on http://192.168.1.68/~<username>/ I get the Mac default index.html, BUT, not the one in Sites and again I can't find this one on my computer. Running any of my sites in http://192.168.1.68/~<username>/<sitename>/<pagename> gives me Forbidden You don't have permission to access /~<username>/<sitename>/<pagename> on this server. (Even though I'd changed permissions for all in the <sitename> to read and write - not a solution, I know, just to see if it made a difference). I've been modifying the options directive in httpd.conf, trying to get Drupal SEO friendly URLs to work, but I restored the httpd.conf from my Time Capsule. I'm guess something has gone wrong here - I'm not sure what I'm doing when it come to options, rewrites and .htaccess. Interestingly there do not seem to be any entries in my error_log for today, but there are from yesterday, a few entries like this File does not exist: /Users/<username>/Sites/favicon.ico, referer: http://192.168.1.68/~<username>/<sitename>/<pagename> Which apachectl tells me Server version: Apache/2.2.9 (Unix) Could I somehow have reverted to the Apache that comes with Leopard? How would I know? Any help, advice or ideas would be appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/131793-webserver-location-seems-to-be-moving-around/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.