Custom logo not showing



  • Uploaded a logo through File Manager and it prepended captiveportal string, so the file name is captiveportal-logo.png now.
    HTML img tag contains src=captiveportal-logo.png.
    Image is not showing. Why? Image is stored in /var/db/cpelements/
    What's the document root of web server running captive portal at 8002 port?



  • @mdes:

    ….
    Image is not showing. Why? Image is stored in /var/db/cpelements/
    What's the document root of web server running captive portal at 8002 port?

    Run this one :

    cat nginx-*-CaptivePortal.conf | grep 'root '
    

    Over there (btw : /usr/local/captiveportal  ;) ) you should find stuff like this :

    [2.3.4-RELEASE][admin@pfsense.brit-hotel-fumel.net]/var/etc: ls -al /usr/local/captiveportal
    total 40
    drwxr-xr-x   2 root  wheel    512 Jul 21 10:42 .
    drwxr-xr-x  14 root  wheel    512 Aug  2 14:59 ..
    lrwxr-xr-x   1 root  wheel     43 Jul  4 12:32 captiveportal-2style.css -> /var/db/cpelements/captiveportal-2style.css
    lrwxr-xr-x   1 root  wheel     45 Jul  4 12:05 captiveportal-nvx-logo.png -> /var/db/cpelements/captiveportal-nvx-logo.png
    -rw-r--r--   1 root  wheel  11603 May  3 19:07 index.php
    -rw-r--r--   1 root  wheel  10434 May  3 19:07 radius_accounting.inc
    -rw-r--r--   1 root  wheel   6862 May  3 19:07 radius_authentication.inc
    

    As you can see, I have two sym-links, they are generated when you upload a file - like your image.
    I have an image to, called "captiveportal-nvx-logo.png", shows up just fine in my home made 'html' portal login page, using come html code like this :

    
    [![Brit Hotel Fumel Logo](captiveportal-nvx-logo.png)](http://www.brit-hotel-fumel.fr/)
    
    

    @mdes:

    HTML img tag contains src=captiveportal-logo.png.

    I didn't know the quotes "" were optional  ;D ;D