модуль прокси

Alexander Dolgarev a.dolgarev at gmail.com
Tue Jun 10 16:53:01 MSD 2008


Воспользовался модулем прокси, все просто:

    server {
        listen       80;
        server_name  some.domain.net;

        #charset koi8-r;

        access_log  logs/host.access.log  main;

        location / {
            root   html;

            proxy_pass           http://localhost:8000/forum/;

            sub_filter '/forum' '';
            sub_filter_types text/plain;
            sub_filter_once off;

        }


        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page  401 402 404  500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

    }



Ссылки типа /forum удается заменять налету. Но осталась проблема с кукисами,
а именно сервер посылает заголовок

Set-Cookie: phpbb3_5z63w_sid=b1386871472c3cd91b80cb1a61be1925; expires=Wed,
10-Jun-2009 12:41:51 GMT; path=/; *domain=localhost:8000*; HttpOnly

или

Set-Cookie: phpbb3_5z63w_k=; expires=Wed, 10-Jun-2009 12:41:51 GMT; *
path=/forum*;

Получаем неверный domain и path.


Как с этим бороться?


С ув. Александр
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080610/b354206d/attachment.html>


More information about the nginx-ru mailing list