• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Directories under /var/www/html not showing after upgrade to 1.4

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    7
    1.8k
    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.
    • ThiagoT
      Thiago
      last edited by

      Server
      • FOG Version: 1.4
      • OS: CentOS 7
      Description

      Maybe this is more a apache config issue than Fog.
      I have some directories under /var/www/html (iso, repos, configs) and are used with fog ipxe to boot systems and automated installs.
      After upgraded to 1.4, puting in browser: http://(ip)/iso or /configs it returns with incorrect redirection error msg.
      Commenting lines from /etc/httpd/conf.d/fog.conf:

      RewriteEngine On
      RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
      RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
      RewriteRule ^/(.*)$ /fog/api/index.php [QSA,L]
      

      all work like expected, but not tested with the fog things (snapin, clone…)
      what these lines do?

      1 Reply Last reply Reply Quote 0
      • ThiagoT
        Thiago @Tom Elliott
        last edited by

        @Tom-Elliott It is not failing, the installer can get the file successfully!!!
        what is not working: list directory content in browser (same behavior using Indexes option in apache)
        This is not a problem because i can access file directly, but just curious about this.
        Sorry for taking your time.

        @Wayne-Workman i agree with your recommendation and i will implement this soon.

        Thanks all you guys…

        Tom ElliottT 1 Reply Last reply Reply Quote 1
        • Tom ElliottT
          Tom Elliott
          last edited by

          Are you searching a specific directory?

          You shouldn’t be "scanning " a directory from a browser. The intent behind these lines, however, are for our API system now.

          The Rules mean:
          If the called url is not a file and is not a directory, redirect to the api system.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • ThiagoT
            Thiago
            last edited by

            i am acessing directory with ipxe menu, like:

            :centos7auto
            set base http://${fog-ip}/repos/centos/base
            set iso http://${fog-ip}/iso/centos7
            kernel ${iso}/vmlinuz
            initrd ${iso}/initrd.img
            ....and other things
            

            i have no index.html or .php at /var/www/html and welcome.conf can not show his test page.

            Wayne WorkmanW Tom ElliottT 2 Replies Last reply Reply Quote 0
            • Wayne WorkmanW
              Wayne Workman @Thiago
              last edited by Wayne Workman

              @Thiago I recommend moving your CentOS repository and ISOs to another server.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Thiago
                last edited by

                @Thiago As long as the repos/centos/base exists it should go ther to get the file. Same for iso/centos7

                Is this failing?

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                ThiagoT 1 Reply Last reply Reply Quote 0
                • ThiagoT
                  Thiago @Tom Elliott
                  last edited by

                  @Tom-Elliott It is not failing, the installer can get the file successfully!!!
                  what is not working: list directory content in browser (same behavior using Indexes option in apache)
                  This is not a problem because i can access file directly, but just curious about this.
                  Sorry for taking your time.

                  @Wayne-Workman i agree with your recommendation and i will implement this soon.

                  Thanks all you guys…

                  Tom ElliottT 1 Reply Last reply Reply Quote 1
                  • Tom ElliottT
                    Tom Elliott @Thiago
                    last edited by

                    @Thiago I think that’s what I needed to know.

                    If you need the directory listing, you might be better creating an index.php file that will generate the list of files for you.

                    You can even make them links so you could test downloads.

                    The idea is we use an API now and if the index file doesn’t exist (which it’s attempting to locate) it will attempt to redirect through the API. I just needed clarity on whether there was an actual issue of which you just let us know there wasn’t. It was just your “testing” that was failing (which is helpful, but not requried).

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    158

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project