View Single Post
  #1  
Old 29th April 2009, 15:59
keyvan keyvan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Question How to use multiple directives in ispconfig on same site but different folders?

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 by keyvan; 30th April 2009 at 11:27.
Reply With Quote
Sponsored Links