Hello, I am using djano-cms for my site, but instead of language alias /en/ /de/ I need to use another domain. I would like to avoid running multiple django instances, and instead I would like to use lighttpd redirects if possible.
I would like requests coming to domain2.com getting data from domain.com/en . The best would be if the user...
I have a Lighttpd server plus mod_fastcgi. And today I had Internal Server Error 500. I've checked my error log and it goes like this:
2010-04-22 22:59:14: (server.c.1464) server stopped by UID = 0 PID = 3332
2010-04-22 22:59:15: (mod_fastcgi.c.1768) connect failed: No such file or directory on unix:/tmp/php.socket-5
2010-04-22 22:59:1...
Hi
I was wondering if it was possible in the configuration of Lighttpd to read request headers, I've searched and searched.. apparently it's not possible.
For example, conditional configuration based upon IP address:
$HTTP["remoteip"] == "0.0.0.0" {
// Do something
}
Is there something similar to check headers, for example:
$H...
Hi all, I've been given a lighttpd.conf that someone else wrote and need help working out how to serve it. I'm 90% of the way there but stuck... The index.html page appears, but links and CSS files don't point to the right place.
To clarify, the links and CSS files are all pointing to a 'file:///' URL. So styles.css in the HTML header ...
Hello,
Just switched from apache and having some rewrite issues.
Simple task: rewrite "http://www.foo.com/BAR/" to "http://www.foo.com/BAR/index.php"
I've tried the following (and variations) but it doesn't parse.
url.rewrite = (
"/BAR/" => "/BAR/index.php"
)
I suck in regexps btw.
...
Hi!
I want to run a simple application using Rack, FastCGI and Lighttpd, but I cannot get it working.
I get the following error:
/usr/lib/ruby/1.8/rack/handler/fastcgi.rb:23:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:23:in `new'
from /usr/lib/ruby/1.8/rack/handl...
Hi I'm trying to do this:
$HTTP["url"] =~ "/([^/?]+)$" {
setenv.add-response-header = (
"Content-Disposition" => "attachment; filename=$1"
)
}
but it did not replace $1 with what stored in the regex but just $1 characters.
I'm wondering if something like this is possible in lighttpd.
It seems like the search/replace wi...
Primary goal is to learn from a popular web server codebase (implemented in C) with priority given to structure/design instead of neat tricks throughout the code.
I didn't include Apache since its code base is an order of magnitude larger than the two mentioned.
...
hi, please help me to convert this lighttpd rewrite expression to nginx
"^/static/(.*)" => "/static/$1",
"^/super/(.*\.html)(?:\?(.*))?" => "/yatasha_super.cgi?$2",
"^/(.*\.html)(?:\?(.*))?" => "/yatasha.cgi?$2"
i try to do like this
rewrite ^/static/(.*) /static/$1
rewrite ^/super/(.*\.html)(?:\?(.*))? /yatasha_super.cgi?$2
rewrite ...
I installed lighttpd, php5 +fastcgi, and php5-curl earlier this morning using MacPorts. I have been able to get the former two working fine, but I can't seem to get PHP to see the installed cURL extension. I did not change the install path for cURL - it is now at /opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so.
I've adde...
I installed lighttpd and dependecies, commented out in lighttpd.conf the necessary extra module mod_webdav, and tried to start it. but i get this error:
[root@WL-0022150E7BD4 root]$ /opt/etc/init.d/S80lighttpd start
Starting web server: lighttpd
2010-06-26 10:46:01: (plugin.c.162) dlopen() failed for: /opt/lib/lighttpd/mod_webdav.so F...
(Yes, I know that questions pertaining to lighttpd fit better on SF, but I thought it was more apt to be asked here since it's primarily concerned with security policy.)
We're planning to set up a small web server in my college, so that people could get some web space to put up web pages and the like. They could also upload PHP pages. T...
Hello,
I have a joomla setup in my /home/joomla directory.
I installed both Apache and Lighttpd
i have configured Lighttpd to proxy only static files, and lighttpd is listening on port 81.
Now what i want is
whenever request for static files are made, instead of going to
www.domain.com/whatever/bg.jpg
it should redirect to
d...
I have a REST API written in PHP located on Apache server. It takes as a parameter a file (15KB). When I call this API from J2ME application it does work fine. Moreover when I wrote a API client in C# it worked too fine.
But now I have this second server with Lighttpd. I copied my API to this server and called it from C# app and it wor...
I have two websites: one with Lighttpd with PHP and second with Apache and neither of this handle chunked transfer encoding properly.
I send this request from my mobile, J2ME and there is no possibility to change this transfer type to any other.
So my only way to go is to handle chunked transfer enconcoded requests in other way. Any so...
Hi, I have the following PHP code for writing to a filepointer $fp that was opened using fsockopen:
syslog(LOG_INFO, "Write " . strlen($buf) . " bytes to socket:");
$bytes = 0;
while ($bytes < strlen($buf) && ($w = @fwrite($fp, substr($buf, $bytes))))
{
syslog(LOG_INFO, " - " . $w . " bytes written to socket");
$bytes += $w;
}...
I have a MySQL table with a list of domains added by a PHP script. It is literally just a simple list of domains, and all the domains will point to the exact same location.
How can I get lighttpd to load these domains? It would be good if there was some built in functionality to automatically check the table for new additions, or just c...
I want to redirect all subdomain paths on domainxyz.com to www.domainxyz.com except for cdn.domainxyz.com and ad.domainxyz.com.
To clarify: I want for example abc.domainxyz.com/cat.php?id=23 redirect to www.domainxyz.com/cat.php?id=23.
How do I do this in lighttpd?
...
I have a python cgi script (just python, I didn't use any framework). It's served using Lighttpd on openSUSE. I would like to redirect my logging statements (like logging.info and so on) to be included to Lighttpd log file. If this can't be done, how can I create my own log file?
...
My site lets people add their own vhost entries that all point to the same directory, but are handled differently by a PHP script. The domains are stored in a MySQL table and are loaded when lighttpd starts, by automatically running a python script referenced in the lighttpd config file.
But obviously when someone adds a new vhost, it o...