lighttpd

Discussion in 'Server Operation' started by Thunderbirdsei, Apr 29, 2008.

  1. Thunderbirdsei

    Thunderbirdsei New Member

    Hi,

    I'm totally new to lighty (Apache user) and I need some help. I would
    like to have something like that:

    Code:
    NameVirtualHost xxx.xxx.xxx.xxx:80
    
    <VirtualHost xxx.xxx.xxx.xxx:80>
     ServerName domain.com
     ServerAlias www.domain.com
     DocumentRoot /var/www/user/folder/
     <Directory "/var/www/user/folder/">
      Options -Indexes Includes FollowSymLinks
      AllowOverride All
      Allow from all
     </Directory>
     Options +FollowSymLinks
     RewriteEngine On
    
     RewriteCond %{REQUEST_URI} !^/wiki2(/.*)?$ [NC]
    
     RewriteRule ^/$ http://www.domain.com/wiki
     ProxyPass /wiki http://www.domain.com:8082/wiki
     ProxyPassReverse /wiki http://www.domain.com:8082/wiki
    
     ProxyPass /wiki2 http://www.domain.com:8082/wiki2
     ProxyPassReverse /wiki2 http://www.domain.com:8082/wiki2
    
     ErrorLog /var/www/user/error.log
     TransferLog /var/www/user/access.log
     CustomLog /var/www/user/combined.log combined
    </VirtualHost>
    How can I achieve that in lighty? I tried to understand (really!) the documentation provided by lighty, but they are very confusing to me.

    Any help is much appreciated!

    Cheers
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What exactly do you want to achieve? Setting up vhosts, rewrite rules, reverse proxies, etc.?
     
  3. Thunderbirdsei

    Thunderbirdsei New Member

    Thanks for the reply. I guess I found the solution couple (sleepless) hours ago. As soon as I'm sure it works on a live system I'll post a complete example here (in a few weeks, holidays ahead).

    Thanks!
     
  4. Thunderbirdsei

    Thunderbirdsei New Member

    BTW: Have you received my PM?
     
  5. falko

    falko Super Moderator ISPConfig Developer

    No. When did you send it?
     
  6. Thunderbirdsei

    Thunderbirdsei New Member

    23rd April 2008 Re: Your Xwiki Tutorial
    21:16 falko

    17th April 2008 Hosting-Frage
    16:57 till

    Hmm...am I blocked? :D


    BTW: ProxyPass is not possible with lighty (planned for V. 1.5 'mod_proxy_core'), that means if you want to forward your requests to Tomcat it will unveil the port from Tomcat to the user...
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Ok, I got that PM. :) But I'm getting so many PMs that sometimes I cannot answer all of them... :eek:
     

Share This Page