Подстановка неправильног о хоста в редирект, когда идÑ

ðÒÉÍÅÒ:
äÅËÌÁÒÁÃÉÑ ÓÅÒ×ÅÒÁ:
server {

server_name badhost.com goodhost.com;
root /html;

}

× /html ÅÓÔØ ÐÁÐËÁ test, ÐÕÔØ ÄÏ ÎÅ£ /html/test

ÅÓÌÉ ÏÔËÒÙÔØ ÕÒÌ http://goodhost.com/test (ÂÅÚ ÓÌÅÛÁ × ËÏÎÃÅ!) ÏÎ
ÐÅÒÅÎÁÐÒÁ×ÉÔ ÔÅÂÑ(301) ÎÁ http://badhost.com/test/

ÂÏÌÅÅ ÔÏÇÏ - ÔÅÒÑÅÔÓÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÕÂÄÏÍÅÎÁÈ.

âÕÄÅÔ ÌÉ ÜÔÏ ÐÏÞÉÎÅÎÏ É ËÏÇÄÁ?

Hello!

On Thu, Feb 18, 2010 at 07:20:06PM +0300, Oleg Serov wrote:

ÅÓÌÉ ÏÔËÒÙÔØ ÕÒÌ http://goodhost.com/test (ÂÅÚ ÓÌÅÛÁ × ËÏÎÃÅ!) ÏÎ
ÐÅÒÅÎÁÐÒÁ×ÉÔ ÔÅÂÑ(301) ÎÁ http://badhost.com/test/

ÂÏÌÅÅ ÔÏÇÏ - ÔÅÒÑÅÔÓÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÕÂÄÏÍÅÎÁÈ.

âÕÄÅÔ ÌÉ ÜÔÏ ÐÏÞÉÎÅÎÏ É ËÏÇÄÁ?

http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#server_name_in_redirect

Maxim D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs