See below, XXXXXXXXXX to protect the innocent.


server {
        listen 443;
        root /opt/observium/html/;
        # Add index.php to the list if you are using PHP
        index index.html index.php index.htm index.nginx-debian.html;

        server_name XXXXXXXXXXXXX;

        ssl on;
        ssl_certificate /etc/letsencrypt/live/XXXXXXXXXXX/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/XXXXXXXXXXXXX/privkey.pem;

        location / {
            try_files $uri $uri/ /index.php;
        }

        # pass PHP scripts to FastCGI server
        #

        location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
        }

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #

        location ~ /\.ht {
                deny all;
        }
}

On Mon, Feb 10, 2020 at 2:19 PM Adam Armstrong <adama@memetic.org> wrote:
What is the entire config for nginx?

We don't go near other webservers because we rely on htaccess, and i don't really trust that to work properly on other platforms.

Adam.

Sent from BlueMail
On 10 Feb 2020, at 02:55, "Ross [Eve IT]" <ross@eve-it.net> wrote:
Took me a moment to get that, I was like; "what?! Observium doesn't work on nginx!??"
lol ;)

For anyone who does run into this issue, I had the default location set incorrectly.
Needed this.

        location / {
            try_files $uri $uri/ /index.php;
        }




On Fri, Feb 7, 2020 at 3:33 PM adama--- via observium < observium@observium.org> wrote:

But Observium doesn’t support nginx… 😃

 

Adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of Ross [Eve IT] via observium
Sent: 07 February 2020 03:15
To: observium@observium.org
Cc: Ross [Eve IT] <ross@eve-it.net>
Subject: [Observium] only front page working

 

Hello,

 

Recently installed the CE version on a local Debian box running nginx and I have having a bizarre issue.

Only the front page loads, it loads fine.

 

The moment I click on any link, whether it is a device or trying to go into Settings, it just throws a 404.

I don't see any errors in nginx.

I thought it might have something to do with the web_url & base_url, I have set that in the config.php but no luck.

I'm sure it's something I have missed :/

 

Ross.

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium