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

    ISO subfolder redirects to /fog/management over http

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    5
    640
    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.
    • B
      Banditev
      last edited by

      Hello,

      i am running a FOG server version 1.4.4 on ubuntu 16.04.3 LTS x64 with PHP 7.1.
      For iPXE boot i created a iso subfolder in /var/www/fog/
      Owner set to www-data:www-data.

      When i try to acces the subfolder over http://{FOG-SERVER-IP}/fog/iso/ then he redirects me
      to http://{FOG-SERVER-IP}/fog/management/index.php.

      my /etc/apache2/sites-enabled/001-fog.conf

      NameVirtualHost *:80
      <VirtualHost *:80>
          KeepAlive Off
          ServerName {FOG-SERVER-IP}
          ServerAlias vmfog
          DocumentRoot /var/www/html
          <Directory /var/www/html/fog/>
              DirectoryIndex index.php index.html index.htm
          </Directory>
          RewriteEngine On
          RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
          RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
          RewriteRule ^/(.*)$ /fog/api/index.php [QSA,L]
      </VirtualHost>
      
      

      Any ideas ?

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        This is by design because of the inclusion of the fog API.

        I need to see if we can craft a rewrite rule that is a bit more specific to allow other pages to be hosted on the FOG server.

        Lets take a different approach here, what ISO are you trying to deliver?

        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!

        1 Reply Last reply Reply Quote 0
        • B
          Banditev
          last edited by

          Thank you for your response.

          I am trying following isos:

          • HirensBootCD 15.2
          • Proxmox PVE 4.4
          • ESET LiveCD

          And in future Win 7/8.1/Server 2016

          Thanks.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @Banditev Put the stuff in /var/www/iso and you should be able to access those via http://{FOG-SERVER-IP}/iso/

            But be warned, AFAIK you won’t get a directory listing when opening that URL in the browser. You need to type in the full name of an ISO file to test http://{FOG-SERVER-IP}/iso/hirens.iso for example!

            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

            B 1 Reply Last reply Reply Quote 0
            • B
              Banditev @Sebastian Roth
              last edited by

              @sebastian-roth

              Hello,

              that works 🙂
              But i had to put the iso in /var/www/html/iso/
              And then i had to know the name of the iso file. (No directory listing)

              Thank you very much.

              RESOLVED !

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

              148

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project