-
-
Save abrcoelho/fe8dcf8bb8a0c485e5ad04548ff9b485 to your computer and use it in GitHub Desktop.
This file contains 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
server { | |
server_name mydomain.com www.mydomain.com; | |
set $MAGE_ROOT /var/www/mydomain.com/htdocs; | |
access_log /var/log/nginx/mydomain.com.access.log rt_cache; | |
error_log /var/log/nginx/mydomain.com.error.log; | |
root /var/www/mydomain.com/htdocs; | |
index index.php index.html index.htm; | |
include common/php7.conf; | |
include common/locations-php7.conf; | |
include /var/www/mydomain.com/conf/nginx/*.conf; | |
} |
This file contains 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
# Sample configuration: | |
# upstream fastcgi_backend { | |
# # use tcp connection | |
# # server 127.0.0.1:9000; | |
# # or socket | |
# server unix:/var/run/php5-fpm.sock; | |
# } | |
## Optional override of deployment mode. We recommend you use the | |
## command 'bin/magento deploy:mode:set' to switch modes instead. | |
## | |
## set $MAGE_MODE default; # or production or developer | |
## | |
## If you set MAGE_MODE in server config, you must pass the variable into the | |
## PHP entry point blocks, which are indicated below. You can pass | |
## it in using: | |
## | |
## fastcgi_param MAGE_MODE $MAGE_MODE; | |
## | |
## In production mode, you should uncomment the 'expires' directive in the /static/ location block | |
fastcgi_param MAGE_MODE $MAGE_MODE; | |
root $MAGE_ROOT/pub; |
Author
abrcoelho
commented
Apr 28, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment