Forums / Install & configuration / Multi doman website

Multi doman website

Author Message

David Lafonte

Friday 20 June 2008 9:15:58 pm

Hello there
I try to find help on forum but so far I was not lucky
Here is my plan
I have hosting where I can have unlimited domains
My main domain like www.mydomain.com
But I can have like I said unlimited domain
I would like to setup few more domain using single installation and single database of ez publisher
Like
www.mydomain.com
www.mydomain1.com
www.mydomain2.com
Basically my main domain is located in /home/mydomain.com/public_html/
That is folder of www.mydomain.com
My other domains are in

/home/mydomain.com/public_html/mydomain1.com www.mydomain1.com

/home/mydomain.com/public_html/ mydomain2.com www.mydomain2.com

/home/mydomain.com/public_html/ mydomain3.com www.mydomain3.com
Any idea how I can setup this
So if I enter example
www.mydomain2.com go to www.mydomain2.com using installation single installation ez publish
Any idea, suggestion please
Thanks

Greg McAvoy-Jensen

Friday 20 June 2008 9:41:27 pm

I wouldn't set up new directories for each new domain (for example, /home/mydomain.com/public_html/mydomain1.com). Everything should point to index.html in the root eZ Publish directory; let eZ Publish figure things out from there.

The way to differentiate multiple domains on one eZ Publish installation is to use a separate "siteaccess" for each domain. So in settings/siteaccess, add an additional directory for each site access; in each directory, put a site.ini.append.php tailored to that particular domain. It will give you the flexibility to decide whether they all use the same database and var directory.

In settings/override/site.ini.append.php, be sure each of your new siteaccesses is recognized. Also, this is where you specify which domain corresponds to which siteaccess--by use of the MatchOrder directive. If you happen to name each site access the same as the domain (without the www.), then your configuration would look like this:

[SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=www.mydomain.com; mydomain
HostMatchMapItems[]=www.mydomain1.com; mydomain1
HostMatchMapItems[]=www.mydomain2.com; mydomain2

Of course, you'll need to also include the admin interface.

You can read more at http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/configuration/access_methods.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

David Lafonte

Saturday 21 June 2008 9:02:30 am

So if I enter my domain www.mydomain.com.
Do I need do some web host setup?
Like apache conf file

Greg McAvoy-Jensen

Saturday 21 June 2008 9:29:57 am

You'd just need one virtual host setup for the whole set--just include something like (I'm using Apache 2):

DocumentRoot /home/mydomain.com/public_html/
    ServerName www.mydomain.com
    ServerAlias www.mydomain1.com
    ServerAlias www.mydomain2.com

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

David Lafonte

Saturday 21 June 2008 10:02:15 am

Thanks for reply
I do not have access to apache conf because i am on shared hosting
can i do something simillar in .htaccess
Thanks

Donat Fritschy

Monday 23 June 2008 9:55:57 am

Your hosting provider will most certainly define the ServerAlias directive for you.

Alternatively, you can stick with the different site roots and put this directive into the .htaccess file

Redirect / http://www.example.com/ 

http://www.webmanufaktur.ch - Developers united in eZ Publish: http://www.cjw-network.com

eZ debug

Timing: Jan 17 2025 23:59:23
Script start
Timing: Jan 17 2025 23:59:23
Module start 'content'
Timing: Jan 17 2025 23:59:23
Module end 'content'
Timing: Jan 17 2025 23:59:23
Script end

Main resources:

Total runtime0.2090 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 587.7109180.8359
Module start 'content' 0.00850.0412 768.5469102.0078
Module end 'content' 0.04970.1592 870.5547532.2500
Script end 0.2089  1,402.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00411.9564200.0002
Check MTime0.00150.7303200.0001
Mysql Total
Database connection0.00100.497210.0010
Mysqli_queries0.114654.83501410.0008
Looping result0.00190.91681390.0000
Template Total0.158775.910.1587
Template load0.00100.486710.0010
Template processing0.157675.427810.1576
Override
Cache load0.00070.338310.0007
Sytem overhead
Fetch class attribute can translate value0.00060.295710.0006
XML
Image XML parsing0.00020.098710.0002
General
dbfile0.030914.7877200.0015
String conversion0.00000.003430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs