Alias redirect ERROR 403

Discussion in 'Server Operation' started by martin1977, May 8, 2013.

  1. martin1977

    martin1977 New Member

    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/
     
  2. martin1977

    martin1977 New Member

    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>
    
     
    biforme likes this.

Share This Page