• 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.
    • x23piracyX
      x23piracy
      last edited by

      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

        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

          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

          258

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project