View previous topic :: View next topic |
Author |
Message |
BlackMan890 Tux's lil' helper


Joined: 03 Jul 2005 Posts: 134 Location: Iceland
|
Posted: Thu Aug 04, 2005 4:21 pm Post subject: apache2 forbidden? [SOLVED] |
|
|
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 |
|
 |
azuriel Apprentice


Joined: 27 Feb 2005 Posts: 166
|
Posted: Thu Aug 04, 2005 4:24 pm Post subject: |
|
|
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 |
|
 |
BlackMan890 Tux's lil' helper


Joined: 03 Jul 2005 Posts: 134 Location: Iceland
|
Posted: Thu Aug 04, 2005 4:30 pm Post subject: |
|
|
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 |
|
 |
azuriel Apprentice


Joined: 27 Feb 2005 Posts: 166
|
Posted: Thu Aug 04, 2005 4:41 pm Post subject: |
|
|
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 |
|
 |
BlackMan890 Tux's lil' helper


Joined: 03 Jul 2005 Posts: 134 Location: Iceland
|
Posted: Thu Aug 04, 2005 4:51 pm Post subject: |
|
|
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 |
|
 |
azuriel Apprentice


Joined: 27 Feb 2005 Posts: 166
|
Posted: Thu Aug 04, 2005 4:53 pm Post subject: |
|
|
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 |
|
 |
|