Slim Framework.htaccess / mountain lion osx

I have a problem that has caused me several headaches, and I hope someone has a light that they can share.

Earlier, I ran OS X Mountain Lion without any fine structure problems. Since upgrading to OS X Mountain Lion, I have had nothing but trouble as it overwrites your httpd.conf and other settings. One of them seems to be htaccess. I have a vhosts installation, and some previously working using slim are now broken into any URL except /.

So, my htaccess file has not changed since the update, so I wonder what the problem is. I use htaccess by default, as indicated in the slim framework download, I even tried a custom one, but to no avail.

A visit /creates the desired page. Visiting another URL does this:

Not Found

The requested URL /myurl was not found on this server.

Are there any clues?


mod_rewrite is enabled, and this is my installation for vhost:

<Directory "/Users/chris/Sites/slimphp/">
    Allow From All
    AllowOverride All
</Directory>
<VirtualHost *:80>
    ServerName "slim.php"
    DocumentRoot "/Users/chris/Sites/slimphp"
</VirtualHost>
+5
source share
2 answers

After some extensive research, I learned that it was Apple's server.app that changed a lot. This blog was a life saving for me.

http://petercompernolle.com/2012/07/26/fixing-httpdconf-in-osx-mountainlion

, , . /etc/apache 2/httpd.conf. - Apple , , /Library/Server/Web/Config/apache 2/sites. .conf - 80, .conf , Server.app, , , Server.app.

+4

, mod_rewrite apache, AllowOverride FileInfo ( all) apache. .htaccess .

+1

All Articles