Monday 09 August 2010 12:42:13 am
the hole error mode look likes this:
"
Site security Your site is not running in a virtual host mode, this is insecure. It is recommended to run eZ Publish in virtual host mode. If you do not have the possibility to use virtual host mode, you should follow the instructions below about how to install an .htaccess file. The .htaccess file tells the web server to restrict the access to certain files. If you have shell access, you can run the following commands. cd /var/www/mysite1.com
cp .htaccess_root .htaccess
If you do not have shell access, you will have to copy the file using an FTP client or ask your hosting provider to do this for you.
"
According to the error above, I may understood that .htaccess is used in case there is no virtual host mode enable., or do i misinterpret? However i mean my virtual mode is on, because i could access to websites (i.e mysite1.com and mysite2.com) after the configurations. Here is the configure files and how I've done it: This file is made from this link http://ez.no/doc/ez_publish/technical_manual/4_x/installation/virtual_host_setup. and placed under /etc/apache2/sites-available under ubuntu 10.04.
"
NameVirtualHost *:80
<VirtualHost *:80>
<Directory /var/www/mysite1.com>
Options FollowSymLinks
AllowOverride None
</Directory>
<IfModule sapi_apache2.c>
#<IfModule mod_php5.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 sapi_apache2.c>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule content/treemenu/? /index_treemenu.php [L]
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/(texttoimage|public)/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascrip
ts?)/.* - [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/www/mysite1.com
ServerName mysite1.com ServerAlias admin.mysite1.com
"
And this files /settings/override/site.ini.append.php is in the installations folder.I got it from http://ez.no/doc/ez_publish/technical_manual/4_x/installation/virtual_host_setup/virtual_host_example
"
<?php /* #?ini charset="utf-8"?
[RegionalSettings]
Locale=eng-US
TextTranslation=enabled
[SiteAccessSettings]
AvailableSiteAccessList[]=mysite1
AvailableSiteAccessList[]=mysite1_admin
MatchOrder=host
HostMatchMapItems[]=mysite1.com;mysite1
HostMatchMapItems[]=admin.mysite1.com;mysite1_admin */ ?>
"
After configurations, what I've done for the testing to see if virtual mode is working: I made two directory for sites (mysite1.com and mysite2) under /var/www. If both of them can access from the browser address bar, then virtual mode must be working. Yes, it did, i could access to both of them. So I cannot figure out why still get the above error.
|