All Questions
12
questions
1
vote
1
answer
753
views
What’s the meaning of “(?i)” in Lighttpd rewrite rule?
This article : https://www.cyberciti.biz/tips/lighttpd-mod_rewrite-redirect-hotlink-image.html mentions :
$HTTP["referer"] =~ ".*BADDOMAIN\.com.*|.*IMAGESUCKERDOMAIN\.com.*|.*blogspot\.com.*" {
...
0
votes
1
answer
2k
views
Is possible to use Lighttpd $HTTP["url"] conditional to enable ssl.verifyclient.* option dynamically?
I should enable ssl.verifyclient.* option for a single endpoint of the website, to proceed with certificate login or validation.
But it is not working.
The configuration:
$HTTP["host"] =~ "^(.*\.|)...
0
votes
1
answer
1k
views
Implement apache equivalent mod_rewrite functionality in lighttpd
Here's the mod_rewrite .htaccess file which is meant to work on Apache Servers for my web-app
RewriteEngine On
RewriteBase /cs200/tokens/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{...
0
votes
1
answer
2k
views
Redirect all subdomains to main domain with lighttpd and regex
Is it possible to redirect all *.domain.com to my domain.com?
I have been messing around with the Regex but without any luck:
$HTTP["host"] =~ ".*\.domain\.com" {
url.redirect = ("^/(.*)"...
1
vote
0
answers
167
views
How to convert RewriteCond rules so they work in Lighttpd?
How can I convert this Apache rewrite rules so they work on Lighttpd? This is in fact a .htaccess file, and I need to put those in a lighttpd.conf file.
Options +FollowSymLinks
RewriteEngine on
...
0
votes
1
answer
823
views
Lighttpd, regex in conf, path including regex match
The background :
- Lighttpd 1.4.28
- Debian 6.0.7 i686
Several developers are using this web server, and each of them has his own virtual host named after "username.mysite.tld". These hosts are ...
0
votes
1
answer
314
views
lighttpd Regex for automatic forwarding of subdomains
I have been looking round and I have not found a good way to automatically set the document root for domains automatically.
For example:
In the DNS, *.mydomain.com points to mydomain.com
And in the ...
0
votes
2
answers
464
views
Lighttpd vhost regex
I'm having a problem with my vhosts using regex. When I use the following code, I get a 404 not found:
$HTTP["host"] =~ "(^|\.)example\.com$" {
...
}
However, when I explicitly set it to the ...
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-...
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
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 ...
0
votes
1
answer
421
views
Multiple protected locations with Nginx
I am trying to secure couple of locations using the basic HTTP authentication that comes with Nginx, but for some reason it won't work.
I have:
website.com/admin (This is accesible by user ADMIN)
...