ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vitalik Salomatin <chelroot74@mail.ru>
To: community@lists.altlinux.org
Subject: [Comm] ALT-4.0  и nginx - Fast HTTP server
Date: Fri, 24 Oct 2008 15:08:34 +0400
Message-ID: <E1KtKWw-000HCk-00.chelroot74-mail-ru@f177.mail.ru> (raw)

Установил из коробки 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;
        }

}


######################

Спасибо. 


             reply	other threads:[~2008-10-24 11:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 11:08 Vitalik Salomatin [this message]
2008-10-24 11:18 ` alisher
2008-10-24 11:22 ` Alexey Morsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1KtKWw-000HCk-00.chelroot74-mail-ru@f177.mail.ru \
    --to=chelroot74@mail.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git