Wednesday 30 April 2003 7:27:43 am
I'd like to parse this "how-to" to illustrate the problem I think many newbies will have with this product. Mind you, this "how-to" was written by a helpful user who wanted to give a simplied explanation of the same topic that appears in the ez manual. My comments will appear in parenthsis...
************************************************
Several sites with one installation Last updated: Monday 31 March 2003 3:17:47 pm, by Karsten Jennissen If you want subdomains (sub.domain.tld, sub2.domain.tld, ...) to work as separate sites that run on one installation of eZ publish 3.x you do the following: ('subdomains'? Excuse me, but what is a subdomain and how am I to know whether I'd want one or not? All I want to do is get up and running. How do I do that?) Edit settings/site.ini.php (I "do Edit settings/site.ini.php"??? Well, tell me, how does one do 'Edit settings/site.ini.php'? is there a special key on the keyboard I press?)
[SiteAccessSettings]
MatchOrder=host
HostMatchRegexp=^(.+\\..+)\\.domain\\.tld$ HostMatchSubtextPost=\\.domain\\.tld (Excuse me, but what does this stuff mean, I haven't the slighest idea? ... Okay, I've figured out you were talking about a file in the directory and now I've found that file and looking at the same section you got above -- but what am I looking at? And why should I have to fool around with anything in here anyway? And what does "\\.domain\\.tld$" mean? I've never seen anything like this before and I'll be darned if I'm going to fiddle with it if I don't understand what it is.) If you would like to use domains (www.domain1.tld, www.domain2.tld) to work as seprate sites that run on one installation of eZ publish 3.x you do the following: (Huh? What is "www.domain1.tld" ? You forgot to tell me. And how would I know whether I want it to be a separate site? Hey, what is a separate site anyway?) Edit settings/site.ini.php (Back to the file. Boy, this is fun.)
[SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=domain1.net;www
HostMatchMapItems[]=www.domain1.net;www
HostMatchMapItems[]=admin.domain1.net;admin HostMatchMapItems[]=www.domain2.com;domain2 (Now I'm really confused. What are the "www" doing in back of domain1.net? I've never seen anything like that before. Does this user friendly product assume I know stuff like that?) As you can see this method allows for subdomains and domains (and you don't have to worry about learning regexp). (It does what? What in the world does "allows for subdomains and domains" mean? And I don't even want to know what "regexp" means, thank you very much.) Then you just create the siteaccess files for each site you want to host. E.g. (That easy, huh? But what in the world are you talking about? What's a "siteaccess file" you forgot to tell me.)
settings/siteaccess/sub/site.ini.append settings/siteaccess/sub2/site.ini.append (Oh, this is wonderful. More stuff that looks like Chinese caligraphy to me) In the site.ini.append you can specify any values to differ from the main/default setup, even a completely different database or different design folders. Take a look at settings/siteaccess/demo/site.ini.append and settings/siteaccess/admin/site.ini.append for examples. (What on earth are you talking about? "Values" ...."site.ini.append"..."different database"...??? I think I understand what a database is, but that's about it. That other stuff is gobbly-gook to me.) Sub documents: (And here we stop... I'm sorry, this software product is not user friendly and the so-called tutorials don't help at all. A user friendly tutorial does not introduce six new concepts in two paragraphs. A user friendly app/turorial works like this.
1. Do this.
2. Do that. 3. Restart your application -- enjoy!
Ric)
Note: This part is a user contributed documentation.
|