Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 forbidden? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BlackMan890
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 134
Location: Iceland

PostPosted: Thu Aug 04, 2005 4:21 pm    Post subject: apache2 forbidden? [SOLVED] Reply with quote

Hi guys :)

when i installed Apache using emerge.
When starting up, i could see the beautiful apache logo.
i configured it from /var/www/localhost/htdocs into /var/www/localhost/html and restarted apache.
but now i get Forbidden:

Code:
Forbidden
You don't have permission to access / on this server.
Apache/2.0.54 (Gentoo/Linux) Server at jonatan.homenetwork Port 80


i changed the permission on all the directorys from var to html into 777 (using chmod) but that didn't work either, so i changed it back like it was.

what is wrong?


Last edited by BlackMan890 on Thu Aug 04, 2005 4:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
azuriel
Apprentice
Apprentice


Joined: 27 Feb 2005
Posts: 166

PostPosted: Thu Aug 04, 2005 4:24 pm    Post subject: Reply with quote

What is your document root set to right now? Could you post some of your conf file?
_________________
Adopt an unanswered post
TJGames.org

The folly of mistaking a torrent of verbiage for a spring of capital truths, and oneself for an oracle, is inborn in us. -Valery
Back to top
View user's profile Send private message
BlackMan890
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 134
Location: Iceland

PostPosted: Thu Aug 04, 2005 4:30 pm    Post subject: Reply with quote

like i said:

i changed the document root from:
/var/www/localhost/htdocs
to
/var/www/localhost/html

that's it.

Here is a small portiion of the file:

Code:
ServerRoot /usr/lib/apache2
#ServerName localhost
#LockFile /etc/apache2/apache2.lock
PidFile /var/run/apache2.pid
ErrorLog logs/error_log
LogLevel warn
DocumentRoot /var/www/localhost/html/
Back to top
View user's profile Send private message
azuriel
Apprentice
Apprentice


Joined: 27 Feb 2005
Posts: 166

PostPosted: Thu Aug 04, 2005 4:41 pm    Post subject: Reply with quote

Is there a <Directory> entry for your new document root? Mine reads kind of like this:
Code:
<Directory "/">
        Options -Indexes FollowSymLinks
        AllowOverride None
</Directory>

<Directory "/var/www/html">
        Options Includes FollowSymLinks
        AllowOverride All
        Allow from all
        Order allow,deny
</Directory>

/var/www/html is my DocumentRoot.
_________________
Adopt an unanswered post
TJGames.org

The folly of mistaking a torrent of verbiage for a spring of capital truths, and oneself for an oracle, is inborn in us. -Valery
Back to top
View user's profile Send private message
BlackMan890
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 134
Location: Iceland

PostPosted: Thu Aug 04, 2005 4:51 pm    Post subject: Reply with quote

Thanks man, i did forget to change all the directory path :)

Anyway it is working now, thanks :)


P.S.
The Directory path were in a different file:
commonapache2.conf
Back to top
View user's profile Send private message
azuriel
Apprentice
Apprentice


Joined: 27 Feb 2005
Posts: 166

PostPosted: Thu Aug 04, 2005 4:53 pm    Post subject: Reply with quote

Heh apache problems are really not fun. The error messages are cryptic as anything (and many times misleading). Glad you got it working.
_________________
Adopt an unanswered post
TJGames.org

The folly of mistaking a torrent of verbiage for a spring of capital truths, and oneself for an oracle, is inborn in us. -Valery
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum