<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV>&nbsp;</DIV>
<DIV><BR class=webkit-block-placeholder></DIV>
<DIV>&gt;&gt; Почему nginx передает апачу запросы для домена <A 
href="http://www.ajaxline.com">www.ajaxline.com</A>, когда секция server задана 
только для <A href="http://naikonsoft.com">naikonsoft.com</A> и <A 
href="http://www.naikonsoft.com">www.naikonsoft.com</A>?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Потому что</DIV>
<DIV>"Если в запросе нет заголовка "Host" или же в нём указано имя, неописанное 
ни в одном сервере, слушающем на адресе и порту, на которые пришёл запрос, то 
запрос будет обслужен сервером, у которого первым описаны эти адрес и порт. 
"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Что и как раз наблюдается&nbsp;в Вашем случае.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://sysoev.ru/nginx/docs/virtual_hosts.html">http://sysoev.ru/nginx/docs/virtual_hosts.html</A></DIV>
<DIV>&nbsp;</DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=dmitry.leonenko@gmail.com 
  href="mailto:dmitry.leonenko@gmail.com">Дмитрий Леоненко</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=nginx-ru@sysoev.ru 
  href="mailto:nginx-ru@sysoev.ru">nginx-ru@sysoev.ru</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 11, 2007 11:54 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Видимо баг в debug режиме</DIV>
  <DIV><BR></DIV>Конфиг такой:
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>
  <DIV>nsserver eng # cat /etc/nginx/nginx.conf</DIV>
  <DIV>user nginx nginx;</DIV>
  <DIV>worker_processes 1;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>error_log /var/log/nginx/error_log info;</DIV>
  <DIV>events {</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;worker_connections &nbsp;8192;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;use epoll;</DIV>
  <DIV>}</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>http {</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;include &nbsp; &nbsp; &nbsp; &nbsp; 
  /etc/nginx/mime.types;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;default_type &nbsp; 
  &nbsp;application/octet-stream;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;log_format main</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;'$remote_addr - $remote_user [$time_local] ' </DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'"$request" 
  $status $bytes_sent '</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;'"$http_referer" "$http_user_agent" '</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;'"$gzip_ratio"'; </DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_header_timeout &nbsp; 10m;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_body_timeout &nbsp; &nbsp; 
  10m;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;send_timeout &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp;10m;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;connection_pool_size &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp;256;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_header_buffer_size &nbsp; &nbsp; 
  &nbsp; 1k;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;large_client_header_buffers &nbsp; 
  &nbsp; 4 2k;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;request_pool_size &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; 4k;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip on;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip_min_length 1100;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip_buffers &nbsp; &nbsp;4 8k;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip_types &nbsp; &nbsp; 
  &nbsp;text/plain;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;output_buffers &nbsp;1 32k;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;postpone_output 1460;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;sendfile &nbsp; &nbsp; &nbsp; 
  &nbsp;on;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;tcp_nopush &nbsp; &nbsp; &nbsp;on;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;tcp_nodelay &nbsp; &nbsp; on; </DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;keepalive_timeout &nbsp; &nbsp; &nbsp; 
  75 20;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ignore_invalid_headers &nbsp;on;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index index.html;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;server {</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listen 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<A 
  href="http://10.4.80.208">10.4.80.208</A>;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server_name 
  &nbsp; &nbsp; <A href="http://naikonsoft.com">naikonsoft.com</A> <A 
  href="http://www.naikonsoft.com">www.naikonsoft.com</A>;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;access_log 
  &nbsp; &nbsp; &nbsp;/var/log/nginx/www.naikonsoft.com.access_log main; </DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error_log 
  &nbsp; &nbsp; &nbsp; /var/log/nginx/www.naikonsoft.com.error_log;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error_log 
  &nbsp; &nbsp; &nbsp; /var/log/nginx/debug debug;</DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location / 
  {</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;proxy_pass &nbsp;<A 
  href="http://192.168.0.1">http://192.168.0.1</A>;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;proxy_redirect &nbsp; &nbsp; off;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;proxy_set_header &nbsp; X-Real-Ip &nbsp; &nbsp; &nbsp; 
  &nbsp;$remote_addr; </DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;proxy_set_header &nbsp; Host &nbsp; &nbsp; $host;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</DIV>
  <DIV>}</DIV><BR class=webkit-block-placeholder></DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV><BR class=webkit-block-placeholder></DIV>
  <DIV><FONT size=2></FONT><BR 
class=webkit-block-placeholder></DIV></BLOCKQUOTE></BODY></HTML>