/index.shtml Auto execution

Discussion in 'Installation/Configuration' started by edi00, Jun 1, 2010.

  1. edi00

    edi00 Member

    I have another problem with SSI which will not automatically execute /index.shtml

    if I type domain.com/index.shtml it works.

    if I type domain.com/ only it does not work and I see an error message in error.log "Directory index forbidden by Options directive: /var/www/airpatrol.us/web/"

    my vhost SSI enable looks like this:
    Code:
            # ssi enabled
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml
            Options +Includes [COLOR="Red"]+Indexes[/COLOR]
    
    I have added "+Indexes" as shown above and the error.log message changed to "(13)Permission denied: Can't open directory for index: /var/www/airpatrol.us/web/"

    And terminal shows error "403 You are not permitted to access the requested URL."

    I have tried root/root and client1/web4 and chmod 755, 644 and some others without any positive result.

    What am I doing wrong?:confused:
     
  2. CSsab

    CSsab New Member

    working directory

    Hi edi00,
    I am thinking that your working directory is /var/www/clients/client1/web4/web

    cd /var/www/clients/client1/web4/web
    ls
    and see what is in there.
     
  3. edi00

    edi00 Member

    That is where the /index.shtlm is.
    It is strange that error is complaining about the /var/www/airpatrol.us/web/ which is DocummentRoot

    Code:
        <Directory /var/www/airpatrol.us/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
    
            # ssi enabled
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml
            Options +Includes [COLOR="Red"]+Indexes[/COLOR]
        </Directory>
        <Directory /var/www/clients/client1/web4/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
            
            # ssi enabled
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml
            Options +Includes [COLOR="Red"]+Indexes[/COLOR]
        </Directory>
    

    I do not understand why the vhost has double directory. I am using client/client1/web4/web since DocumentRoot does not exist. If I want to CD to DocumentRoot the airpatrol.us is simlink directly to web4.
     
  4. BorderAmigos

    BorderAmigos New Member

    You need to add index.shtml to the DirectoryIndex directive.

    /var/www/client/client1/web4/web is the actual directory.
    /var/www/airpatrol.us/web/ is a symbolic link.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Because apache differentiates between the symlink path and the real path and to ensure that everything works as expected, it is nescessary that all options are set for both paths.
     
  6. edi00

    edi00 Member

     
    Last edited: Jun 1, 2010
  7. edi00

    edi00 Member

    Thanks till to confirm my suspicion!:cool:
     

Share This Page