Spondoolies-Tech / minepeon

Miner UI
GNU General Public License v2.0
0 stars 3 forks source link

HTTPS redirect #8

Open SyRenity opened 10 years ago

SyRenity commented 10 years ago

There should be mod_redirect module, to forward users to HTTPS version.

ghost commented 10 years ago

mod_redirect.so exists in /usr/local/lib.

SyRenity commented 10 years ago

@syounger Please configure lighttpd to redirect to SSL.

syounger commented 10 years ago

@SyRenity What is the point of using SSL on a LAN network?

SyRenity commented 10 years ago

And what if I want to access my miner remotely, through a NAT-mapped hole?

On Wed, Mar 26, 2014 at 10:18 AM, syounger notifications@github.com wrote:

@SyRenity https://github.com/SyRenity What is the point of using SSL on a LAN network?

Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/8#issuecomment-38658998 .

syounger commented 10 years ago

This does not work, since lighttpd needs to be configured with pcre. Passing to @goytin

SyRenity commented 10 years ago

AFAIK we have pcre, Vladik checked it back then.

On Wed, Mar 26, 2014 at 7:33 PM, syounger notifications@github.com wrote:

This does not work, since lighttpd needs to be configured with pcre. Passing to @goytin https://github.com/goytin

Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/8#issuecomment-38714305 .

ghost commented 10 years ago

Since commit df34c17 there is PCRE support in lighttpd.

SyRenity commented 10 years ago

@Simha, please update how it works now.

On Thu, Mar 27, 2014 at 10:45 AM, goytin notifications@github.com wrote:

Since commit df34c17 there is PCRE support in lighttpd.

Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/8#issuecomment-38779508 .

SyRenity commented 10 years ago

Latest git still fails with:

miner-FL1014990002# lighttpd -f /etc/lighttpd/lighttpd.conf can't handle '$HTTP[host] =~ ...' as you compiled without pcre support. (perhaps just a missing pcre-devel package ?) 2000-01-06 02:21:38: (configfile.c.943) source: /etc/lighttpd/lighttpd.conf line: 56 pos: 41 parser failed somehow near here: {

SyRenity commented 10 years ago

Please verify pcre-devel is also compiled inside.

syounger commented 10 years ago

It is possible to implement this without PCRE, by using a separate directory for ssl conections. When ssl is not enforced, this will be a symlink to the real web root. When ssl is enforced, it will point to a directory which just redirects each page to the ssl version. The preferred method would be redirects from mod_redirect, but this would work well enough .