четверг, 27 августа 2009 г.

Nginx https configuration

Now I am working in one project that was written by another developer. And in production server my website weas only working via https. It was very strange because I was searching in nginx configuration any lines such as:


location ~* ^/(orders|offers)/ {
rewrite ^/(.*)$ https://testname.com/$1 redirect;
}


but nothing to find. As you can see this sources it's only simple rewrite rule for nginx configuration. After 3 hours in my rails application I didn't find anything codes connecting with https. I read nginx docs and found one funny line that was previous developer used in nginx.conf:

proxy_set_header X-FORWARDED_PROTO https;

That's all.

Комментариев нет: