Simple Redirect

From FOG Project
Revision as of 13:13, 30 April 2015 by Wayne-workman.28155 (talk | contribs) (Created page with " Normally, to get to the FOG web interface, you have to type <pre>x.x.x.x/fog/management</pre> This works fine, but if FOG is the '''only''' thing your Linux box is running, ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Normally, to get to the FOG web interface, you have to type

x.x.x.x/fog/management

This works fine, but if FOG is the only thing your Linux box is running, you can simplify this with a redirect so that simply typing the x.x.x.x into a web browser takes you to the FOG login page.


Fedora

On your FOG server, we will create a file called index.php using vi.

vi /var/www/html/index.php

in here, you'd write (or copy/paste) this:

<?php header('Location: http://x.x.x.x/fog/management/index.php'); ?>
die();

Save this file.

Now, when you go to x.x.x.x you'll be taken to the FOG login screen! How cool is that?!?

Instructions on using Vi: vi