Browsing articles tagged with "lighttpd - Admins Goodies"
Jan 9, 2013
tom

Multiple SSL based IPs on lighttpd

I have lighttpd as web server and on it I have installed IP-based SSL certificates. I want to have a way to have multiple SSL certificates on each new IP that the server may get. For example, at the moment I have https://127.0.0.1 and it works, but it certificate on which the CN = 127.0.0.1, so if the webserver gets a new IP from the DHCP server, say 192.168.1.x, the server will cause SSL mismatches. [...]

Continue Reading »
Nov 12, 2012
tom

Blocking HEAD, DELETE, etc. with lighttpd

So I have lighttpd installed and the site it runs only needs to respond to GET requests. I was wondering how I can return 405 responses with Allow: GET headers to anything but GET requests using lighttpd? I’ve had a quick google but even the lighttpd doesn’t turn up anything solid. Asked by Sam Since version 1.4.19, you can filter on request-method: $HTTP["request-method"] =~ “^(PUT|POST|HEAD|PATCH|DELETE)$” { url.access-deny = (“”) } Answered by j0k Check more [...]

Continue Reading »
Aug 25, 2012
tom

lighttpd+apache

So lately I heard about people running apache&nginx together, nginx for static content and apache for dynamic, so basically my question is, can the same be dome with lighttpd&apache? Are there any guides out there for this? Asked by teeiger Absolutely. lighttpd can act as a proxy to a different web server for content that it doesn’t handle locally. A simple configuration would look like this – say you want lighttpd to send every request [...]

Continue Reading »
Aug 25, 2012
tom

Ubuntu: apt-get -f install lighttpd does not install

I’m trying to install lighttpd. When running sudo apt-get -f install , I’m getting this error : ~/dev/downlaod$ sudo apt-get -f install lighttpd Reading package lists… Done Building dependency tree Reading state information… Done You might want to run `apt-get -f install’ to correct these: The following packages have unmet dependencies: codeblocks-contrib: Depends: libwxsmithlib0 (= 10.05-1) but 10.05svn8059-0ubuntu1~lucid is to be installed Depends: codeblocks-contrib-common (= 10.05-1) but 10.05svn8059-0ubuntu1~lucid is to be installed Depends: codeblocks (= [...]

Continue Reading »
Jun 1, 2012
tom

load balanced server farm in php with sql

What is the best configuration for a load balanced server farm for a high demand download web page that uses php and mysql. I have servers that currently use centos with lightppd. Has anyone got experience of what software is the best etc, or a good guide. Asked by user1074541 I use apache for my web server and it works fine. You have to install another package or service to acquire load balancing. I experience [...]

Continue Reading »
May 14, 2012
tom

Samba permissions for copied files

I have Samba running on a plug computer running Debian Squeeze which I’m trying to configure to act as a web-based file server. The machine runs Lighttpd for the web server, and Samba for the file sharing. The user is able to use Samba to copy files from their local machine onto the plug computer using Samba, and then view them through the web browser (script I wrote). Lighttpd runs as www-data, Samba runs as [...]

Continue Reading »
May 1, 2012
tom

Lighttpd can not start when including mod_rewrite

Here is my server modules list (modules.conf), its working without any problems, and lighttpd is running correctly while using this list: server.modules = ( “mod_access”, # “mod_alias”, # “mod_auth”, # “mod_evasive”, # “mod_redirect”, # “mod_rewrite”, # “mod_setenv”, # “mod_usertrack”, ) The problem appears, when I want to uncomment the mod_rewrite module: server.modules = ( “mod_access”, # “mod_alias”, # “mod_auth”, # “mod_evasive”, # “mod_redirect”, “mod_rewrite”, # “mod_setenv”, # “mod_usertrack”, ) Then I’m getting the following message, [...]

Continue Reading »
Apr 2, 2012
tom

Lighttpd $HTTP[“host”] regex matching

I’ve set up my config like this: $HTTP["host"] =~ “(^|\.)domain1\.com$” { fastcgi.server = ( “/domain1.py” => (( “socket” => “/tmp/fastcgi.socket”, “bin-path” => “/home/domain1/serveV03.py”, “max-procs” => 1, “bin-environment” => ( “REAL_SCRIPT_NAME” => “” ), “check-local” => “disable” )) ) server.document-root = “/home/domain1″ url.rewrite-once = ( “^/favicon.ico$” => “/static/favicon.ico”, “^/static/(.*)$” => “/static/$1″, “^/(.*)$” => “/domain1.py/$1″ ) }$HTTP["host"] =~ “(^|\.)domain2\.com$” { fastcgi.server = ( “/domain2.py” => (( “socket” => “/tmp/fastcgi.socket”, “bin-path” => “/home/domain2/serveV01.py”, “max-procs” => 1, “bin-environment” => [...]

Continue Reading »
Mar 4, 2012
tom

lighttpd + Webmin in a subfolder

I am using Webmin for my home server administration. Instead of running it on the default port (https://myhost:10000), I wanted to host it inside a sub-folder (https://myhost/webmin/). This is running perfectly fine when using Apache (Apache configuration files are attached below). However, I am normally using lighttpd, and I wanted to do the same thing (running Webmin in a sub-folder) with lighttpd. However, it is not working properly. Whenever I go to https://myhost/webmin/, I get [...]

Continue Reading »
Feb 25, 2012
tom

lighttpd: redirect traffic from http to https on *.domain.tdl

I am using Lighttpd with a snipped i’ve found on the net. How to redirect all subdomains of a given domain to https without touching other domains or subdomains of domains? Currently i am doing this on the needed subdomains: $SERVER["socket"] == “:80″ { $HTTP["host"] =~ “^sub\.(.*)” { url.redirect = ( “^/(.*)” => “https://sub.%1/$1″ ) } } I would love to have it the over way around. Is it possible? Can anyone tell me how? [...]

Continue Reading »
Pages:1234567...16»