Jump to content

Webserver location seems to be moving around


ChocolateLover

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.