Help configuring lighttpd Topic is solved
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: Help configuring lighttpd
Is there a way to just install lighttpd?
Re: Help configuring lighttpd
Lighttpd can be installed using dietpi-software. Software ID 84
Code: Select all
[*] 84 Lighttpd: webserver
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: Help configuring lighttpd
That was my bad, since lighttpd is the selected choice as webserver, I tought it was only installed once something that need a webserver was installed.
I'm not sure what am I doing worg now, after the fresh install on this RP3, I've copied the lighttpd.conf settings, only adding configurations. Like adding the the mod_proxy in the server.modules , and the endpoint settings after all default cofiguration, like the example I gave in the first post.
After that I've changed the port fowarding on my router to this new install.
When I try to open one of those I get ERR_CONNECTION_REFUSED
Is there something that I'm not doing?
EDIT: I also did after the changes
I'm not sure what am I doing worg now, after the fresh install on this RP3, I've copied the lighttpd.conf settings, only adding configurations. Like adding the the mod_proxy in the server.modules , and the endpoint settings after all default cofiguration, like the example I gave in the first post.
After that I've changed the port fowarding on my router to this new install.
When I try to open one of those I get ERR_CONNECTION_REFUSED
Is there something that I'm not doing?
EDIT: I also did
Code: Select all
service lighttpd force-reload
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: Help configuring lighttpd
Here is my lighttpd.conf
- Attachments
-
lighttpd.txt
- (3.37 KiB) Downloaded 15 times
Re: Help configuring lighttpd
Hi,
usually there is no need to change default configuration. Just simply activate the mod by creating a symlink from to
That's how all other models and configs are activated on DietPi
10-proxy.conf contains some examples alredy
usually there is no need to change default configuration. Just simply activate the mod by creating a symlink from
Code: Select all
/etc/lighttpd/conf-available/10-proxy.conf
Code: Select all
/etc/lighttpd/conf-enabled/10-proxy.conf
Code: Select all
root@DietPi4:~# ls -ls /etc/lighttpd/conf-enabled
total 0
0 lrwxrwxrwx 1 root root 33 Jan 18 2020 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
0 lrwxrwxrwx 1 root root 37 Jan 18 2020 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
0 lrwxrwxrwx 1 root root 58 May 19 11:08 99-dietpi-pihole-block_public_admin.conf -> ../conf-available/99-dietpi-pihole-block_public_admin.conf
0 lrwxrwxrwx 1 root root 39 Jan 18 2020 99-dietpi-pihole.conf -> ../conf-available/99-dietpi-pihole.conf
0 lrwxrwxrwx 1 root root 38 Jan 18 2020 99-unconfigured.conf -> ../conf-available/99-unconfigured.conf
root@DietPi4:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: Help configuring lighttpd
Hi,
Thanks for the info, but the results are the same
And the symlink:
Still have the "ERR_CONNECTION_REFUSED" error when triying to open in a browser.
Am I missing something?
Thanks for the info, but the results are the same
Code: Select all
# /usr/share/doc/lighttpd/proxy.txt
server.modules += ( "mod_proxy" )
## Balance algorithm, possible values are: "hash", "round-robin" or "fair" (default)
# proxy.balance = "hash"
## Redirect all queries to files ending with ".php" to 192.168.0.101:80
#proxy.server = ( ".php" =>
# (
# ( "host" => "192.168.0.101",
# "port" => 80
# )
# )
# )
## Redirect all connections on www.example.com to 10.0.0.1{0,1,2,3}
#$HTTP["host"] == "www.example.com" {
# proxy.balance = "hash"
# proxy.server = ( "" => ( ( "host" => "10.0.0.10" ),
# ( "host" => "10.0.0.11" ),
# ( "host" => "10.0.0.12" ),
# ( "host" => "10.0.0.13" ) ) )
#}
$HTTP["url"] =~ "^/sonarr($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 8989 ))
)
}
$HTTP["url"] =~ "^/radarr($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 7878 ))
)
}
$HTTP["url"] =~ "^/bazarr($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 6767 ))
)
}
$HTTP["url"] =~ "^/jackett($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 9117 ))
)
}
$HTTP["url"] =~ "^/ombi($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 3579 ))
)
}
$HTTP["url"] =~ "^/tautulli($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 8181 ))
)
}
$HTTP["url"] =~ "^/code($|/)" {
proxy.header = (
"map-urlpath" => ( "/code" => "" )
)
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 8443 ))
)
}
$HTTP["url"] =~ "^/lidarr($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 8686 ))
)
}
$HTTP["url"] =~ "^/files($|/)" {
proxy.server = ( "" =>
(( "host" => "192.168.1.94", "port" => 8069 ))
)
}
Code: Select all
root@DietPi:/var/log/lighttpd# ls -ls /etc/lighttpd/conf-enabled
total 0
0 lrwxrwxrwx 1 root root 33 Nov 16 18:58 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
0 lrwxrwxrwx 1 root root 42 Nov 17 12:27 10-proxy.conf -> /etc/lighttpd/conf-available/10-proxy.conf
0 lrwxrwxrwx 1 root root 37 Nov 16 18:58 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
0 lrwxrwxrwx 1 root root 38 Nov 16 18:53 99-unconfigured.conf -> ../conf-available/99-unconfigured.conf
Am I missing something?
Re: Help configuring lighttpd
ok i did a test on my RPi3B+ with lighttpd, sonarr and radarr. Basically I used your configuration and it's working fine
I did a fresh installation without any configuration changes.
Below some screenshots showing the URL without port and the changed URL Base
I did a fresh installation without any configuration changes.
- activated 10-proxy.conf
Code: Select all
root@DietPi3:/etc/lighttpd/conf-enabled# ls -la total 8 drwxr-xr-x 2 root root 4096 Nov 17 15:47 . drwxr-xr-x 4 root root 4096 Nov 17 14:07 .. lrwxrwxrwx 1 root root 33 Nov 17 14:07 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf lrwxrwxrwx 1 root root 31 Nov 17 15:47 10-proxy.conf -> ../conf-available/10-proxy.conf lrwxrwxrwx 1 root root 37 Nov 17 14:07 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf lrwxrwxrwx 1 root root 38 Nov 17 14:03 99-unconfigured.conf -> ../conf-available/99-unconfigured.conf
- configured 10-proxy.conf
Code: Select all
# /usr/share/doc/lighttpd/proxy.txt server.modules += ( "mod_proxy" ) ## Balance algorithm, possible values are: "hash", "round-robin" or "fair" (default) # proxy.balance = "hash" ## Redirect all queries to files ending with ".php" to 192.168.0.101:80 #proxy.server = ( ".php" => # ( # ( "host" => "192.168.0.101", # "port" => 80 # ) # ) # ) ## Redirect all connections on www.example.com to 10.0.0.1{0,1,2,3} #$HTTP["host"] == "www.example.com" { # proxy.balance = "hash" # proxy.server = ( "" => ( ( "host" => "10.0.0.10" ), # ( "host" => "10.0.0.11" ), # ( "host" => "10.0.0.12" ), # ( "host" => "10.0.0.13" ) ) ) #} $HTTP["url"] =~ "^/sonarr($|/)" { proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8989 )) ) } $HTTP["url"] =~ "^/radarr($|/)" { proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 7878 )) ) }
- changed base URL in radarr and sonarr
- restarted all services
Below some screenshots showing the URL without port and the changed URL Base
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: Help configuring lighttpd
I have it lighttpd working on the same machine with these configurations. I've did a fresh dietpi install on a RPI that I wasnt using, to try the new header thing, since it only works with buster.
When I changed the configs to the new installation, and change the port foward in the router to point to the new install I get the error I mentioned.
That is why I found this "issue" strange. The same configs are working on the "original", but old
, installation.
When I changed the configs to the new installation, and change the port foward in the router to point to the new install I get the error I mentioned.
That is why I found this "issue" strange. The same configs are working on the "original", but old

-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: Help configuring lighttpd
And thanks for trying to help 

Re: Help configuring lighttpd
I continued playing with it and managed to get access from internet by just switching port forwarding on my router. As well HTTPS is working fine. Do you use the default lighttpd.conf still? Or did you modified anything? To exclude port fowarding, did you checked if you are able to reach lighttpd Welcome Page, by just using your URL without any /radarr or /sonarr patch?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team