Hi,
Quote:
Already tried to comment that rewrite line - Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory could not be found.
|
I guess this is because you use: location /nagios3/ and root /usr/share/nagios3/htdocs. With this root, the location has to be /, but you said you get a prompt to download a file when you do that!
I suggest you to make a backup of your config files and try to follow the tutorial of my previous post. According to that, put the nagios stuff inside a /etc/nginx/sites-enabled/default (maybe because of the way debian configures vhosts) and leave nginx.conf with the basics.
BTW, to create a password using htpasswd, you can run:
Code:
htpasswd -d -c /etc/nagios3/conf.d/htpasswd username
If you want to change the password of that user omit the -c switch.
You can also try the perl command in the tutorial above.