Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: try files


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: try files
  • From: Yuriy Taraday <yorik.sar@xxxxxxxxx>
  • Date: Fri, 30 Jul 2010 06:48:10 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=B8MiUzAhdr5cHNhzxFBo/4OUFhvRxo++Sx+ToPkJHIw=; b=o9D2aHXBal/UaAruc3Niv1tfUo+6fIGJZHOs4Vd3ZEjn5BOcLzarAz5wxoHPSeWcKO osRCnbcO++XV+Xq0yuBqJ6zJU7mF9zbAymAKW/xVRR2vyuiViBiNbm//XVSeC6rzt2gJ ecxFaaUDJoKAjd3Elfq+pAkHoEX3jRKoxLvv4=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=OuLDsXmez573pZspJA/46302tgHZIL+iMUTmS+r/6FDHm0yP5QRAtE1ynjPNV9uvUJ FbNfTN3pj2gp63w5HHj6SocRhdhJrui2Ze32WmAqdweSBDnJen/Ej2B/4SaunGDRmMJM r2WmdDYwNX/RU5vL4Brvaqo8C8F2LlmQjcXWo=
  • In-reply-to: <ab6967c5c89471a73e72aeb74be4ebda.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • References: <ab6967c5c89471a73e72aeb74be4ebda.NginxMailingListRussian@xxxxxxxxxxxxxxx>

try_files , root alias. location' try_files . , , .. - /usr/local/nginx/html.

2010/7/30 idrum <nginx-forum@xxxxxxxx>
: nginx/0.7.67, php-fpm ,php 5.2.13, codeigniter.
maintance.html, nginx

.
root /
nginx 403 ,
'index index.php' nginx
index.php.

:

[code]
user www;
worker_processes 1;
timer_resolution 100ms;
worker_rlimit_nofile 8192;
worker_priority -5;

pid /var/run/nginx.pid;

events {
worker_connections 2048;
use kqueue;
}

http {
include mime.types;
default_type application/octet-stream;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
server_tokens off;
client_max_body_size 10M;
charset utf-8;

upstream backend {
server unix:/tmp/fcgi.sock;
}

server {
listen 80;
server_name site.ru;


location / {

if ($host = 'www.site.ru' ) {
rewrite ^/(.*)$ http://site.ru/$1 permanent;
}

try_files /maintance.html $uri $uri/ @codeigniter;
}

location @codeigniter {
fastcgi_index index.php;
root /home/site.ru/data/www/site.ru;
include /usr/local/etc/nginx/fastcgi_params_copy;

fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param QUERY_STRING $uri;

fastcgi_pass backend;
}


error_page 404 /404.html;

location /404.html {
root
/home/site.ru/data/www/site.ru/system/application/views/errors/;
}

location ~* \.(jpeg|jpg|gif|png|css|js|ico)$ {
root /home/site.ru/data/www/site.ru/system/application;
}
}
}
[/code]

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,114641,114641#msg-114641


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.