Saturday 29 November 2003 8:19:21 am
I've set up Virtual Host successfully, it finally works for me after trying different sollutions found on this forum. This is the Virtual Host part from my Apache 1.3 httpd.conf file, I only changed my original server path and website name to something similar:
#--------------------------------------------------------------
# Main server website
<Virtualhost *:80>
<Directory c:/server/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
ServerAdmin root@localhost
DocumentRoot c:/server/
ServerName www.server.com </Virtualhost>
# eZp website
<Virtualhost *:80>
<Directory c:/server/ezpublish/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
ServerAdmin root@localhost
DocumentRoot c:/server/ezpublish/
ServerName website.server.com </Virtualhost>
# eZp website's admin area
<Virtualhost *:80>
<Directory c:/server/ezpublish/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
ServerAdmin root@localhost
DocumentRoot c:/server/ezpublish/
ServerName admin.server.com
</Virtualhost> #-------------------------------------------------------------- As you can see, the eZp folder is a sub-folder within my server, because I want the eZp website to be accessed by website.server.com, and the main server by www.server.com. This is the only part of my settings/override/site.ini.append.php file that I changed:
#--------------------------------------------------------------
[SiteAccessSettings]
CheckValidity=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=website.server.com;website
HostMatchMapItems[]=admin.server.com;admin #-------------------------------------------------------------- Everything works great, if I go to www.server.com I get to the server's main website, if I go to website.server.com I get to the eZ publish website, and if I go to admin.server.com I get to the admin login page. But there I see the error that says "kernel (50) - No database connection could be made, the system might not behave properly." and I can't log in. I use a dynamic DNS (instead of server.com), and somehow I can't access my server using it's DNS address from my own computer. But from another machine on my LAN I can access my server through the internet using the DNS address. Both these machines are behind a router with firewall (with port 80 open for the server machine), could that be the problem? Or is it just a setting in the override, or some other configurational mistake? I appreciate all help I can get, especially from eZ itself. This area is not suficiently covered in the documentation and I was left to find it all out for myself using the forum. Hopefully the eZ crew or somebody else knows how to do it properly :)
|