Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fac37b4

Browse files
authored
add simple markers for replacement (#61)
1 parent 5bcaa67 commit fac37b4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎magento2/conf_m2/maps.conf‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## Map php-fpm pass route
22
map $http_host $MAGE_PHP_ROUTE {
3-
default 127.0.0.1:9000; # production php-fpm
3+
default PHP_FPM_PLACEHOLDER;
44
}
55

66
map $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
2828
map $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
5555
map $http_host $MAGE_RUN_CODE {
5656
hostnames;
57-
.example.com default;
58-
.example.de de_DE;
57+
.DOMAIN_PLACEHOLDER default;
58+
.DOMAIN_PLACEHOLDER de_DE;
5959
}
6060

6161
map $http_host $MAGE_RUN_TYPE {
6262
hostnames;
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /