| View previous topic :: View next topic |
| Author |
Message |
raidenii neophyte
Joined: 07 Nov 2010 Posts: 4
|
Posted: Tue Oct 04, 2011 4:52 pm Post subject: Need help for Lighttpd reverse proxy for MLDonkey 3.0.3 |
|
|
Hi all,
I'm using MLDonkey 3.0.3 comes with Debian and Lighttpd as my web server. I want to use Lighty as a reverse proxy so that I could access my MLDonkey WebUI by http://mydomain/mlnet/. It's very easy to do it on nginx, but on Lighty I just can't get it running. MLDonkey (not lighty) always prompts 404, saying that mlnet/ was not found on the server, so I guess it's a rewrite issue.
My lighty settings:
| Code: | $HTTP["url"] =~ "^/mlnet/" {
proxy.server = (
"" => (
(
"host" => "127.0.0.1",
"port" => 4080
)
)
)
}
|
Any suggestions would be appreciated. |
|
| Back to top |
|
 |
ygrek professional

Joined: 20 Mar 2010 Posts: 521
|
Posted: Wed Oct 05, 2011 1:52 pm Post subject: |
|
|
Looks like you should teach lighttpd to rewrite urls : /mlnet/url -> /url _________________ Download | Report bugs | git mirror |
|
| Back to top |
|
 |
raidenii neophyte
Joined: 07 Nov 2010 Posts: 4
|
Posted: Wed Oct 05, 2011 3:48 pm Post subject: |
|
|
| ygrek wrote: | | Looks like you should teach lighttpd to rewrite urls : /mlnet/url -> /url |
Tried with | Code: | | url.rewrite-once += ( "^/mlnet/(.*)$" => "/$1" ) | with no luck. url.rewrite doesn't work inside a block. |
|
| Back to top |
|
 |
ygrek professional

Joined: 20 Mar 2010 Posts: 521
|
Posted: Thu Oct 06, 2011 8:21 am Post subject: |
|
|
Sorry, I don't know lighttpd and cannot help here. _________________ Download | Report bugs | git mirror |
|
| Back to top |
|
 |
ygrek professional

Joined: 20 Mar 2010 Posts: 521
|
|
| Back to top |
|
 |
raidenii neophyte
Joined: 07 Nov 2010 Posts: 4
|
Posted: Wed Oct 19, 2011 4:40 pm Post subject: |
|
|
Thanks - though I don't really think it's a problem of MLDonkey. Rather I would say it's a Lighttpd problem. |
|
| Back to top |
|
 |
kingchy neophyte
Joined: 04 Oct 2011 Posts: 1
|
Posted: Sun Sep 30, 2012 1:13 am Post subject: |
|
|
| raidenii wrote: |
Thanks - though I don't really think it's a problem of MLDonkey. Rather I would say it's a Lighttpd problem. |
Agree with you. But #11454 does help to resolve this issue. |
|
| Back to top |
|
 |
ygrek professional

Joined: 20 Mar 2010 Posts: 521
|
|
| Back to top |
|
 |
|