Development

Changeset 2876

You must first sign up to be able to contribute.

Changeset 2876

Show
Ignore:
Timestamp:
11/30/06 09:05:17 (2 years ago)
Author:
francois
Message:

doc: fixed wrong httpd.conf in project_creation.txt

Files:

Legend:

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

    r1599 r2876  
    102102To 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: 
    103103 
    104     <Directory "/$data_dir/symfony/web/sf"> 
    105       AllowOverride All 
    106       Allow from All 
    107     </Directory> 
    108104    <VirtualHost *:80> 
    109105      ServerName myapp.example.com 
    110106      DocumentRoot "/home/steve/myproject/web" 
    111107      DirectoryIndex index.php 
    112       Alias /sf /$data_dir/symfony/web/sf 
    113  
     108      Alias /sf /$sf_symfony_data_dir/web/sf 
     109      <Directory "/$sf_symfony_data_dir/web/sf"> 
     110        AllowOverride All 
     111        Allow from All 
     112      </Directory> 
    114113      <Directory "/home/steve/myproject/web"> 
    115114        AllowOverride All 
     
    118117    </VirtualHost> 
    119118 
    120 >**Note**: In the above configuration, the `$data_dir` placeholders have to be replaced by your PEAR data directory. For example, for *nix, you should type: 
     119>**Note**: In the above configuration, the `$sf_symfony_data_dir` placeholders have to be replaced by your symfony data directory. For example, for a PEAR installation on *nix, you should type: 
    121120> 
    122121>         Alias /sf /usr/local/lib/php/data/symfony/web/sf 
    123122> 
    124 >You will find more about the PEAR directories in the [installation chapter](installation.txt). 
    125123 
    126124Restart Apache, and that's it: the newly created application can now be called and viewed through a standard web browser at the url: