Multiple V-hosts with serverpaths?

Multiple V-hosts with serverpaths?

Sunday 18 January 2004 6:50:29 am - 1 reply

Author Message

James Packham

Monday 19 January 2004 9:20:49 am

Hi, I think I understand you right.

Add entries for each of your domains like this:

<VirtualHost *:80>
<Directory /var/www/html/site3>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
DocumentRoot /var/www/html/site3
ServerName www.site3.com
</Virtualhost>

The rewriting bit is the "RewriteEngine On" and "RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php" lines. This is whatever you want apache to assume, so in this example anything that comes in after www.site3.com will be rewritten as www.site3.com/index.php.

e.g. www.site3.com/en automatically becomes www.site3.com/index.php/en (although this won't appear in the user's browser). eZ Publish will do the rest of the translation, you can tell it how to respond to different incoming urls in /settings/override/site.ini.php.append (or whatever it was)

Hope this helps (this is all in the documentation by the way).

Regards,

James

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.