Simple Redirect

From FOG Project
Revision as of 00:16, 26 April 2016 by Tom-elliott.7271 (talk | contribs) (Fix the php for the header redirection.)
Jump to: navigation, search

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


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.


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

vi /var/www/html/index.php

Instructions on using Vi: vi

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

header('Location: http://x.x.x.x/fog/management/index.php');

Save this file.

Permissions on this file should be set as:

chmod 744 /var/www/html/index.php
chown root:apache /var/www/html/index.php

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