How to use multiple directives in ispconfig on same site but different folders?

Discussion in 'Installation/Configuration' started by keyvan, Apr 29, 2009.

  1. keyvan

    keyvan New Member

    Hi,

    I have used the following in the Apache Directives to allow ISPconfig to use the default .htaccess that came with the application

    Code:
    <Directory /srv/www/web13/web>
    AllowOverride All
    </Directory>
    
    <Directory /srv/www/web13/web/admin>
    AllowOverride All
    </Directory>
    

    But I am still getting these errors in the web/log/error.log
    The application won't install because it can't access files in the folders stated below. Those directory paths aren't going anywhere but they are not in the code.
    Code:
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"admin
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/".$ad["photo"]."
    [Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"cryptimage.php$idSess\\"
    [Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
    [Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
    [Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
    [Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] PHP Fatal error:  Call to undefined function getConfig() in /srv/www/web13/web/admin/index.php on line 47
    [Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images

    These are the .htaccess files

    Root .htaccess file
    Code:
    Options +FollowSymLinks
    
    RewriteEngine on
    RewriteBase /
    
    RewriteRule ^c,(.*),Keyword.htm$ index.php [R=301,L]
    RewriteCond %{REQUEST_URI} (/|\.htm|\.html|/[^.]*)$  [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule ^rss([0-9]{0,}),(.*).html$ rss.php?cat=$1 [L]
    RewriteRule (.*) index.php?page=$1&%{QUERY_STRING}
    RewriteRule templates\/(.*).tpl$ index.php[F]
    RewriteRule templates_c\/(.*) index.php[F]
    RewriteRule configs\/(.*).conf$ index.php [F]
    
    #RewriteRule ^(.*)http(.*)$ index.php [R=301]
    #RewriteRule ^p-(.*).html$ index.php?page=$1 [L]
    Admin Folder .htacess
    Code:
    Options +FollowSymLinks
    
    RewriteEngine on
    RewriteBase /admin
    
    
    RewriteCond %{REQUEST_URI} (/|\.htm|\.html|/[^.]*)$  [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule ^rss([0-9]{0,}),(.*).html$ rss.php?cat=$1 [L]
    RewriteRule (.*) index.php?page=$1
    RewriteRule templates\/(.*).tpl$ index.php[F]
    RewriteRule templates_c\/(.*) index.php[F]
    RewriteRule configs\/(.*).conf$ index.php [F]
    #RewriteRule ^p-(.*).html$ index.php?page=$1 [L]
    
     
    Last edited: Apr 30, 2009
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you remove the backslashes from these lines...
    Code:
    RewriteRule templates\/(.*).tpl$ index.php[F]
    RewriteRule templates_c\/(.*) index.php[F]
    RewriteRule configs\/(.*).conf$ index.php [F]
    ... and try again?
     
  3. keyvan

    keyvan New Member

    Hi

    Removed back slashes from htaccess files. no changes in error log.
    Any ideas?

    Code:
    [Thu Apr 30 17:59:35 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"admin
    [Thu Apr 30 17:59:35 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/".$ad["photo"]."
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] PHP Fatal error:  Call to undefined function getConfig() in /srv/www/web13/web/admin/index.php on line 47
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"cryptimage.php$idSess\\"
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
    [Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
    [Thu Apr 30 17:59:37 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
    [Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] PHP Fatal error:  Call to undefined function getConfig() in /srv/www/web13/web/admin/index.php on line 47
    [Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"admin
    [Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
    [Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
     

Share This Page