mirror of
https://github.com/cottow/6paster.git
synced 2024-05-19 06:50:10 +00:00
Merge pull request #4 from nopedial/master
Add README.md file for nginx users
This commit is contained in:
19
nginx/README.md
Normal file
19
nginx/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
INSTALL
|
||||
|
||||
- Configure your NGINX web server with PHP FastCGI support.
|
||||
|
||||
- Add the server configuration example that you find at 'nginx/nginx-conf.txt' to your NGINX configuration file.
|
||||
|
||||
- Copy the 'nginx/index.php' to the 'webroot/' directory of your 6paster installation.
|
||||
|
||||
- Reload the NGINX process.
|
||||
|
||||
NOTES
|
||||
|
||||
- The content of 'webroot/.htaccess' is ignored by the web server.
|
||||
|
||||
|
||||
|
||||
Information: sam@arahant.net
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
6paster NGINX Server Configuration - info: sam@arahant.net
|
||||
|
||||
Add the configuration below to your 'nginx.conf' and reload the server:
|
||||
6paster NGINX Server Configuration
|
||||
----------------------------------
|
||||
|
||||
server {
|
||||
|
||||
@ -14,7 +13,7 @@ server {
|
||||
|
||||
location /p {
|
||||
rewrite ^/p/([a-z0-9]+)/?$ /index.php?p=$1 break;
|
||||
fastcgi_pass <127.0.0.1:9000> OR </tmp/php-socket>;
|
||||
fastcgi_pass <fastcgi_socket>; # example: 127.0.0.1:9000 or /tmp/php-socket
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME <www-document-root>/webroot$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
@ -22,7 +21,7 @@ server {
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass <127.0.0.1:9000> OR </tmp/php-socket>;
|
||||
fastcgi_pass <fastcgi_socket>; # example: 127.0.0.1:9000 or /tmp/php-socket
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME <www-document-root>/webroot$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
|
Reference in New Issue
Block a user