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

    How to edit a file permanently?

    Scheduled Pinned Locked Moved Development
    4 Posts 2 Posters 3.5k 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.
    • B Offline
      blueserver
      last edited by

      hi there
      I need to know if is there any way to modify file "/var/etc/lighty-
      CaptivePortal.conf" permanently

      1 Reply Last reply Reply Quote 0
      • E Offline
        eri--
        last edited by

        Start by asking if there is some other way to accomplish what you are after.

        1 Reply Last reply Reply Quote 0
        • B Offline
          blueserver
          last edited by

          Hello
          I noted that iphone always verifies connectivity when tring to connect to a network.
          When the verification is negative it opens a login page and then you have to insert login and psw. then, after the autentication, a redirection url opens in a sort of pop up window that immediatly closes itself, while I'd need it to open in a traditional browser.
          to solve this issue, I need to create a file:
          /usr/local/captiveportal/library/test/success.html, but to open this file it is necessary that file /var/etc/lighty-CaptivePortal.conf doesn't include the following parameters:
          url.rewrite-once = ( "(.captiveportal.)" => "$1", "(.*)" => "/index.php?redirurl=$1" )

          1 Reply Last reply Reply Quote 0
          • E Offline
            eri--
            last edited by

            I do not think that will solve what you are after.
            Mostly will break other things.

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