Password protect lighttpd



  • Hi ???

    i have protected lighttpd like described in post: http://forum.pfsense.org/index.php/topic,6286.0.html
    But my problem is when i reboot pfsense it restores the /var/etc/lighty-webConfigurator.conf file.

    how can i stop this and it doesn't restore too default or change the default?

    Thnx



  • Modify /etc/inc/system.inc



  • Thnx i'm gonna try it out!



  • It works only i think i didn't make it work on the correct way…

    In the file:
    /etc/inc/system.inc

    I adjusted this bit:

    /* generate lighttpd configuration /
    system_generate_lighty_config("{$g['varetc_path']}/lighty-webConfigurator.conf",
    $cert, $key, "lighty-webConfigurator.pid", $portarg, "/usr/local/www/");

    in to:

    /
    generate lighttpd configuration */
    system_generate_lighty_config("{$g['varetc_path']}/lighty-webConfigurator1.conf",
    $cert, $key, "lighty-webConfigurator.pid", $portarg, "/usr/local/www/");

    on this way it doesn't adjust the lighty-webConfigurator.conf and it stays like it should…
    but where does it get his change?
    Somewhere has to be the standard lighty-webConfigurator1.conf file so it can recover this?



  • system.inc …


Log in to reply