Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using Apache/2.2.3 (Linux/SUSE) with virtual hosts and every website brings an 403 error. mod_rewrite module is loaded. rewrite shows in the output of apache2ctl -t -D DUMP_MODULES.

In the error log I get Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /srv/www/vhosts/default/htdocs/ Wierd is that all webfiles are in /srv/www/vhosts/*

A typical vhost entry looks like this:

 <VirtualHost *:80>  
       ServerName myserver.com                                                                           
       ServerAlias *myserver.com                                                                                                                                                 

       #RewriteEngine On                                                                                        
       #RewriteOptions Inherit                                                                                  

       DocumentRoot /srv/www/vhosts/messedesign                                                                 
       DirectoryIndex index.php index.html                                                                      
       Include /etc/apache2/conf.d/php5.conf                                                                    
       <Directory "/srv/www/vhosts/messedesign">                                                                
              <IfModule mod_php5.c>                                                                            
                     php_admin_flag engine on                                                                 
                      php_admin_flag safe_mode on                                                              
                      php_admin_value open_basedir "/srv/www/vhosts/messedesign:/"                             
              </IfModule>                                                                                      
              Options Indexes FollowSymLinks                                                                   
              AllowOverride All                                                                                
              Order allow,deny                                                                                 
             Allow from all                                                                                   
     </Directory>                                                                                             

in /srv/www/vhosts/messedesign/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule    ^$    /app/webroot/    [L]
RewriteRule    (.*) /app/webroot/$1    [L]
</IfModule>

The files themselves have all at least read status (-rw-r--r--).

What else should I check?

PS: I commented "RewriteEngine On" in /srv/www/vhosts/.htaccess out and instead of an 403 I get now the Plesk Welcome Page "You see this page because there is no Web site at this address."

share|improve this question
adding "/" path in open_basedir ( "/srv/www/vhosts/messedesign:/" ) means the whole filesystem is allowed, is it what you wanted to do with open_basedir? – regilero Jul 17 '11 at 19:18
No! Thanks for pointing it out. – MarkusD Oct 12 '11 at 13:26
MarkusD: no problem,still having problems with this conf or is it now solved? – regilero Oct 12 '11 at 13:48
I couldn't solve it, so I set the server up again. It works now! Thx for asking! – MarkusD Oct 12 '11 at 15:03

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.