All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
259 views

Cannot redirect/proxy from Apache to lighttpd server

I have a home server that is accessible from outside with a static IP and port http://<homeip>:10001. This is a Lighttpd server. I also own a website https://example.com with Apache, I've ...
TheUnexpected's user avatar
1 vote
2 answers
830 views

Migrate Apache Authorization Header rule to Lighttpd

My web server is running PHP applications with lighttpd and PHP-FPM for years. Now, after a 3rd-Party software upgrade, I must include some rules in order to activate a REST API. <IfModule ...
LeonanCarvalho's user avatar
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 %{...
Titanoboa's user avatar
  • 101
2 votes
0 answers
239 views

Hide index.php in subdirectory after rewrite (lighttpd)

How it is set up now I have a website which is setup for clean urls with apache mod_rewrite like this: RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] RewriteCond %{...
Liam Martens's user avatar
3 votes
2 answers
429 views

404 when trying to shorten URLs for MediaWiki with Lighttpd

I'm absolutely new at this, so please bear with me. I installed MediaWiki on Lighttpd with no problems, except that when I try to follow up redwerks instructions on how to shorten the urls for ...
MajestosoAlce'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
2 votes
2 answers
2k 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 http://...
Skylar Ittner's user avatar
0 votes
1 answer
1k 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)/(.*)$" => "/gi.php/$...
user3355434's user avatar
0 votes
1 answer
495 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 = ( ...
Ylar's user avatar
  • 3
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
1 vote
1 answer
144 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 ...
AbrahamSustaita's user avatar
1 vote
1 answer
642 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 ...
Marcus Riemer's user avatar
1 vote
1 answer
1k 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> ...
Boots's user avatar
  • 13
-1 votes
1 answer
447 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"] =...
Hola Soy Edu Feliz Navidad's user avatar
2 votes
1 answer
422 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 the ...
Justin's user avatar
  • 5,378
1 vote
1 answer
1k 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 = (...
Brad Morris's user avatar
0 votes
1 answer
4k 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", # "...
Cyclone's user avatar
  • 260
1 vote
1 answer
652 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 ...
Pajak Leon's user avatar
1 vote
1 answer
2k 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 ...
Jonathan Kratzke's user avatar
0 votes
1 answer
481 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 ...
nightograph's user avatar
0 votes
3 answers
2k 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 ...
aneuryzm's user avatar
  • 1,724
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
0 votes
2 answers
2k 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: http://www....
SyRenity's user avatar
  • 3,179
1 vote
2 answers
4k 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 ...
Devrim's user avatar
  • 1,187