//For Linux
1. go /etc/apache2/sites-available/ and create a file for your site
2. run command "a2ensite [yoursite]"
3. reload apache by command "/etc/init.d/apache2 reload"
4. configure hosts file /etc/hosts
//For Mac
1. go /etc/apache2/other/ and create a file for your site
2. restart apache
3. configure hosts file to point you website to 127.0.0.1 /etc/hosts
//To include website configuration files into httpd.conf
add this line to the bottom
Include /private/etc/apache2/other/*.conf
//To make .htacces file work
So I opened up my http.conf file and went down to line 378, and sure enough this is what I saw:
<directory>
Options Indexes FollowSymLinks
AllowOverride None
</directory>
In order to get .htaccess files working in the new version, I just had to change None to All, restart the server, and everything worked normally. Just thought I would share in case anyone else runs into this problem.
<directory>
Options Indexes FollowSymLinks
AllowOverride All
</directory>
Reference:
So You Want to Use .htaccess files with MAMP?
http://trevordavis.net/blog/use-htaccess-files-with-mamp
No comments:
Post a Comment