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

    Image path

    Scheduled Pinned Locked Moved Captive Portal
    12 Posts 3 Posters 1.3k 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.
    • A
      alexssi
      last edited by

      Hi. The image on my customized captive portal doesn't want to be displayed. I renamed it correctly but the path to find it is bad I guess. What should be indicated?

      1 Reply Last reply Reply Quote 0
      • J
        jaspras
        last edited by

        In pfsense CP portal settings , live preview your
        Page left click in Firefox or chrome to view
        Your source code and make sure it’s
        Something like captiveportal-image.jpg
        And not image.jpg or
        captiveportal-captiveportal-image.jpg

        1 Reply Last reply Reply Quote 0
        • A
          alexssi
          last edited by

          It is well named. Firefox tells "Can't load the image".

          1 Reply Last reply Reply Quote 0
          • J
            jaspras
            last edited by

            Post your html code here if possible

            Or just the href part

            1 Reply Last reply Reply Quote 0
            • A
              alexssi
              last edited by

              
              	<title>Portail captif</title>
              
                      ![Logo](captiveportal-logo.png)
              
              Welcome!
              
              En cliquant sur Continuer, vous acceptez les conditions d'utilisations.
              
              
              1 Reply Last reply Reply Quote 0
              • J
                jaspras
                last edited by

                Great now go to cp config and click on file manager
                Tab and list all files regarding cp

                Is captiveportal-logo.png there?

                1 Reply Last reply Reply Quote 0
                • A
                  alexssi
                  last edited by

                  Yes the file is there.
                  When I try http://<ip>:8002/captiveportal-logo.png. I fall on the portal.</ip>

                  1 Reply Last reply Reply Quote 0
                  • GertjanG
                    Gertjan
                    last edited by

                    Two more tests :
                    Enter console, option 8 :

                    ls -al /var/db/cpelements
                    

                    You saw your uploaded file(s) ?

                    ls -al /usr/local/captiveportal
                    

                    You saw the links to your uploaded file(s) ?

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    1 Reply Last reply Reply Quote 0
                    • A
                      alexssi
                      last edited by

                      
                      ls -al /var/db/cpelements
                      -rw-r--r--   1 root  wheel  39268 Apr  9 14:40 captiveportal-logo.png
                      
                      ls -al /usr/local/captiveportal
                      lrwxr-xr-x   1 root  wheel     52 Apr  9 12:48 captiveportal-logo.png -> /var/db/cpelements/captiveportal-logo.png
                      
                      

                      :-\

                      1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan
                        last edited by

                        Next test :

                        This one :
                        @alexssi:

                        It is well named. Firefox tells "Can't load the image".

                        this isn't something you post on a forum like forum.pfsense.org. We are not end-users here, but firewall admins  ;) so we have the power (to show more details).
                        Your browser supports a way to inspect the page it loaded, so you can see what is the URL that present in the html login page.

                        What is this URL ?

                        Btw :
                        When I use this

                        When I try http://<ip>:8002/captiveportal-logo.png. I fall on the portal.</ip>

                        on my setup with an existing image (an uploaded png file) I can see that image in my browser.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        1 Reply Last reply Reply Quote 0
                        • A
                          alexssi
                          last edited by

                          No matter what URL I type, I always come across the captive portal page.

                          1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan
                            last edited by

                            @alexssi:

                            No matter what URL I type, I always come across the captive portal page.

                            This is normal of course.
                            Any "http" access - when not authenticated - will be redirected to the captive portal login page : /usr/local/captiveportal/index.php - this is how the captive portal works.
                            But the "captiveportal-." are an exception.

                            Do you use http login or https login ?
                            Show us the correspond nginx setup files in /var/etc/ (not the names, what's in it).

                            These are mine :

                            [2.4.3-RELEASE][admin@pfsense.brit-hotel-fumel.net]/var/etc: ls -al nginx-*-CaptivePortal*.conf
                            -rw-r--r--  1 root  wheel  2596 Apr 10 11:17 nginx-cpzone1-CaptivePortal-SSL.conf
                            -rw-r--r--  1 root  wheel  2107 Apr 10 11:17 nginx-cpzone1-CaptivePortal.conf
                            

                            What is your captive portal IP (IP of the NIC used by pfSense)
                            What is the hostname of pfSense and domain (System => General Setup) ?

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

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