Welcome! Log In Create A New Profile

Advanced

observium rewrite

December 09, 2012 04:16PM
Доброго времени суток всем!
Пытаюсь завести observium с nginx, но проблемы с реврайтами.

htaccess:

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)
RewriteRule ^(.*)$ index.php/$1/
AcceptPathInfo On

Правила для nginx:

        location / {
                try_files $uri $uri/ @observium;
        }
 
 
        location @observium {
                rewrite ^(.+)$ /index.php/$1/ last;
        }

В error.log:
2012/12/10 01:09:05 [error] 32627#0: *8 rewrite or internal redirection cycle while redirect to named location "@observium", client: ***.***.**.**, server: observium.monitoring.mydomain.com, request: "GET /device/device=2/ HTTP/1.1", host: observium.monitoring.mydomain.com", referrer: "https://observium.monitoring.mydomain.com/"

Скажите пожалуйста, что я делаю не так?
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

observium rewrite

user~13 December 09, 2012 04:16PM

Re: observium rewrite

Theodor Zurabishvili December 10, 2012 12:38PM

Re: observium rewrite

Kron December 12, 2012 03:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready