Changeset 65

Show
Ignore:
Timestamp:
03/01/2005 05:34:13 PM (4 years ago)
Author:
jan
Message:

added man page for spawn-fcgi and add a example for conditionals and simple-vhost

Location:
trunk/doc
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/doc/Makefile.am

    r1 r65  
    1 dist_man1_MANS=lighttpd.1 
     1dist_man1_MANS=lighttpd.1 spawn-fcgi.1 
    22 
    33 
  • trunk/doc/lighttpd.1

    r1 r65  
    1616spawn-fcgi(1) 
    1717.SH AUTHOR 
    18 jan.kneschke@incremental.de 
     18jan@kneschke.de 
  • trunk/doc/simple-vhost.txt

    r1 r65  
    6060You can use symbolic links to map several hostnames to the same directory. 
    6161 
     62Conditionals vs. simple-vhost 
     63----------------------------- 
     64 
     65You have to keep in mind that conditionals and simple-vhost interfere. :: 
     66 
     67  simple-vhost.server-root = "/var/www/servers/" 
     68  simple-vhost.default-host = "www.example.org" 
     69  simple-vhost.document-root = "pages" 
     70 
     71  $HTTP["host"] == "news.example.org" { 
     72    server.document-root = "/var/www/servers/news2.example.org/pages/" 
     73  }  
     74 
     75Even if the ``server.document-root`` will be set to ``/var/www/servers/news2.example.org/pages/``  
     76if ``news.example.org`` is requested simple-vhost will overwrite ``server.document-root`` shortly 
     77afterwards. 
     78 
     79If ``/var/www/servers/news.example.org/pages/`` exists it will be taken, if not  
     80``/var/www/servers/www.example.org/pages/`` will be taken as it is the default. 
     81 
     82To get them working in parallel you should use: :: 
     83 
     84  $HTTP["host"] !~ "^(news\.example\.org)$" { 
     85    simple-vhost.server-root = "/var/www/servers/" 
     86    simple-vhost.default-host = "www.example.org" 
     87    simple-vhost.document-root = "pages" 
     88  } 
     89 
     90  $HTTP["host"] == "news.example.org" { 
     91    server.document-root = "/var/www/servers/news2.example.org/pages/" 
     92  }  
     93 
     94It will enable simple-vhosting for all host with are not named ``news.example.org``.  
     95 
    6296Options 
    6397=======