View previous topic :: View next topic |
Author |
Message |
Detegr n00b
Joined: 17 Dec 2005 Posts: 7
|
Posted: Sat Dec 17, 2005 9:29 pm Post subject: Apache gives permission errors... |
|
|
Hi. My computer is running Apache/2.0.54 @ Gentoo, but when i'm trying to open http://myip.here/~username it gives me following error:
Forbidden
You don't have permission to access /~user/ on this server.
I'm tried to change chmods/chowns, groups etc. but with no luck.
But: I can access to files in /~user/file.txt, but not in /~user/ If i put index.html file in public_html, that also works. Then i can see index.html when i go to http://myip.here/~username
Apache test page in http://myip.here works good also.
At this moment, chowns:
/home/user = 777
/home/user/public_html = 777
One thing i noticed, i don't have httpd.conf anywhere, is that necessary? I tried to google similar errors, but answers didn't help me.
Thanks. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20584
|
Posted: Sat Dec 17, 2005 9:44 pm Post subject: |
|
|
It's covered in /etc/conf.d/apache2
In the APACHE2_OPTS variable, you need to add "-D USERDIR". Note that the -D is need for each option, so you might have something like APACHE2_OPTS="-D DEFAULT_VHOST -D USERDIR" _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Detegr n00b
Joined: 17 Dec 2005 Posts: 7
|
Posted: Sun Dec 18, 2005 9:30 am Post subject: |
|
|
Thanks for the answer, put USERDIR in there, but with no help :\ Still same error.
/etc/conf.d/apache2 :
APACHE2_OPTS="-D SSL -D FASTCGI -D DEFAULT_VHOST -D USERDIR"
Any other ideas? |
|
Back to top |
|
|
Detegr n00b
Joined: 17 Dec 2005 Posts: 7
|
Posted: Sun Dec 18, 2005 9:40 am Post subject: |
|
|
Detegr wrote: | Thanks for the answer, put USERDIR in there, but with no help :\ Still same error.
/etc/conf.d/apache2 :
APACHE2_OPTS="-D SSL -D FASTCGI -D DEFAULT_VHOST -D USERDIR"
Any other ideas? |
Never mind, fixed it. Finally!
In /etc/apache2/conf/commonapache2.conf, line 863: Options MultiViews -Indexes Includes Followsymlinks
I modified -Indexes to Indexes, and that's it |
|
Back to top |
|
|
|