1
vote
2answers
46 views

Lighttpd rewrite subdomains to subfolders

I have a server (itself on a subdomain) with wildcard DNS pointing to it. The server is running Lighttpd and PHP. I need requests to http://any-subdomain.server.example.com to rewrite to ...
0
votes
1answer
78 views

convert lighttpd to nginx rewrite rules

I'm trying hard to make my code work on nginx. This configuration works with lighttpd but I want migrate it to nginx. Rewrite rules on lighttd : url.rewrite-once = ( "^/(ui)/(.*)$" => ...
0
votes
1answer
88 views

Lighttpd mod_rewrite to Apache mod_rewrite

I want to turn this Lighttpd mod_rewrite to apache rewrite code. $HTTP["host"] =~ "^(i\.ylar\.se|puush\.me)$" { server.document-root = "/var/www/servers/i.ylar.se/" url.rewrite-once = ( ...
1
vote
0answers
156 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 ...
1
vote
1answer
88 views

Configure mod_rewritte for two hosts in Lighttpd

I have a problem configuring mod_rewrite in two hosts with Lighttpd. I have one which is a newer version of the old. The old doesn't use mod_rewrite, while the new one does. However, the problem is ...
1
vote
1answer
308 views

Why does lighttpd or Apache2 proxy change my URL when accessing index.html?

I have a little awkward setup with a Apache 2 webserver being the gatekeeper and proxying traffic based on the incoming domain: <VirtualHost *:80> ServerName example.org RewriteEngine On ...
1
vote
1answer
626 views

vBulletin 5 + lighttpd url rewriting

I'm trying to get vBulletin 5 up and running under lighttpd but I'm having some problems with url rewriting. Here is the apache .htaccess provided by vBulletin. <IfModule mod_rewrite.c> ...
-1
votes
1answer
104 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"] ...
1
vote
1answer
184 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 ...
1
vote
0answers
216 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
1answer
871 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
1answer
223 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 ...
1
vote
1answer
844 views

Covert mod-rewrite to lighttpd for lessn url shortener

I am trying to use lessn, a url shortener by Shaun Inman, on my lighttpd server and he uses a .htaccess file for the redirect. I am not very good with Mod_Rewrite isn the first place otherwise some ...
0
votes
1answer
260 views

how can i tell if original requests are secure or unsecured using lighttpd infront of play framework?

My system is running the play framework through lighttpd. I need to know if the requests that are coming from Facebook are from https or http. Two questions: Is there any way that I can tell in my ...
0
votes
3answers
782 views

Lighttpd: Enabling module rewrite for Drupal

I'm configuring lighttpd (1.4.26) for drupal on Ubuntu 10 and I've some issues with the rewrite module. So far I have enabled the rewrite module in lighttpd.conf Then, I have added the following ...
0
votes
3answers
150 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 :(
0
votes
2answers
1k views

Lighttpd mod_rewrite and SSL

I'm trying to prevent the search engines from crawling through SSL version of the site, to prevent content duplication and canonization issues. I found the following great article: ...
1
vote
2answers
3k views

what is lighttpd equivalent of RewriteCond %{REQUEST_FILENAME} !-f?

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php This is Zend htaccess, I can't seem to find a lighttpd equivalent of ...