Page 1 of 1
'404 /nagioslogserver/login was not found' after 1.4.0 upgrd
Posted: Thu Jan 07, 2016 10:35 am
by milan
After the upgrade of Nagios Log Server to version 1.4.0 I get the following Error Message:
404 The requested URL /nagioslogserver/login was not found on this server., when I try to login to the Nagios Log Server Web Page.
Our Log Server (Cluster) is configured to be accessed only over SSL (port 443) using the suggested configuration from Nagios ->
https://assets.nagios.com/downloads/nag ... alyzer.pdf
Could somebody help please with this problem?
Many thanks and best regards
Milan
Re: '404 /nagioslogserver/login was not found' after 1.4.0 u
Posted: Thu Jan 07, 2016 10:44 am
by hsmith
I'm going to copy this from a ticket that I had earlier for the same issue:
Inside of
/etc/httpd/conf.d/ssl.conf can you navigate to the bottom of the file, and right above
</VirtualHost> add the following lines:
Code: Select all
RewriteEngine on
RewriteCond $1 !^(index\.php|scripts|media|app|js|css|img|font|vendor|config.js)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagioslogserver/(.*)$ /var/www/html/nagioslogserver/www/index.php/$1 [L,QSA]
So it should look like:
Code: Select all
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
RewriteEngine on
RewriteCond $1 !^(index\.php|scripts|media|app|js|css|img|font|vendor|config.js)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagioslogserver/(.*)$ /var/www/html/nagioslogserver/www/index.php/$1 [L,QSA]
</VirtualHost>
Restart apache:
service httpd restart
This fixes it.
Re: '404 /nagioslogserver/login was not found' after 1.4.0 u
Posted: Fri Jan 08, 2016 4:22 am
by milan
Hi Mr. Smith
That worked very well!
Many thanks and best regards
Milan
Re: '404 /nagioslogserver/login was not found' after 1.4.0 u
Posted: Fri Jan 08, 2016 10:44 am
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.