RaspAP/raspap-webgui

Update 50-raspap-router.conf file to include rootCA.pem

Closed this issue · 2 comments

In versions 3.4.0 and prior, to download the rootCA.pem file that is created by the SSL installation instructions, users will need to modify the /etc/lighttpd/conf-available/50-raspap-router.conf file to allow it to be downloaded by a browser (as outlined below). The purpose of this issue is to add this to the default config file, to not require users to do so:

pi@pirouter:~ $ sudo cat /etc/lighttpd/conf-available/50-raspap-router.conf
server.modules += (
        "mod_rewrite",
)

$HTTP["url"] =~ "^/(?!(dist|app|ajax|config)).*" {
    url.rewrite-once = ( "^/(.*?)(\?.+)?$"=>"/index.php/$1$2" )
    server.error-handler-404 = "/index.php"
}

After (note the changed line with the addition of |rootCA.pem: $HTTP["url"] =~ "^/(?!(dist|app|ajax|config|rootCA.pem)).*" {)

pi@pirouter:~ $ sudo cat /etc/lighttpd/conf-available/50-raspap-router.conf
server.modules += (
        "mod_rewrite",
)

$HTTP["url"] =~ "^/(?!(dist|app|ajax|config|rootCA\.pem)).*" {
    url.rewrite-once = ( "^/(.*?)(\?.+)?$"=>"/index.php/$1$2" )

Agreed, makes sense. Thanks for proposing this.

Closing as merged