All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Is possible return a static page in https virtual host using lighttpd?

It seems like redirect is not done. If I put URL https://test2/static_page in browser it works but if I put https://test1 don't redirect SERVER["socket"] == ":443" { $HTTP["...
Aprendiz's user avatar
2 votes
1 answer
360 views

Lighttpd - Redirect HTTPS 443 to HTTPS 123

I have HTTPS working for a local instance of Lighttpd. But I'm wanting to redirect: http://192.168.1.254 -> https://192.168.1.254:123 https://192.168.1.254 -> https://192.168.1.254:123 My ...
Sean Delaney's user avatar
0 votes
1 answer
1k views

Lighttpd 1.4.45 - HTTP to HTTPS redirects not replacing ${url.authority}${url.path}${qsa}

I tried to reconfigured my lighttpd to automatically relocate any HTTP requests to HTTPS requests. To do this, I found the following config snipped in the Lighttpd Redmine Wiki: $HTTP["scheme&...
SDwarfs's user avatar
  • 385
0 votes
1 answer
427 views

lighttpd 1.4: Include scheme in www-to-no-www redirect config, with path exclusion

I'm using lighttpd 1.4.45 on a Debian-based system and have the 10-no-www.conf (from /etc/lighttpd/conf-available/10-no-www.conf in the lighttpd package) in use to redirect "www.<something>" to "...
Thomas Perl's user avatar
1 vote
1 answer
639 views

lighttpd authentication before redirection from https to http

I would like to redirect from https to http after authentication so credentials go through a secure channel but everything else is transmitted in plain. Here it is the relevant part of the conf file: ...
Albert's user avatar
  • 11
1 vote
1 answer
222 views

multiple redirects on lighhttpd

I have a request to redirect multiple individual URLs to new individual URLs. This is the situation: **Old URL --> New URL** old.domain.org/ --> ...
the0's user avatar
  • 11
1 vote
1 answer
578 views

Lighttpd: Redirect Domain but not Subdomain

In the past I had the following config on Lighted that would allow me to redirect some secondary domains I own to my primary domain. $HTTP["host"] =~ "superdomain\.net|superdomain\.eu" { url....
TCB13's user avatar
  • 1,216
1 vote
2 answers
2k views

lighttpd - redirect everything to https

I have tried to use the example from this wiki page - $HTTP["scheme"] == "http" { # capture vhost name with regex conditiona -> %0 in redirect pattern # must be the most inner block to ...
dima_mak's user avatar
  • 125
0 votes
1 answer
708 views

Redirect with lighttpd and fastcgi on Django App

I have setup my lighttpd in a fashion which redirects all subdomains to my primary domain in following fashion * .domain.com -> domain.com. Unfortunately when i type in a subdomain such as www.domain....
JavaCake's user avatar
  • 111
1 vote
1 answer
1k views

How to redirect URLs without break a FastCGI app?

(I consider this question a duplicate of Lighttpd redirect from www.domain.com to domain.com, but that one didn't get enough attention and it's too old). I'm trying to deploy an app over lighttpd+...
Tae's user avatar
  • 113
2 votes
1 answer
2k views

lighttpd redirect/ rewrite

I am trying to setup a redirect/rewrite so that the urls end with / (trailing slash) (for making seo friendly). However there are other internal rewrites, which are not shown in the browser address ...
tike's user avatar
  • 643
0 votes
2 answers
3k views

How to combine Lighttpd simple_vhost with www to non-www redirects?

I've set a simple virtual hosting using Lighttpd simple_vhost module and want to do a permanent 301 redirect from www to non-www. Here are most significant parts of my configuration file: server....
Konstantin Pavlikhin's user avatar
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
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-...
Valentin Bajrami's user avatar
0 votes
1 answer
787 views

Making lighttpd redirect from www.example.com to www.example.com/cgi-bin/index.pl

What the title says.. www.example.com is defined in lighttpd.conf as a virtual host: $HTTP["host"] =~ "(^|\.)example.com$" { server.document-root = "/usr/www/example.com/http" ...
Jarmund's user avatar
  • 535
0 votes
1 answer
353 views

HAProxy and 2 webservers

I have a website that is split into two different servers: chat server in node.js normal website (lighttpd + php + whatever) now, I have set HAProxy in the same machine as node.js chat, so that when ...
carmelo arena's user avatar
2 votes
1 answer
2k views

Lighttpd: Redirect specific location and sub-locations from HTTP to HTTPS (without using domain name)

I would like to redirect a specific section of a website from HTTP:// to HTTPS:// using Lighttpd. I've been looking at this Lighttpd wiki entry, but the examples don't work the way I want. I have ...
johndir's user avatar
  • 305
0 votes
1 answer
494 views

Force www subdomain in lighttpd and preserve path

I would like to setup my lighttpd powered website to redirect users to the www subdomain when browsing the site without the subdomain. I would also like it to preserve the trailing URL and serve the ...
Thomas Hunter's user avatar
2 votes
2 answers
2k views

Issue redirecting uri to remove "http://" in path under lighttpd

So I'm trying to do this redirect under lighttpd, but for whatever reason I just can't get it to work. I've tried looking a debug logs and all. Say I have entered http://mydomain.com/http://test.com ...
Samuel Parkinson's user avatar
0 votes
1 answer
868 views

How to redirect to localhost home on entering any non existing url?

I am working on an intranet application running over Lighttpd server, it is hosted on 192.168.0.1 and there is nothing else on server. I want to redirect any page request made to server (e.g.: "xyz....
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
0 votes
1 answer
715 views

How can i setup a domain pointing to a specific php page of my Drupal website?

I need to redirect a domain to a specific section in Drupal. My DNS works, Drupal works. Creating virtual host on my webserver: $HTTP["host"] =~ "www.mywebsite.com" { server.document-root = "/var/...
aneuryzm's user avatar
  • 1,724
1 vote
1 answer
551 views

Lighttpd redirect from www.domain.com to domain.com

I need to permanently redirect all www.domain.com to domain.com in Lighttpd. Here's relevant part of my lighttpd.conf: $HTTP["host"] =~ "^www\.domain\.com$" { url.redirect = ( "^/(.*)" =&...
Art's user avatar
  • 297
2 votes
2 answers
2k views

How do I redirect multiple domains to a single domain in lighttpd

If I have the following domains in lighttpd: domain1.com domain1.co.uk domain2.com domain2.co.uk How do i redirect all these to to 'domain.com'? ie: domain1.co.uk/some-path/ redirects to domain....
sleepyjames's user avatar
1 vote
1 answer
1k views

Redirect from SSL for non-ssl pages

I'm trying to force SSL and non-SSL on certain pages of my site with redirects in the Lighttpd config file. I have redirects to SSL working fine: $HTTP["host"] == "www.site.com:80" { url....
Parrots's user avatar
  • 285