Answer the question
In order to leave comments, you need to log in
How to debug nginx?
The `location /flv {...}` rule does not work.
Debug information should be written to the logs, but not written
server {
server_name cs.your-goal.ru;
root /var/www/cs.your-goal.ru;
include /etc/nginx/templates/default.conf;
include /etc/nginx/templates/php.conf;
autoindex off;
error_log /var/www/cs.your-goal.ru.err;
access_log /var/www/cs.your-goal.ru.log;
location /flv {
rewrite ^/flv/(.*)$ http://166509.selcdn.com/goal/video/$1 redirect;
}
location / {
rewrite ^/(.*\.)v[0-9.]+\.(css|js|gif|png|jpg)$ /$1$2 permanent;
}
}
Answer the question
In order to leave comments, you need to log in
To write debug information, you must specify
and nginx must be built with the --with-debug option.
You can also use rewrite_log on;
it then the results of the rewrite operation will be written to the error_log.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question