http://localhost/~admin/ gets a 403
Posted
by
Pavan Katepalli
on Super User
See other posts from Super User
or by Pavan Katepalli
Published on 2012-12-08T02:30:49Z
Indexed on
2012/12/08
5:11 UTC
Read the original article
Hit count: 498
When I go to localhost/~admin/ or 127.0.0.1/~admin/ my browser says:
"Forbidden
You don't have permission to access /~admin/ on this server."
How do I change this?!??!?! It's driving me nuts!
when I go to localhost or 127.0.0.1/ my browser says: "It Works!".
I'm running mac osx 10.8.
I created aliases in my .bash_profile file so that I can start, restart and stop Apache quickly:
alias startApache="sudo apachectl start"
alias stopApache="sudo apachectl stop"
alias restartApache="sudo apachectl restart"
In my /etc/apache2/httpd.conf file I turned on php5:
LoadModule php5_module libexec/apache2/libphp5.so
I also made sure to change the permissions for my admin.conf file with this command in terminal:
sudo chmod 644 username.conf
This is my /etc/apache2/users/admin.conf:
<Directory "/Users/admin/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
© Super User or respective owner