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

FOG reachable under webroot instead of /fog

Scheduled Pinned Locked Moved
Tutorials
3
3
3.1k
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.
  • X
    x23piracy
    last edited by Jul 15, 2014, 10:58 AM

    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

    ║▌║█║▌│║▌║▌█

    1 Reply Last reply Reply Quote 0
    • A
      Andy Abplanalp Developer
      last edited by Jul 15, 2014, 12:38 PM

      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

      1 Reply Last reply Reply Quote 0
      • P
        pdpk
        last edited by Jul 24, 2014, 8:37 AM

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

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

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

        245

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project