Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Субдомены и основной
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Субдомены и основной
- From: "n3wbie" <nginx-forum@xxxxxxxx>
- Date: Mon, 06 Dec 2010 21:36:20 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=8zSMXlJ1HuwvKUJ86MjPYSCQ9ZiOIPMNNN9mO9DLWQo=; b=OC5IOyOjE0HqRK3exuJ9lkYPJRjZu2EVhAfpk94OnwDwSLp1RFkl1tmsLAIsmN/L9k4wyZeiQZG9aoPn/Gbc0bq6MBkHM1ez7bz1t42JdZeA51HtR/0YngDAyf6D7ivI;
- In-reply-to: <20101207013848.GC54973@xxxxxxxxxx>
- References: <20101207013848.GC54973@xxxxxxxxxx>
Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
>
> Описать отдельный блок
> server{} и перестать мучиться.
>
> server {
> listen 80;
> server_name example.com;
> root /var/www/example.com/site;
>
> location / {
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> include fastcgi.conf;
> }
>
> location ~* \.(jpg|jpeg|gif|css|png|js|ico)$ {
> access_log off;
> }
> }
>
> Maxim Dounin
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
Я подозревал что всё просто. Но не знал
что можно делать несколько фактически
одинаковых блоков) Спасибо огромное)
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,156257,156287#msg-156287
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|