Vote count:
0
I have a proxy rule in my configuration where all request from http://ift.tt/1kmXkqH is "redirected" to localhost:8080. This has been working fine except that sometimes when I submit a form on myapp, it uses http instead of https thus causing problems (i.e. I get a "no data received"). myapp uses port 8080 as it's working port. I only use 8081 as the SSL port.
These are my settings to get the proxy thing happening.
$SERVER["socket"] == ":8081" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/yomi.pem"
# Restrict access to only those users in the digest.txt file
$HTTP["url"] =~ "^/myapp*" {
auth.require = ( "" =>
(
"method" => "digest",
"realm" => "MyWebInterface",
"require" => "valid-user"
) )
proxy.debug = 1
proxy.server = ( "" =>
( (
"host" => "127.0.0.1",
"port" => 8080
) )
)
}
}
I tried following this guide but I still get the problem. I put the code in example 1 just before $HTTP["url"] without any luck. I tried putting it before $SERVER["socket"] without any progress either.
Can you please help so I can fix my issue? thanks very much
asked 45 secs ago
Aucun commentaire:
Enregistrer un commentaire