Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 59501

Help with Observium + nginx (rewrite rules)?

$
0
0

Hey All-

I've set up Observium on a VPS and it works great, except for some (most) URLs not working due to using nginx (which isn't officially supported by Observium, per warning in their install guides, etc.)

I really don't want to bother with Apache and I know there are folks here who have it up and working with nginx so I was wondering if anyone would be kind enough to post your nginx/vhost config file portion with your rewrite rules.

The /opt/observium/html/.htaccess file looks like this:

#  DO NOT CHANGE THIS FILE
#  If you need to change this file, you are doing something wrong.

Options FollowSymlinks Multiviews

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
RewriteCond %{REQUEST_URI} !=/server-status
RewriteRule ^(.*)$ index.php/$1/

AcceptPathInfo On

I've tried this in my nginx config file (at the end of the 'try_files' line) but I must be missing something:

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

Thanks much for any help in advance!


Viewing all articles
Browse latest Browse all 59501

Trending Articles