All Questions

Tagged with
Filter by
Sorted by
Tagged with
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.*" { ...
Httqm's user avatar
  • 225
0 votes
0 answers
198 views

how to use rewrite files with lighttpd

I have just installed a new personal Gentoo server (on a VPS at vpsfree.cz by the way) and wanted to try something more lightweight than Apache that I used on my previous Debian based server. I used ...
Pavel Šimerda's user avatar
0 votes
2 answers
409 views

Lighttpd rewrite with dot (.) in URL

I've an installation of lighttpd under Debian running a small API. The current rewrite rules are: url.rewrite = ( "^/(.*)\.(.+)$" => "$0", "^/(.*)$" => "/index.php/$1" ) The ideia is ...
TCB13's user avatar
  • 1,216
0 votes
1 answer
134 views

lighttpd rewrite in magento

I'm currently using below code in lighttpd.conf to redirect http to https. $HTTP["scheme"] == "http" { $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") } } However, ...
Andreas's user avatar
  • 161
2 votes
0 answers
204 views

Converting lighttpd rewrite rules to apache

I'm in the process of converting an application from Unix to a Windows based infrastructure, one of the changes being made is utilizing apache instead of lighttpd for the web server. Most of this ...
rage8885's user avatar
  • 403
0 votes
1 answer
228 views

Lighttpd: How to migrate a rewrite rule?

i'm using this htaccess rule on a apache: RewriteEngine on RewriteCond %{HTTP_REFERER} example\.com [NC] RewriteRule .* - [F] .. and i would convert it to an lighttpd rewrite rule. How can i do this?...
hazelnut's user avatar
1 vote
2 answers
216 views

Rewriting a download URL, but "save -as" dialog shows original URL

I have the following mod_rewrite directive in my lighttpd config file: url.rewrite-once = ( "foo.*$" => "static/foo.pdf", ) I'd like to hand out URLs like this: http://<server>/foo/r=...
Sebastian's user avatar
  • 189
0 votes
1 answer
2k views

Lighttpd splitting request URI and dropping query parameter

I'm running lighttpd 1.4.33, which is reverse proxied to from an Apache server that is open to the Internet. When accessing a script from the local address of the lighttpd server, GET parameters are ...
Libbux's user avatar
  • 295
2 votes
1 answer
1k views

Rewrite Location response header in lighttpd

I have an instance of lighttpd 1.4.35 listening for https traffic and reverse-proxying it to a back-end server. I.e., .----------. .----------. client ---https--> | ...
indiv's user avatar
  • 265
0 votes
1 answer
700 views

Lighttpd rewrite rule for Flight PHP microframework

I'm using the Flight PHP microframework, and it includes its' own router, and needs the server to rewrite requests to the index.php file. It features rewrite-rules for both Apache and Nginx but ...
Henrik's user avatar
  • 103
1 vote
1 answer
751 views

Rewrite rules for Anchor CMS on Lighttpd

I installed Anchor CMS on my server running Lighttpd, and I am trying to setup pretty url's. I have anchor installed in a sub-directory "/blog". The htaccess file that works with anchor cms in ...
meskarune's user avatar
  • 131
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 ...
user3126896's user avatar
1 vote
0 answers
348 views

Lighttpd and OpenCart GET requests with mod_rewrite

Our OpenCart is running on Lighttpd and we use mod_rewrite for SEO. Whenever we have our rewrite rules on, GET requests such as http://www.site.com/dev/?gclid=XXX do not work. Here are my current ...
Nik's user avatar
  • 31
0 votes
1 answer
796 views

lighttpd: weird behavior on multiple rewrite rule matches

I have a 20-rewrite.conf for my php application looking like this: $HTTP["host"] =~ "www.mydomain.com" { url.rewrite-once += ( "^/(img|css)/.*" => "$0", ".*" => "/my_app.php"...
netmikey's user avatar
  • 233
1 vote
0 answers
341 views

Lighttpd single subdomain Redirect/rewrite

This was originally asked on stackoverflow, but looking around here, I get a comfy feeling someone will know the answer. I am using lighttpd and would like to have the url path for one page show as ...
Josh's user avatar
  • 11
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 ...
0xC0000022L's user avatar
  • 1,516
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,...
Gelmir's user avatar
  • 111
1 vote
0 answers
2k views

lighttpd reverse proxy rewrite

I am trying to configure lighttpd (v1.5) as a reverse proxy. Gollum is running on port 8080 and I've setup lighttpd.conf as per the following: $HTTP["url"] =~ "^/wiki.*" { proxy-core.protocol = "...
tlvince's user avatar
  • 111
0 votes
1 answer
148 views

Lighttpd equivalent of Apache Files directive?

I'm trying to convert some rules and settings from Apache to lighttpd but i'm stuck with this Files rule: <Directory /var/www/html/attachments> <Files ~ "\.(php\d*|cgi|pl|phtml)$"> ...
Cristian Aviles's user avatar
2 votes
1 answer
11k views

Lighttpd: redirect any request to index.html

I'm trying to send any request to the index.html with lighttpd in order to prevent 404 but I'm not smart enough because either the redirect matches itself or, for calls to subdirs, although the index....
None's user avatar
  • 121
1 vote
1 answer
394 views

Lighttpd Rewrite

I have an issue with Lighttpd Rewrite and static files. Here is my rewrite syntax: url.rewrite = ( "^/(.*)\.(php|css|js|jpg|png)$" => "$0", "^/(.+)$" => "/router.php?url=$1" ) All ....
Lark's user avatar
  • 111
0 votes
1 answer
637 views

Lighttpd Rewrites & Blank page

I have configured some lighttpd rewrites, of which one does not work. This is the line that does not work as it should and causes a white (blank) page to be thrown: url.rewrite-once = ( ... "^/...
Stathis's user avatar
0 votes
3 answers
278 views

Lightttpd Rewrite

How can I rewrite www.domain.de/news/news_944836.html to www.domain.de/news_944836.html in Lighttpd? All my Trys didn´t work :(
user avatar
6 votes
2 answers
13k views

Rewrite URL before passing to proxy Lighttpd

I'm trying to setup a reverse proxy in lighttpd, such that all requests (and only those requests) under /mobile/video is redirected to the / directory of a secondary web server. This is pretty easy in ...
futureelite7's user avatar
-1 votes
1 answer
141 views

mod_rewrite for Lighttpd

I'd like to rewrite /abc/abcd.png to /red/blue.php How is that possible in Lighttpd?
Steven's user avatar
  • 617
3 votes
3 answers
3k views

lighttpd config and rewriting/disabling attempts to access favicon.ico

I've got lighttpd and apache working together on an app I'm building. lighty is serving out static content. However, each time a static asset is requested, I see a not found: favicon.ico message in ...
Kyle's user avatar
  • 141
0 votes
1 answer
1k views

How to: Zend .htaccess Lighttpd conversion

We are using Zend Framework, we switched from apache to lighttpd, main htaccess file for zend is this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ...
Devrim's user avatar
  • 1,187
1 vote
3 answers
2k views

Remove trailing slash Lighttpd url

A weird request, but I really need this answered. Can you guys help me using re-write rules to remove the trailing slash from urls in Lighttpd.conf? EG: **A** www.example.com/page/ **B** www.example....
James's user avatar
  • 171