а есть ли какой-нибудь workaround?<br>все же проблема распространенная, кто-нибудь с ней наверняка сталкивался, какие решения находили?<br><br><div class="gmail_quote">2008/6/10 Vladimir Rusinov &lt;<a href="mailto:vladimir@greenmice.info">vladimir@greenmice.info</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2008/6/10 Alexander Dolgarev &lt;<a href="mailto:a.dolgarev@gmail.com">a.dolgarev@gmail.com</a>&gt;:<br>

<div><div></div><div class="Wj3C7c">&gt; Воспользовался модулем прокси, все просто:<br>
&gt;<br>
&gt; &nbsp; &nbsp; server {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp; 80;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;<a href="http://some.domain.net" target="_blank">some.domain.net</a>;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; #charset koi8-r;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp;logs/host.access.log &nbsp;main;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; location / {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root &nbsp; html;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://localhost:8000/forum/" target="_blank">http://localhost:8000/forum/</a>;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sub_filter &#39;/forum&#39; &#39;&#39;;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sub_filter_types text/plain;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sub_filter_once off;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; #error_page &nbsp;404 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/404.html;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # redirect server error pages to the static page /50x.html<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; #<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; error_page &nbsp;401 402 404 &nbsp;500 502 503 504 &nbsp;/50x.html;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; location = /50x.html {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root &nbsp; html;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;<br>
&gt; &nbsp; &nbsp; }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Ссылки типа /forum удается заменять налету. Но осталась проблема с кукисами,<br>
&gt; а именно сервер посылает заголовок<br>
&gt;<br>
&gt; Set-Cookie: phpbb3_5z63w_sid=b1386871472c3cd91b80cb1a61be1925; expires=Wed,<br>
&gt; 10-Jun-2009 12:41:51 GMT; path=/; domain=localhost:8000; HttpOnly<br>
&gt;<br>
&gt; или<br>
&gt;<br>
&gt; Set-Cookie: phpbb3_5z63w_k=; expires=Wed, 10-Jun-2009 12:41:51 GMT;<br>
&gt; path=/forum;<br>
&gt;<br>
&gt; Получаем неверный domain и path.<br>
&gt;<br>
&gt;<br>
&gt; Как с этим бороться?<br>
<br>
</div></div>Либо править приложение (а phpbb в этом месте кривой, я уже пытался<br>
поправить), либо вешать apache (или что у вас там) на <a href="http://127.0.0.10:80" target="_blank">127.0.0.10:80</a> и<br>
педедавать Host в заголовке.<br>
<font color="#888888"><br>
--<br>
Vladimir Rusinov<br>
Voronezh, Russia<br>
UNIX Admin @ Murano Software<br>
</font></blockquote></div><br>