Image path
-
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?
-
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 -
It is well named. Firefox tells "Can't load the image".
-
Post your html code here if possible
Or just the href part
-
<title>Portail captif</title>  Welcome! En cliquant sur Continuer, vous acceptez les conditions d'utilisations.
-
Great now go to cp config and click on file manager
Tab and list all files regarding cpIs captiveportal-logo.png there?
-
Yes the file is there.
When I try http://<ip>:8002/captiveportal-logo.png. I fall on the portal.</ip> -
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) ?
-
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
:-\
-
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 thisWhen 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 matter what URL I type, I always come across the captive portal page.
-
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) ?