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

    Custom logo not showing

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 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.
    • M
      mdes
      last edited by

      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?

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

        @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

        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.