All Questions
25
questions
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["...
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 ...
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&...
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 "...
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:
...
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/ --> ...
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....
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 ...
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....
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+...
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 ...
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....
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 ...
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
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"
...
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 ...
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 ...
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 ...
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 ...
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....
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....
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/...
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 = (
"^/(.*)" =&...
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....
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....