HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   How to use multiple directives in ispconfig on same site but different folders? (http://www.howtoforge.com/forums/showthread.php?t=34306)

keyvan 29th April 2009 16:59

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]


falko 30th April 2009 17:41

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?

keyvan 30th April 2009 20:04

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



All times are GMT +2. The time now is 05:24.

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