FOG reachable under webroot instead of /fog



  • Hi,

    i wanted to have access to fog under it’s apache webroot / instead of /fog:

    copy current index.php to apache webroot
    [CODE]cp /var/www/fog/index.php /var/www/[/CODE]
    removing default index.html because its prefered before index.php
    [CODE]rm /var/www/index.html[/CODE]
    edit copy of index.php to redirect to correct path
    [CODE]vi /var/www/index.php[/CODE]
    change
    [CODE]<?php header(‘Location: ./management/index.php’);[/CODE]
    to
    [CODE]<?php header(‘Location: ./fog/index.php’);?>[/CODE]

    [B][COLOR=#ff0000]This is just a redirecting solution, the good way to have fog under apaches webroot would be an installer question where to install fog on apache. The redirection could also be done by .htaccess or [URL=‘http://fogproject.org/forum/threads/fog-reachable-under-webroot-instead-of-fog.11143/#post-33116’]apache conf[/URL] itself but this is the most cheapest way to do ;)[/COLOR][/B]

    Regards X23



  • i just added this line to my 000-default.conf

    Redirect /index.html [url]http://(fogserver)/fog/management/[/url]


  • Developer

    To avoid conflicts with the FOG installer/updater, I just added the following line to my /etc/apache2/sites-available/000-default.conf file:

    RedirectMatch ^/$ /fog


Log in to reply
 

354
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

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