Questions tagged [lighttpd]
Lighttpd ("lighty") is a fast open source web server, optimised for speed critical environments
596
questions
0
votes
2
answers
290
views
How to increase simultaneous requests for LIGHTTPD
I have Red Hat 6 and I've installed Lighttpd + MySQL and at the moment in getting 500 internal server error, logs shows that I have arround 2000 requests / sec, while as soon as requests drop below ...
1
vote
3
answers
1k
views
Security implications of adding www-data to /etc/sudoers to run php-cgi as a different user
What I really want to do is allow the 'www-data' user to have the ability to launch php-cgi as another user. I just want to make sure that I fully understand the security implications.
The server ...
1
vote
0
answers
433
views
Lighttpd with FastCGI configuration running ViewVC - rewrite problems
At the moment I am struggling with the configuration of lighttpd together with ViewVC. The configuration was ported from Apache 2.2.x, which is still running on the machine, serving the WebDAV/SVN ...
2
votes
1
answer
667
views
Lighttpd domain redirection
I would like to redirect domains on HTTP/HTTPS:
http://old.com -> https://new.com
https://old.com -> https://new.com
I have to specify the SSL key/certificate for the old domain but I'm not ...
0
votes
1
answer
148
views
Rule of thumb in RAM estimate for static pages? [duplicate]
Possible Duplicate:
How do you do Load Testing and Capacity Planning for Web Sites
I've seen tutorials saying they can run decent websites on 64MB RAM (Debian/Lighttpd/PHP/MySQL) however it's not ...
-1
votes
1
answer
447
views
Lighttpd rewite url from specific client when using proxy
I need to send all CGI request to another server so I decided to use it with proxy. The problem is that I need to send the client IP to the server so I did the following configuration:
$HTTP["url"] =...
0
votes
2
answers
1k
views
lighttpd redirect certain links to certain urls
Could someone tell me how / why is this redirect not working?
$HTTP["host"] =~ ".*\\.mydomain\\.com" {
url.redirect = (
"/index\.php\?pg=mysql" => "http://mydomain.com/lean-...
2
votes
2
answers
3k
views
Lighttpd and PHP generates error "No input file specified" after server.document-root is moved
I would like to use Lighttpd and PHP to provide a lightweight standalone web server on Windows. I downloaded all the latest builds yesterday and after an hour everything was working fine.
Today, I ...
1
vote
1
answer
707
views
Limit video streaming with lighttpd & Mod_h264 for x minutes
I'm running video streaming with lighttpd & mod_h264 on CentOS.
Now, I want to set to client can only watch the movie for the first x minutes. Example: 10 minutes.
Who can give me a solution for ...
-1
votes
1
answer
368
views
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 ...
0
votes
1
answer
122
views
lighttpd+apache
So lately I heard about people running apache and nginx together, nginx for static content and apache for dynamic. Can the same be done with lighttpd and apache?
1
vote
0
answers
836
views
Mumble Django via Nginx - config file infinitely loops in rewrite
I am having a bit of problem of configuring Nginx in place of Apache, so that it served Mumble Django to clients. I have vhosts configs for both Apache and Lighttpd - let me put them here side by side,...
4
votes
1
answer
1k
views
Lighttpd, Python, MySQLdb Python Module and Permissions
After restarting a lighttpd server recently I haven't been able to get it up and running again. I am running a python built API service on it, and am relying on the web.py module to run the ...
2
votes
2
answers
2k
views
Installing lighttpd on CentOS 6.3 yum 404 errors
I have a CentOS 6.3 x86_64 server and I am trying to install lighttpd. I have installed the EPEL repo on the server using the following:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-...
2
votes
4
answers
7k
views
Why does a valid set of iptables rules slow my server to a crawl?
So I implemented some a different set of iptables rules and now if i enable them, then lighttpd simply takes forever to load php enabled pages(like wp). There is no load on the server, processor usage ...
2
votes
1
answer
602
views
Lighttpd send Nagios command-line output instead of web interface
I recently installed Nagios on an EC2 instance running AmazonLinux (which is basically SuSe, to my understanding). I'm using lighttpd and mod_cgi to serve the web interface.
When I navigate to a page,...
2
votes
2
answers
317
views
SVN and 'lite' web servers
I plan to setup and configure SVN server. Think about 'lite' web servers, such as nginx or lighttpd. AFAIK nginx has only limited support for the DAV and does not have SVN module itself. Is it correct ...
2
votes
0
answers
700
views
Serving videos (mod_h264_streaming) using lighttpd with a fastcgi authorizor causing problems
So my goal is to serve streaming video, but only after authentication. Since authentication could use one of many methods, I'm writing a fastcgi authorizer to handle them. Each part (streaming, ...
-1
votes
1
answer
182
views
Replacing Apache2.2 with lighttpd 1.4 to speedup. Fine tuning?
I am trying to reduce memory usage and increase speed.
I am serving a small webservice that receives a max of 800 hits/sec and an average of 400 hits/sec.
The server is a 2 xeon dual core 3.0GHz with ...
0
votes
1
answer
787
views
Making lighttpd redirect from www.example.com to www.example.com/cgi-bin/index.pl
What the title says..
www.example.com is defined in lighttpd.conf as a virtual host:
$HTTP["host"] =~ "(^|\.)example.com$" {
server.document-root = "/usr/www/example.com/http"
...
2
votes
0
answers
892
views
Lighttpd mod_accesslog not logging fastcgi requests
I have recently installed a lighttpd for serving a python script via mod_fastcgi. Everything works fine except that I don't get the requests handled by mod_fastcgi logged in the access.log file (...
2
votes
1
answer
423
views
Lighttpd Mod-Rewrite Rule Matching All Subdomains
I am using lighttpd web server and mod_write and have a simple host match expression:
$HTTP["host"] =~ "domain\.com$" {
}
The problem is this is matching test.domain.com as well. How do I modify the ...
1
vote
1
answer
1k
views
Exclude directory from rewrite with mod_rewrite and lighttpd
Im migrating an apache2 server to Lighttpd, however im having some issues with Mod_Rewrite.
I have a directory /api/, which I need to exclude from the rewriting rules as follows:
url.rewrite-once = (...
0
votes
3
answers
1k
views
Can't access a local site site on LAN
I have lighttpd setup on a machine (say ip is 10.107.105.13) with following details.
inet addr : 10.107.105.13
Bcast : 10.107.111.255
Mask : 255.255.240.0
I can access my site on this computer by ...
0
votes
1
answer
791
views
Confused! php-cgi opened (and didn't close) a UDP "connection" ...but isn't UDP connectionless?
This question is more for my own education than to solve any problem.
I am running a VPS at linode w/ lighttpd and PHP 5.3.13 via fast-cgi.
When I list internet connections, I get this strange ...
1
vote
0
answers
143
views
Serving Compressed Files Amazon vs Lightty
We are currently using amazon CloudFront to serve css and according to Amazon itself, Amazon CloudFront can serve both compressed and uncompressed files from an origin server. But while i check ...
0
votes
2
answers
261
views
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 ...
1
vote
1
answer
6k
views
lighttpd domains and url matching
I'm trying to configure lighttpd so that:
www.domain1.org/admin uses config1
any other URL on www.domain1.org uses config2
any url on www.domain2.org uses config2
So basically, domain1 and domain2 ...
3
votes
1
answer
4k
views
How do I set up lighttpd for x.509 client certificate authentication
So far I've had HTTPS working for a long time, so I don't think there are any trouble with the server certificates. Now I tried to add this to lighttpd.conf:
ssl.engine = "enable"
...
2
votes
1
answer
2k
views
file_get_contents url wrappers work on cli but not cgi
I have a big problem. I have just upgraded to a new dedicated server running Plesk 10, and Ubuntu 11.04 and my scripts can't run file_get_contents or curl to external urls in cgi mode. ...
1
vote
2
answers
1k
views
lighttpd fastcgi unix bind error
I am trying to configure Lighttpd to run Redmine using FastCGI. I have added the following code to my standard lighttpd.conf:
$HTTP["host"] =~ "^foo.bar.com$" {
server.document-root = "/usr/share/...
1
vote
2
answers
6k
views
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 ...
2
votes
1
answer
551
views
lighttpd on Fedora permission issues
I'm trying to get started with lighttpd on Fedora 16 to run a RESTful api for development. Right now even with the most basic sample config file I'm getting 404 pages when I know the pages I'm ...
0
votes
1
answer
125
views
lighttpd CPU utilization fails to decrease when load reduced
I have a lighttpd server which easily handles about 800 concurrent connections. But there seems to be a problem:
When the number of users grows, the CPU utilization grows as well, until a limit is ...
0
votes
1
answer
147
views
Should I switch from lightty to nginx? [closed]
I've been using lightty/lighttpd for about two years, and have had no problems. I occasionally have to restart lighttpd to regain some memory but other then that I love the config files and how ...
0
votes
1
answer
4k
views
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",
# "...
1
vote
2
answers
262
views
Lighttpd based server issues crop up when port forwarding
I have four host computers running lighttpd webservers. they are sitting behind a hspa modem, which each occupying a http port between [81 - 84]. 80 is taken by the modem itself.
The port forwarding ...
0
votes
1
answer
359
views
Ruby Passeger + Nginx or lighthttpi + fgci for shared hosting
I have set up a passenger + nginx setup and I plan to offer a free non-commercial hosting (or in fact on the fly deployment) for rack-based frameworks (e.g. camping, sinatra).
I am facing an "issue" ...
0
votes
1
answer
354
views
HAProxy and 2 webservers
I have a website that is split into two different servers:
chat server in node.js
normal website (lighttpd + php + whatever)
now, I have set HAProxy in the same machine as node.js chat, so that when ...
0
votes
1
answer
1k
views
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/...
1
vote
1
answer
2k
views
Virtual hosting in lighttpd?
Ok, here it goes... I've seen some other posts dealing with this, but it didn't help that much. I am using Windows XP. My problem is with trying to get lighttpd working with virtual hosts. Now, I ...
1
vote
1
answer
312
views
Nginx equivalent to lighttpd "evhost.path-pattern"
I'm setting up a new server for my personal stuff. On the old box I've used lighttpd for almost two years now. I've read a bit about it and most people tend to switch to nginx since it's development ...
1
vote
1
answer
4k
views
lighttpd + Webmin in a subfolder [closed]
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 ...
0
votes
1
answer
1k
views
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 ...
3
votes
1
answer
7k
views
Run a node.js app with lighttpd
I'm currently hosting some websites on my server, and I use Lighttpd for this.
Now I'm currently developing a web application using Node.js and I'd like to be able to create vhosts which would point ...
1
vote
2
answers
6k
views
PHP Warning: PHP Startup: Unable to load dynamic library
I have tried to run my script via cron, but it was not working...
*/1 * * * * /usr/local/bin/php -f /usr/local/www/maintain.php > /usr/local/www/php.log
So I decided to try to run this script ...
5
votes
1
answer
4k
views
lighttpd - use different document-root for diff url
To me this seem logical, but it doesn't seem to work.
$HTTP["host"] =~ "(^|\.)hd.domain\.com$" {
server.document-root = "/domain_site/"
$HTTP["url"] =~ "^/aa/" {
server.document-root = ...
1
vote
1
answer
652
views
Lighttpd - rewrite request when 404 error
I have question if it is possible do run mod_rewrite rule when 404 error occurs. Example:
Request: http://domain.com/files/img/file.jpg
If there is no /files/file.jpg, then Lightttpd should rewrite ...
2
votes
1
answer
474
views
lighttpd adding vhost error
I'm trying to have multiple domains.
Followed the instructions from web and added the lines in lighttpd.conf file:
$HTTP["host"] =~ “(^|.)example.com$” {
server.document-root = “/var/www/example....
2
votes
2
answers
7k
views
How to effectively have less php-cgi processes running?
My server is a Linode 512, and on it I run a Wordpress MU with 3 websites (they don't get a lot of visitors) and a couple of NodeJS apps.
I need to switch to Lighttpd because Apache 2 was using about ...