lighttpd forum migration > Migrate Apache config to lighttpd

Posted by Rich Duzenbury (Guest)
on 01.08.2006 21:50
Hey there,

I'm trying to migrate a few name based virtual hosts from apache to 
lighty.  I've got the vhosts responding, but I don't know how to handle 
<Directory> stuff, like:


  # The web stats are private
  # e.g. http://example.com/webalizer should only be accessible
  # from inside the network
  <Directory /srv/www/www.example.com/htdocs/webalizer>
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Allow from 172.16.12
    deny from all
  </Directory>

  # this is where the scripts are stored for managing
  # the userlist for the protected area of the site
  # Note that this is OUTSIDE the document root.
  ScriptAlias /htpass/ "/srv/www/www.example.com/htpass/"
  <Directory "/srv/www/www.example.com/htpass">
    Options +ExecCGI -Includes
    Order allow,deny
    Allow from all
  </Directory>

  # this is the protected area of the site.
  # Any access here must be by authenticated users only
  <Directory "/srv/www/www.example.com/htdocs/secure/">
    AuthType Basic
    AuthName "Secure Files"
    AuthUserFile /srv/www/www.example.com/htpass/.htpasswd
    AuthGroupFile /srv/www/www.example.com/htpass/.htgroup
    Require valid-user
    Order allow,deny
    Allow from all
  </Directory>

Any advice appreciated.

Thank you.

Regards,
Rich
on 01.08.2006 22:03
Posted by Rich Duzenbury (Guest)
on 01.08.2006 22:21
Vyacheslav Chernousov wrote:
> http://www.lighttpd.net/documentation/configuration.html
> http://www.lighttpd.net/documentation/authentication.html
> http://www.lighttpd.net/documentation/cgi.html

I suppose I deserved that, though I've been flipping around those files 
for much of the day.  I've got the basic auth thing working, that was 
fairly simple.

I do not see how to set up lighty to deal with a script alias:

# the userlist for the protected area of the site
ScriptAlias /htpass/ "/srv/www/www.example.com/htpass/"
<Directory "/srv/www/www.example.com/htpass">
  Options +ExecCGI -Includes
  Order allow,deny
  Allow from all
</Directory>

So, the user hits http://www.example.com/htpass/test.cgi, and expects a 
cgi to run.

Note that htpass is not inside the document root.

How do I translate the apache directives to lighty speak?

Thank you.

Regards,
Rich
Posted by john Plumridge (Guest)
on 23.01.2008 03:20
Rich Duzenbury wrote:
> Vyacheslav Chernousov wrote:

> I do not see how to set up lighty to deal with a script alias:
> 
> # the userlist for the protected area of the site
> ScriptAlias /htpass/ "/srv/www/www.example.com/htpass/"
> <Directory "/srv/www/www.example.com/htpass">
>   Options +ExecCGI -Includes
>   Order allow,deny
>   Allow from all
> </Directory>
> 
> So, the user hits http://www.example.com/htpass/test.cgi, and expects a 
> cgi to run.
> 
> Note that htpass is not inside the document root.
> 
Did you find teh soloution for an ExecCGI option?