Page 1 of 1

Apache configuration

Posted: Sun Sep 01, 2019 12:31 pm
by admincauce
Hi to everybody

I have a nagios version 4.3.4 on a Centos 7. I need to perform the following configuration and it is the following. When I make a request to http://mydomain.com I am automatically redirected to http://mydomain.com/nagios

Thank you very much in advance.

Re: Apache configuration

Posted: Tue Sep 03, 2019 7:19 am
by pepe_carlos
Hi,

You can make this action in your index.html of apache (usually in /var/www/html directory):

Code: Select all

<html>
<meta HTTP-EQUIV="REFRESH" content="0; url=/nagios">
<body>
</body></html>
Regards

Re: Apache configuration

Posted: Tue Sep 03, 2019 8:21 am
by scottwilkerson
pepe_carlos wrote:Hi,

You can make this action in your index.html of apache (usually in /var/www/html directory):

Code: Select all

<html>
<meta HTTP-EQUIV="REFRESH" content="0; url=/nagios">
<body>
</body></html>
Regards
The above should do it, otherwise you would need to modify the apache config to have something like this

Code: Select all

RewriteEngine On
RewriteRule ^/$ /nagios [L,R=301]