Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed nginx config

  • Loading branch information...
commit 659d259d8c4cbc7f77f614d8628d845534608c9e 1 parent 70de2d7
@tenebrousedge tenebrousedge authored
View
7 en/installation/advanced-installation.rst
@@ -221,18 +221,19 @@ you will need PHP running as a FastCGI instance.
# root directive should be global
root /var/www/example.com/public/app/webroot/;
+ index index.php;
access_log /var/www/example.com/log/access.log;
error_log /var/www/example.com/log/error.log;
location / {
- index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ \.php$ {
- include /etc/nginx/fcgi.conf;
- fastcgi_pass 127.0.0.1:10005;
+ try_files $uri =404;
+ include /etc/nginx/fastcgi_params;
+ fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
View
15 es/installation/advanced-installation.rst
@@ -302,19 +302,22 @@ nginx es un servidor web que está ganando mucha popularidad. Igual que Lighttpd
server {
listen 80;
server_name example.com;
-
+
+ # root directive should be global
+ root /var/www/example.com/public/app/webroot/;
+ index index.php;
+
access_log /var/www/example.com/log/access.log;
error_log /var/www/example.com/log/error.log;
location / {
- root /var/www/example.com/public/app/webroot/;
- index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$uri&$args;
}
- location ~ .*\.php$ {
- include /etc/nginx/fcgi.conf;
- fastcgi_pass 127.0.0.1:10005;
+ location ~ \.php$ {
+ include /etc/nginx/fastcgi_params;
+ try_files $uri =404;
+ fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
View
23 fr/installation/advanced-installation.rst
@@ -295,30 +295,31 @@ vous aurez besoin de PHP fonctionnant comme une instance FastCGI.
server {
listen 80;
- server_name www.exemple.com;
- rewrite ^(.*) http://exemple.com$1 permanent;
+ server_name www.example.com;
+ rewrite ^(.*) http://example.com$1 permanent;
}
server {
listen 80;
- server_name exemple.com;
+ server_name example.com;
# root directive should be global
- root /var/www/exemple.com/public/app/webroot/;
-
- access_log /var/www/exemple.com/log/access.log;
- error_log /var/www/exemple.com/log/error.log;
+ root /var/www/example.com/public/app/webroot/;
+ index index.php;
+
+ access_log /var/www/example.com/log/access.log;
+ error_log /var/www/example.com/log/error.log;
location / {
- index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ \.php$ {
- include /etc/nginx/fcgi.conf;
- fastcgi_pass 127.0.0.1:10005;
+ include /etc/nginx/fastcgi_params;
+ try_files $uri =404;
+ fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/exemple.com/public/app/webroot$fastcgi_script_name;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
View
9 ja/installation/advanced-installation.rst
@@ -184,18 +184,19 @@ nginxはポピュラーなサーバーで、少ないシステムリソースで
# root directive should be global
root /var/www/example.com/public/app/webroot/;
-
+ index index.php;
+
access_log /var/www/example.com/log/access.log;
error_log /var/www/example.com/log/error.log;
location / {
- index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ \.php$ {
- include /etc/nginx/fcgi.conf;
- fastcgi_pass 127.0.0.1:10005;
+ include /etc/nginx/fastcgi_params;
+ try_files $uri =404;
+ fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
View
25 pt/installation/advanced-installation.rst
@@ -269,30 +269,27 @@ mas no mínimo, você irá precisar do PHP sendo executado como FastCGI.
server {
listen 80;
server_name example.com;
-
+
+ # root directive should be global
+ root /var/www/example.com/public/app/webroot/;
+ index index.php;
+
access_log /var/www/example.com/log/access.log;
error_log /var/www/example.com/log/error.log;
location / {
- root /var/www/example.com/public/app/webroot/;
- index index.php index.html index.htm;
- if (-f $request_filename) {
- break;
- }
- if (-d $request_filename) {
- break;
- }
- rewrite ^(.+)$ /index.php?q=$1 last;
+ try_files $uri $uri/ /index.php?$uri&$args;
}
- location ~ .*\.php[345]?$ {
- include /etc/nginx/fcgi.conf;
- fastcgi_pass 127.0.0.1:10005;
+ location ~ \.php$ {
+ include /etc/nginx/fastcgi_params;
+ try_files $uri =404;
+ fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
-
+
URL Rewrites no IIS7 (Windows hosts)
====================================
Please sign in to comment.
Something went wrong with that request. Please try again.