11## Map php-fpm pass route
22map $http_host $MAGE_PHP_ROUTE {
3- default 127.0.0.1:9000; # production php-fpm
3+ default PHP_FPM_PLACEHOLDER;
44}
55
66map $http_host $MAGE_ROOT {
7- default "/var/www/html"; # production app folder
7+ default "MAGE_ROOT_PLACEHOLDER";
88}
99
1010## Map files to exclude from access log
@@ -27,7 +27,7 @@ map $request $writelog {
2727## CORS headers
2828map $http_origin $cors_origin {
2929 default "";
30- ~*.example.com $ "$http_origin";
30+ ~*.DOMAIN_PLACEHOLDER $ "$http_origin";
3131}
3232
3333## Location http auth
@@ -45,23 +45,23 @@ geo $block_cidr {
4545
4646## GEOIP routing
4747#map $geoip_country_code $geo_routing {
48- # default example.com ;
49- # RU example.com /shipping.html;
50- # US us.example.com ;
51- # AS as.example.com ;
48+ # default DOMAIN_PLACEHOLDER ;
49+ # RU DOMAIN_PLACEHOLDER /shipping.html;
50+ # US us.DOMAIN_PLACEHOLDER ;
51+ # AS as.DOMAIN_PLACEHOLDER ;
5252#}
5353
5454## Multi shop code configuration
5555map $http_host $MAGE_RUN_CODE {
5656hostnames;
57- .example.com default;
58- .example.de de_DE;
57+ .DOMAIN_PLACEHOLDER default;
58+ .DOMAIN_PLACEHOLDER de_DE;
5959}
6060
6161map $http_host $MAGE_RUN_TYPE {
6262hostnames;
63- .example.com store;
64- .example.de website;
63+ .DOMAIN_PLACEHOLDER store;
64+ .DOMAIN_PLACEHOLDER website;
6565}
6666
6767## Map good user agents
0 commit comments