Created
August 7, 2015 16:11
-
-
Save lnoering/e94878a2c2248c7c98ab to your computer and use it in GitHub Desktop.
Configuração do php-fpm com nginx.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## colocar em /etc/nginx | |
## php-fpm parsing | |
location ~ .php$ { | |
## Catch 404s that try_files miss | |
if (!-e $request_filename) { rewrite / /index.php last; } | |
## Disable cache for php files | |
expires off; | |
## php-fpm configuration | |
fastcgi_pass 127.0.0.1:9000; | |
#fastcgi_param HTTPS $fastcgi_https; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
## Store code is located at Administration > Configuration > Manage Stores in your magento Installation. | |
fastcgi_param MAGE_RUN_CODE default; | |
fastcgi_param MAGE_RUN_TYPE store; | |
## Tweak fastcgi buffers, just in case. | |
fastcgi_buffer_size 128k; | |
fastcgi_buffers 256 4k; | |
fastcgi_busy_buffers_size 256k; | |
fastcgi_temp_file_write_size 256k; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment