2

I used to be able to type 127.0.0.1 (or my network IP 10.10.53.32) and it would resolve to my "default" virtual host. 127.0.0.1/~Shanimal and shanimal.dev both resolve to their appropriate folders. localhost and 127.0.0.1 give me a 404 - "Not Found The requested URL / was not found on this server."

Basically, my "It works!" screen no longer works.

/private/etc/apache2/Shanimal.conf:

<Directory "/Users/Shanimal/Sites/_www">
    Options Indexes Multiviews
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>

hosts:

127.0.0.1 localhost
127.0.0.1 shanimal.dev
Shanimal
  • 142

1 Answers1

1

I removed the reference to the two dummy vhost examples in /private/etc/apache2/extra/httpd-vhosts.conf* and this pretty much did the trick for me. Daniel put me on the right track by telling me where the logs were located (+1)

I had originally created the special user.conf file while following these instructions.

Since I don't care about the /~Shanimal user folder, I removed /private/etc/apache2/Shanimal.conf and pointed the DocumentRoot to a symlink "_www" in my Sites folder.

DocumentRoot "/Users/Shanimal/Sites/_www"
<Directory "/Users/Shanimal/Sites/_www">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

This configuration actually works with the dummy vhost entries removed (pointing to a wrong but valid place) so I suppose the dummy vhost entries were the problem. All is working as expected now.

Shanimal
  • 142
  • Google searched, found this and it helped me again. a new machine with a fresh install Mtn Lion... Thanks Shanimal! – Shanimal Sep 05 '13 at 02:07