Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Password protect lighttpd

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      marcel
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        Modify /etc/inc/system.inc

        1 Reply Last reply Reply Quote 0
        • M
          marcel
          last edited by

          Thnx i'm gonna try it out!

          1 Reply Last reply Reply Quote 0
          • M
            marcel
            last edited by

            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?

            1 Reply Last reply Reply Quote 0
            • S
              sullrich
              last edited by

              system.inc …

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.