Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: observium rewrite
Может стоит попробовать без реврайтов?
Например:
location / {
- try_files $uri $uri/ @observium;
+ try_files $uri $uri/ /index.php/$request_uri;
}
- location @observium {
- rewrite ^(.+)$ /index.php/$1/ last;
- }
10.12.2012, 01:14, "Habarov D.L" <habich99@xxxxxxx>:
> Доброго времени суток всем!
> Пытаюсь завести 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@xxxxxxxxx
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|