Hi all,
I have compiled fastcgi c-api examples: http://www.fastcgi.com/devkit/examples/
They work fine when I execute them manually in the command line (by typing ./echo for example) but I have some troubles when I try to make it work with lighttpd.
"/echo.fcgi" => (
"localhost" => (
"socket" ...
Clean URLs seem pretty simple but I'm in need of a special situation. I would like to be able to include the .html suffix or nothing at all but not any other extension:
someurl = pass
someurl/somepage = pass
someurl.html = pass
someurl/somepage.html = pass
someurl.css = fail
someurl.exe = fail
someurl.anyotherextension = fail
someurl/...
I just set up fastcgi with lighty for django, but I'm getting the fcgi file path when it processes the url, e.g. 404 error at http://myserver.myhost.com/myproject.fcgi. It needs to route to / instead of /myproject.fcgi.
Lighty conf:
$HTTP["host"] =~ "myproject\.myhost\.com" {
fastcgi.server = (
".fcgi" => (
...
Hi.
I've been working on a python web app using cherrypy and read it'd be more "robust" to use it as a backend, so I gave it a try.
Shortly put, running some benchmarks on a page doing some database operations and serving static & dynamic content has shown that plain cherrypy was twice as fast than nginx and memcached, and about half f...
I have read in a site that another benefit of having Lighttpd in front of Apache is lower number of child processes. Lighttpd will handle keep-alive and client requests while child processes of Apache gets to serve dynamic pages faster because of the very low latency communication between Lighttpd and Apache. I am trying to find the link...
Hello,
I am trying to build library application. Converting the PDF documents to PNG images. (each page is one PNG file)
So there will be several millions of PNG's going to be there in the server.
Number of hits per second will be more than 500 and i have to serve the png's.
1) I am choosing MemcacheDB to maintain the PNG's
2) I am cho...
Hi,
I am not very familiar with Regular expression, but I am asked to modify a lighttpd rewrite rule.
url.rewrite = (
"^/(.+)/?$" => "/index.php/$1"
)
I want to exclude a path from the above greedy pattern, so that it won't fall back to index.php.
In words, it is simple: Match anything other than "statistics". But I just couldn'...
I only need to do this for one file (uptime.php) and it must be requested by using uptime.png.
Adding a rule for all png files in my config file would be suicide.. :P
...
I read in lighttpd 1.4.19 source codes, now I got stuck at the function fcgi_spawn_connection,
if (-1 == connect(fcgi_fd, fcgi_addr, servlen)) {
...
bind(fcgi_fd, fcgi_addr, servlen)
...
listen(fcgi_fd, 1024)
}
The question is, why does mod_fastcgi create a listening socket, what's it use for? Isn't that mod_fastcgi works as clie...
Hello!
We are in the middle of designing a web server application which runs on an existing Linux system. We are using the lighttpd server, and have now ran into some security issues.
For various reasons we have chosen Lua to develop our application.
Since we have existing users that logs in to the machine using ssh, we would like the us...
I have some troubles configuring w3c validator at my local server.
I'm using fedora 9 and apache httpd.
I have installed witjh yum the package, w3c-markup-validator.
This is my apache configuration:
NameVirtualHost 127.0.0.2:80
<VirtualHost 127.0.0.2:80>
ServerName validator.example.org
DocumentRoot "/usr/share/w3c-markup-va...
My main aim is to serve large number of XML files ( > 1bn each <1kb) via web server. Files can be considered as staic as those will be modified by external code, in relatively very low frequency (about 50k updates per day). Files will be requested in high frequency (>30 req/sec).
Current suggestion from my team is to create a dedicated ...
Hi,
I am trying to send files by using X-Sendfile directive in lighttpd.
My php code is;
header("Content-Type: application/force-download");
header( "Content-Disposition: attachment; filename=" . 's.php');
header("Content-Length: ". filesize("/home/web/domain/htdocs/download.php"));
header( "X-Sendfile: /home/web/domain/htdocs/downloa...
Is there any up to date guide on running lighttpd as a Windows service? By googling I've found this forum post from 4 years ago, I just want to be sure there isn't anything more up-to-date or any gotchas I should be aware of, before I spend too much time yak shaving
...
RewriteEngine on
RewriteRule ^packed\.js$ pack.php?debug=0 [nc]
RewriteRule ^debug$ pack.php?debug=1 [nc]
That worked fine on apache in a .htaccess file placed in a specific directory. If I want to do this on lighttpd, do I have to add it in the config file or something?
Would I need to make any changes to these rules?
...
I have a web service using lighttpd and fastCGI (using TCP) where lighttpd causes a processor bottleneck. How can I optimize the performance of lighttpd and fastCGI?
Best Regards
...
I'm trying to get my Django based webapp into a working deployment configuration, and after spending a bunch of time trying to get it working under lighttpd / fastcgi, can't get past this problem. When a client logs in for the first time, they receive a large data dump from the server, which is broken into several ~1MB size chunks that ...
I'm trying to run lighttpd on ubuntu in parallel with Apache, but it won't startup on the ip address and server that I have specified. I have the following configuration:
server.document-root = "/var/www"
server.port = 8000
server.bind = "#.#.#.#"
where the #'s are replace by the IP address of my server.
However,...
Although I'm aware that lighttpd can be used with Static and External FastCGI implementations, can it be used with dynamic implementations?
Is it possible to upload a .fcgi file (assuming the file is a proper fastcgi) to a directory point your browser to its URL? Apache does this, but I'm exploring other web servers. From what I can tel...
I would like to redirect specific domains from http to the corresponding https address in lighttpd. I tried out the tutorial on the lighttpd page but there it is not written for a specific domain. This is what I want:
$HTTP["host"] =~ "secure.example.com" {
server.document-root = "/var/www/secure.example.com"
// IF NOT SSL, RE...