'404 /nagioslogserver/login was not found' after 1.4.0 upgrd

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
milan
Posts: 9
Joined: Thu Jul 16, 2015 7:37 am

'404 /nagioslogserver/login was not found' after 1.4.0 upgrd

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: '404 /nagioslogserver/login was not found' after 1.4.0 u

Post 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.
Former Nagios Employee.
me.
milan
Posts: 9
Joined: Thu Jul 16, 2015 7:37 am

Re: '404 /nagioslogserver/login was not found' after 1.4.0 u

Post by milan »

Hi Mr. Smith

That worked very well!

Many thanks and best regards
Milan
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: '404 /nagioslogserver/login was not found' after 1.4.0 u

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked