HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Alias redirect ERROR 403 (http://www.howtoforge.com/forums/showthread.php?t=61762)

martin1977 8th May 2013 12:50

Alias redirect ERROR 403
 
I use
Code:

Alias /webmail /var/www/roundcube
to access roundcubemail. It seems I touched the wrong skrew, because now I get error 403 when I call http://www.domain.xyz/webmail (domain is located in /var/www/domain.xyz/web)
but I do not recall what I did... :(

The log says:
Code:

client denied by server configuration: /var/www/roundcube/

martin1977 10th May 2013 13:06

I solved this problem by adding a whole config. It's a mystery why I suddenly need to do this (before it worked with only the Alias line) but the config now looks like this:
Code:

# RoundCube alias and redirect functions
Alias /webmail /var/www/roundcube
<Directory /var/www/roundcube>
  Options +FollowSymLinks
  # This is needed to parse /var/www/roundcube/.htaccess. See its
  # content before setting AllowOverride to None.
  AllowOverride All
  order allow,deny
  allow from all

        <IfModule mod_php5.c>
                AddType application/x-httpd-php .php

                php_flag magic_quotes_gpc Off
                php_flag track_vars On
                php_flag register_globals Off
                php_value include_path .
        </IfModule>

</Directory>
# Protecting basic directories:
<Directory /var/www/roundcube/config>
        Options -FollowSymLinks
        AllowOverride None
</Directory>
<Directory /var/www/roundcube/temp>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>
<Directory /var/www/roundcube/logs>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>



All times are GMT +2. The time now is 20:50.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.