Friday 02 November 2007 6:12:14 am
Hi everyone, I need some help with the configuration of my webserver. I'm new with EZ and CMS systems and i'm trying to host 2 (later on more...) websites with 1 EZ installation. I've read a lot of forumposts and documentation, but i still aint getting it right.
So far the result is (as i can see it)
When i go to site1, all goes well... i see the startpage and everything. When i go to site2, i can see that it read the SiteName attribute from the SiteAccess of the other website. So i guess that went ok. I divided the Var DIR and DB (copies of the original stuff) and linked Site2 to the new Var dir and DB. But as result for Site2 i see:
<b>Error / kernel (1) </b>
Access denied You do not have permission to access this area. <b>Does anyone know if i really divided the two sites apart now and if so, why i can't acces Site2?</b> I'll give more info about my config down below. I hope someone can help me out... I would really appreciate it! <b>Info:</b>
<i>Var Dirs</i>: Just a copy of the original Var dir <i>Database</i>: Just a copy of the original DB
<b><i>Settings/Override/site.ini.append.php:</i></b>
[SiteSettings]
DefaultAccess=eyc
SiteList[]
SiteList[]=dut
SiteList[]=eyc
SiteList[]=eycadmin
SiteList[]=ezechiel
SiteList[]=ezladmin RootNodeDepth=1
[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=dut
AvailableSiteAccessList[]=eyc
AvailableSiteAccessList[]=eycadmin
AvailableSiteAccessList[]=ezechiel
AvailableSiteAccessList[]=ezladmin
MatchOrder=host
HostMatchMapItems[]=eyc.getmyip.com;eyc
HostMatchMapItems[]=eyc.getmyip.com/eycadmin;eycadmin
HostMatchMapItems[]=ezlwebserver.homeip.net;ezechiel HostMatchMapItems[]=ezlwebserver.homeip.net/ezladmin;ezladmin
[FileSettings] VarDir=var/ezwebin_site
<b>Different SiteAccesses</b>
- admin
- dut
- eyc (original)
- eycadmin (original)
- ezechiel (new)
- ezladmin (new) - setup <b><i>Settings/siteaccess/eyc/site.ini.append.php:</i></b>
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=root
Password=
Database=<b>eyc</b>
Charset= Socket=disabled
[SiteSettings]
SiteName=<b>www.eyc.cc</b>
SiteURL=localhost
LoginPage=embedded AdditionalLoginFormActionURL=http://localhost/eycadmin/user/login
[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]
RelatedSiteAccessList[]=dut
RelatedSiteAccessList[]=eyc
RelatedSiteAccessList[]=eycadmin ShowHiddenNodes=false
[FileSettings] VarDir=<b>var/ezwebin_site</b> <b><i>Settings/siteaccess/eycadmin/site.ini.append.php:</i></b>
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=root
Password=
Database=<b>eyc</b>
Charset= Socket=disabled
[SiteSettings]
SiteName=<b>www.eyc.cc</b>
SiteURL=localhost LoginPage=custom
[SiteAccessSettings]
RequireUserLogin=true
RelatedSiteAccessList[]=dut
RelatedSiteAccessList[]=eyc
RelatedSiteAccessList[]=eycadmin ShowHiddenNodes=true
[FileSettings] VarDir=<b>var/ezwebin_site</b> <b><i>Settings/siteaccess/ezechiel/site.ini.append.php:</i></b>
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=root
Password=
Database=<b>ezechiel</b>
Charset= Socket=disabled
[SiteSettings]
SiteName=<b>www.ezechiel.org</b>
SiteURL=ezlwebserver.homeip.net
LoginPage=embedded AdditionalLoginFormActionURL=http://ezlwebserver.homeip.net/ezladmin/user/login
[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]
RelatedSiteAccessList[]=ezechiel
RelatedSiteAccessList[]=ezladmin ShowHiddenNodes=false
[FileSettings] VarDir=<b>var/ezechiel</b> <b><i>Settings/siteaccess/ezladmin/site.ini.append.php:</i></b>
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=root
Password=
Database=<b>ezechiel</b>
Charset= Socket=disabled
[SiteSettings]
SiteName=<b>www.ezechiel.org</b>
SiteURL=ezlwebserver.homeip.net LoginPage=custom
[SiteAccessSettings]
RequireUserLogin=true
RelatedSiteAccessList[]=ezechiel
RelatedSiteAccessList[]=ezladmin ShowHiddenNodes=true
[DesignSettings]
SiteDesign=<b>eycadmin</b> AdditionalSiteDesignList[]=admin
[FileSettings] VarDir=<b>var/ezechiel</b>
<b><i>httpd.conf:</i></b> NameVirtualHost 83.86.36.177
<VirtualHost 83.86.36.177>
<Directory var/ezwebin_site>
Options FollowSymLinks
AllowOverride None </Directory>
<IfModule mod_php4.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0 </IfModule> DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon.ico - [L]
RewriteRule ^/robots.txt - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^/var/cache/debug.html.* - [L]
# RewriteRule ^/var/[^/]+/cache/debug.html.* - [L]
RewriteRule .* /index.php </IfModule>
DocumentRoot var/ezwebin_site
ServerName eyc.getmyip.com
ServerAlias eyc.getmyip.com/eycadmin
</VirtualHost>
<VirtualHost 83.86.36.177>
<Directory var/ezechiel>
Options FollowSymLinks
AllowOverride None </Directory>
<IfModule mod_php4.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0 </IfModule> DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon.ico - [L]
RewriteRule ^/robots.txt - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^/var/cache/debug.html.* - [L]
# RewriteRule ^/var/[^/]+/cache/debug.html.* - [L]
RewriteRule .* /index.php </IfModule>
DocumentRoot var/ezechiel
ServerName ezlwebserver.homeip.net
ServerAlias ezlwebserver.homeip.net/ezladmin </VirtualHost>
Kind regards, JL
|