Changes between Version 2 and Version 3 of Documentation/Community/Document/Development/Tutorial/Version6

Show
Ignore:
Timestamp:
12/22/11 00:38:20 (17 months ago)
Author:
mburillo@… (IP: 87.222.134.37)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Community/Document/Development/Tutorial/Version6

    v2 v3  
    33In this version we will add support for ''Server Aliases''. These aliases allow the user to configure the same virtual host with more than one name.This way we can have the same virtual host for  ''foo.com'' and ''www.foo.com''. 
    44 
    5 To support this feature we will introduce the concept of ''submodel''. A ''submodel'' is just a normal model whose data is related to a parent model. For example, we will be creating a new model called ''serverAliases'', this model will behave as a ''submodel''. For every virtual host, that is, for every row in the ''VirtualHosts'' model we will associate another model of ''serverAliases''. Or to put it another way, every row of ''VirtualHosts'' has many ''serverAliases''. In practice this means a few things, amongst them: configuration data is stored in a tree or directory structure, so submodel data will live under its parent model directory. 
    6  
    7   * VirtualHost: foo.com 
     5To support this feature we will introduce the concept of ''submodel''. A ''submodel'' is just a normal model whose data is related to a parent model. For example, we will be creating a new model called ''serverAliases'', this model will behave as a ''submodel''. For every virtual host, that is, for every row in the ''!VirtualHosts'' model we will associate another model of ''serverAliases''. Or to put it another way, every row of ''!VirtualHosts'' has many ''serverAliases''. In practice this means a few things, amongst them: configuration data is stored in a tree or directory structure, so submodel data will live under its parent model directory. 
     6 
     7  * !VirtualHost: foo.com 
    88    * serverAliases: www.foo.com 
    99    * serverAliases: www1.foo.com 
    10   * VirtualHost: bar.com 
     10  * !VirtualHost: bar.com 
    1111    * serverAliases: www.bar.com 
    1212    * serverAliases: www1.bar.com