ISO subfolder redirects to /fog/management over http



  • 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 ?



  • @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 !


  • Developer

    @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!



  • 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.


  • Moderator

    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?


Log in to reply
 

455
Online

39.4k
Users

11.1k
Topics

105.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.