From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00, NORMAL_HTTP_TO_IP, SPF_PASS, URIBL_RHS_DOB, WEIRD_PORT autolearn=no version=3.2.5 From: Vitalik Salomatin To: community@lists.altlinux.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: 10.0.0.99 via proxy [81.89.95.114] Date: Fri, 24 Oct 2008 15:08:34 +0400 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: X-Spam: Not detected X-Mras: OK Subject: [Comm] =?koi8-r?b?QUxULTQuMCAgySBuZ2lueCAtIEZhc3QgSFRUUCBzZXJ2?= =?koi8-r?b?ZXI=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: Vitalik Salomatin , ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2008 11:08:36 -0000 Archived-At: List-Archive: List-Post: Установил из коробки nginx - Fast HTTP server apt-get instal nginx правлю, запускаю: service httpd stop; service nginx restart; service httpd start Пробую получать просто статические страницы захожу: http://10.0.0.1/ отвечает: 403 Forbidden nginx/0.5.20 http://10.0.0.1:81 - напрямую апач отвечает. Или nginx не проксирует на апач, либо апач не воспринимает nginx в /etc/nginx/nginx.conf добавил только IP адрес - не работает. Надо ли ставить еще какие пакеты? Какие точно изменения надо сделать и что точно прописать в конфиге? в логах: 2008/10/24 15:40:51 [error] 2409#0: *2 directory index of "/var/www/html/." is forbidden, client: 10.0.0.99, server: chel.ru, URL: "/", host: "10.0.0.1" Сам конфиг: ######################## worker_processes 10; error_log /var/log/nginx/error.log; events { worker_connections 1024; } http { proxy_temp_path /var/spool/nginx/tmp/proxy; fastcgi_temp_path /var/spool/nginx/tmp/fastcgi; client_body_temp_path /var/spool/nginx/tmp/client; include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; gzip on; # text/html don't need to be defined there, it always compressed gzip_types text/plain text/css text/xml application/x-javascript application/atom+xml; # gzip_comp_level 9; server { listen 10.0.0.1:80; server_name chelsi74.ru; location / { root /var/www/html/; index index.html index.htm index.shtml; # autoindex on; # autoindex_exact_size on; # autoindex_localtime on; # expires on; # cooperate with mod_realip in apache-1.3 or mod_rpaf in apache-2.x # proxy_redirect off; # proxy_set_header Host $host; # proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Forwarded-For $remote_addr; # proxy_pass http://127.0.0.1/; } # charset on; # source_charset koi8-r; access_log /var/log/nginx/access.log; } } ###################### Спасибо.