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
-
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
-
i just added this line to my 000-default.conf
Redirect /index.html [url]http://(fogserver)/fog/management/[/url]