Mobile app version of vmapp.org
Login or Join
Angela700

: Enable mod_rewrite on OpenSuSE 11.04 I have a problem on OpenSuSE 11.04. I configured apache and enabled mod_rewrite but it doesn't working. on every php file I get 403 forbidden error.

@Angela700

Posted in: #Apache #HttpdConf #ModRewrite #Php

I have a problem on OpenSuSE 11.04. I configured apache and enabled mod_rewrite but it doesn't working. on every php file I get 403 forbidden error.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

Have you updated your /etc/apache2/httpd.conf file? If not, open it and add the following lines at the end of the file. You may need to replace /srv/www/htdocs with the path to your server's 'htdocs' or 'public_html' directory:

DocumentRoot "/srv/www/htdocs"
<Directory "/srv/www/htdocs">
Options +FollowSymLinks
AllowOverride all
Order deny,allow
Allow from all
</Directory>


Restart Apache and check your URL again. If you still see errors, try creating an .htaccess file in your htdocs folder to force the base directory. This seems to help sometimes if your hosting company puts their VPS boxes behind another server:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
</IfModule>


If this still fails to fix things for you, check the logs at /var/log/apache2/access_log and /var/log/apache2/error_log to see what's going wrong. You can also use RewriteLogLevel to get more information about where the URL rewrite fails.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme