Opensuse11.4 – Apache – Access Forbidden 404| FAQs

Question: I installed apache  from yast  manager in opensuse and i started apache, everything went ok. Now  when i type in the browser

http://ip i got the error message : Access Forbidden  404

How to resolve this issue?

Answer:

To resolve this,  Open the  apache  config  httpd.conf  located in  /etc/apache2 with your favorite text editor, and at the end of the file add the followung :

#DocumentRoot “/home/srv/www/htdocs”

DocumentRoot “/srv/www/htdocs”

<Directory “/srv/www/htdocs”>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

 

The text above means that your  Document  root  is  now under /srv/www/htdocs

Now move  your  index.php or  html  there  and start  your  apache  again.