Project

General

Profile

[Solved] captive portal / redirect google search queries on https => server.local

Added by waveplant over 10 years ago

I've setup a captive portal that catches all internet traffic and sends them to a local webserver.

When users type a single word or phrase into a browser, the browser assumes they're using google and directs them to https://www.google.com/search?... and the request of course goes nowhere.

I've been looking at:

http://redmine.lighttpd.net/projects/lighttpd/wiki/HowToRedirectHttpToHttps (at the bottom - how to direct https to http)

But I can't figure out how to configure it so that all requests go to the same place. I'm sure I'm missing something simple.

$HTTP["scheme"] == "https" {
$HTTP["host"] =~ ".*" {
url.redirect = (".*" => "http://computer.local")
}
}

Any help is appreciated!


Replies (1)

RE: [Solved] captive portal / redirect google search queries on https => server.local - Added by gstrauss about 7 years ago

    $HTTP["host"] != "computer.local" {
        url.redirect = ("" => "http://computer.local/")
    }
    (1-1/1)