Development

Changeset 969

You must first sign up to be able to contribute.

Changeset 969

Show
Ignore:
Timestamp:
03/13/06 20:20:15 (2 years ago)
Author:
fabien
Message:

fixed some errors in the book (patch from brujahRg)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/doc/book/content/project_creation.txt

    r851 r969  
    100100To be able to access and test the new application, the web server has to be configured. Here is an example for Apache, where a new VirtualHost is added in the `httpd.conf` file: 
    101101 
     102    <Directory "/$data_dir/symfony/web/sf"> 
     103     AllowOverride All 
     104     Allow from All 
     105    </Directory> 
    102106    <VirtualHost *:80> 
    103107      ServerName myapp.example.com 
     
    108112      <Directory "/home/steve/myproject/web"> 
    109113       AllowOverride All 
     114       Allow from All 
    110115      </Directory> 
    111116    </VirtualHost> 
    112117 
    113 >**Note**: In the above configuration, the `$data_dir` in the `Alias` line has to be replaced by your PEAR data directory. For example, for *nix, you should type: 
     118>**Note**: In the above configuration, the `$data_dir` placeholders has to be replaced by your PEAR data directory. For example, for *nix, you should type: 
    114119> 
    115120>         Alias /sf /usr/local/lib/php/data/symfony/web/sf 
  • trunk/doc/book/content/web_server.txt

    r807 r969  
    2121Let's assume that you run an Apache server. To setup a virtual host for the `myapp` application, add the following lines to the `httpd.conf` file: 
    2222 
     23    <Directory "/$data_dir/symfony/web/sf"> 
     24     AllowOverride All 
     25     Allow from All 
     26    </Directory> 
    2327    <VirtualHost *:80> 
    2428      ServerName myapp.example.com 
     
    2933      <Directory "/home/steve/myproject/web"> 
    3034       AllowOverride All 
     35       Allow from All 
    3136      </Directory> 
    3237    </VirtualHost> 
    3338 
    34 The `Alias` statement in the middle is necessary for the images of the debug sidebar to be displayed. The `$data_dir` has to be replaced by your PEAR data directory. For example, for *nix, you should type: 
     39The `Alias` statement in the middle is necessary for the images of the debug sidebar to be displayed. The `$data_dir` placeholders has to be replaced by your PEAR data directory. For example, for *nix, you should type: 
    3540 
    3641    Alias /sf /usr/local/lib/php/data/symfony/web/sf 
     
    7075    http://myapp.example.com/main/index 
    7176 
    72 But the default `settings.yml` of the application contains a `suffix` parameter that tells what has to be added to all the action names: 
     77The default `settings.yml` of the application contains a commented `suffix` parameter: 
     78 
     79    all: 
     80    #  .settings: 
     81    #    suffix:        . 
     82 
     83In order to make the `index` action of the `main` module appear like: 
     84 
     85    http://myapp.example.com/main/index.html 
     86     
     87You can uncomment and set the `suffix` parameter to `.html`: 
    7388 
    7489    all: 
     
    7691        suffix:        .html 
    7792 
    78 This is why the `index` action of the `main` module appears like: 
    79  
    80     http://myapp.example.com/main/index.html 
    81      
    82 Of course, you're free to remove this suffix by writing in place: 
    83  
    84     all: 
    85       .settings: 
    86         suffix:         
    87  
    8893Alias 
    8994----- 
     
    98103    <Directory "/home/steve/myproject/web"> 
    99104       AllowOverride All 
     105       Allow from All 
    100106    </Directory> 
    101107 
     
    120126 
    121127You can add a new virtual host in your Apache `httpd.conf` That's fairly easy to understand: 
     128 
     129    <Directory "/$data_dir/symfony/web/sf"> 
     130     AllowOverride All 
     131     Allow from All 
     132    </Directory> 
    122133 
    123134    <VirtualHost *:80> 
     
    129140      <Directory "/home/steve/myproject/web"> 
    130141       AllowOverride All 
     142       Allow from All 
    131143      </Directory> 
    132144    </VirtualHost> 
     
    140152      <Directory "/home/steve/myproject/web"> 
    141153        AllowOverride All 
     154        Allow from All 
    142155      </Directory> 
    143156    </VirtualHost>