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