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

    Lighttp web server access files????

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 Posters 2.6k 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.
    • O Offline
      onkeldave83
      last edited by

      hello,

      i want to access a directory in /usr/var/www/

      thats, i think, the document-root directory of lighttp

      i want to make pictures avaible over browser http in lan

      can someone explain me how?

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        Try using the vhosts package. That creates a new instance of lighttpd and document root for each 'host' you create. You can then add your pictures and scripts there. There's not much documentation though!  ::)
        Also be aware that using your firewall as a webserver is not a good idea from a security standpoint.

        Steve

        1 Reply Last reply Reply Quote 0
        • T Offline
          tommyboy180
          last edited by

          The directory is /usr/local/www for the webserver.

          -Tom Schaefer
          SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

          Please support pfBlocker | File Browser | Strikeback

          1 Reply Last reply Reply Quote 0
          • O Offline
            onkeldave83
            last edited by

            hmm ok with the extra package … thanks
            (security is true!!! ;))

            but first that way with only lighttpd

            my document-root is /usr/local/www/

            but when i put something in....
            i get error 404 file not found

            i have f.e. created a directory "error-pages"
            and there is in: pngs, jepgs and so on

            but how can access this files over browser??????

            i have in my lighty-webconfigurator.conf

            server.dir-listing = "enable"

            but no access????
            please help me out

            1 Reply Last reply Reply Quote 0
            • P Offline
              Perry
              last edited by

              lighty conf is generated on boot. Just use DRindex http://www.templatesurge.com/files/DRIndex.zip drop the index.php in the folder you create in /usr/local/www
              or use Simple Picture Gallery Manager

              /Perry
              doc.pfsense.org

              1 Reply Last reply Reply Quote 0
              • O Offline
                onkeldave83
                last edited by

                CLOSED THANKS

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