|
1 | 1 | ############################################
|
2 |
| -## overrides deployment configuration mode value |
3 |
| -## use command bin/magento deploy:mode:set to switch modes |
4 |
| - |
5 |
| -# SetEnv MAGE_MODE developer |
| 2 | +## Optional override of deployment mode. We recommend you use the |
| 3 | +## command bin/magento deploy:mode:set to switch modes instead |
| 4 | +# SetEnv MAGE_MODE default # or production or developer |
6 | 5 |
|
7 | 6 | ############################################
|
8 |
| -## uncomment these lines for CGI mode |
9 |
| -## make sure to specify the correct cgi php binary file name |
| 7 | +## Uncomment these lines for CGI mode. |
| 8 | +## Make sure to specify the correct cgi php binary file name |
10 | 9 | ## it might be /cgi-bin/php-cgi
|
11 | 10 |
|
12 | 11 | # Action php5-cgi /cgi-bin/php5-cgi
|
|
17 | 16 |
|
18 | 17 | # Options -MultiViews
|
19 | 18 |
|
20 |
| -## you might also need to add this line to php.ini |
| 19 | +## You might also need to add this line to php.ini |
21 | 20 | ## cgi.fix_pathinfo = 1
|
22 |
| -## if it still doesn't work, rename php.ini to php5.ini |
| 21 | +## If it still doesn't work, rename php.ini to php5.ini |
23 | 22 |
|
24 | 23 | ############################################
|
25 |
| -## this line is specific for 1and1 hosting |
| 24 | +## This line is specific for 1and1 hosting |
26 | 25 |
|
27 | 26 | #AddType x-mapp-php5 .php
|
28 | 27 | #AddHandler x-mapp-php5 .php
|
29 | 28 |
|
30 | 29 | ############################################
|
31 |
| -## default index file |
| 30 | +## Default index file |
32 | 31 |
|
33 | 32 | DirectoryIndex index.php
|
34 | 33 |
|
35 | 34 | <IfModule mod_php5.c>
|
36 | 35 |
|
37 | 36 | ############################################
|
38 |
| -## adjust memory limit |
| 37 | +## Adjust memory limit |
39 | 38 |
|
40 | 39 | php_value memory_limit 768M
|
41 | 40 | php_value max_execution_time 18000
|
42 | 41 |
|
43 | 42 | ############################################
|
44 |
| -## disable automatic session start |
| 43 | +## Disable automatic session start |
45 | 44 | ## before autoload was initialized
|
46 | 45 |
|
47 | 46 | php_flag session.auto_start off
|
48 | 47 |
|
49 | 48 | ############################################
|
50 |
| -## enable resulting html compression |
| 49 | +## Enable resulting html compression |
51 | 50 |
|
52 | 51 | #php_flag zlib.output_compression on
|
53 | 52 |
|
54 | 53 | ###########################################
|
55 |
| -## disable user agent verification to not break multiple image upload |
| 54 | +## Disable user agent verification to not break multiple image upload |
56 | 55 |
|
57 | 56 | php_flag suhosin.session.cryptua off
|
58 | 57 |
|
|
61 | 60 | <IfModule mod_php7.c>
|
62 | 61 |
|
63 | 62 | ############################################
|
64 |
| -## adjust memory limit |
| 63 | +## Adjust memory limit |
65 | 64 |
|
66 | 65 | php_value memory_limit 768M
|
67 | 66 | php_value max_execution_time 18000
|
68 | 67 |
|
69 | 68 | ############################################
|
70 |
| -## disable automatic session start |
| 69 | +## Disable automatic session start |
71 | 70 | ## before autoload was initialized
|
72 | 71 |
|
73 | 72 | php_flag session.auto_start off
|
74 | 73 |
|
75 | 74 | ############################################
|
76 |
| -## enable resulting html compression |
| 75 | +## Enable resulting html compression |
77 | 76 |
|
78 | 77 | #php_flag zlib.output_compression on
|
79 | 78 |
|
80 | 79 | ###########################################
|
81 |
| -## disable user agent verification to not break multiple image upload |
| 80 | +## Disable user agent verification to not break multiple image upload |
82 | 81 |
|
83 | 82 | php_flag suhosin.session.cryptua off
|
84 | 83 |
|
85 | 84 | </IfModule>
|
86 | 85 |
|
87 | 86 | <IfModule mod_security.c>
|
88 | 87 | ###########################################
|
89 |
| -## disable POST processing to not break multiple image upload |
| 88 | +## Disable POST processing to not break multiple image upload |
90 | 89 |
|
91 | 90 | SecFilterEngine Off
|
92 | 91 | SecFilterScanPOST Off
|
|
95 | 94 | <IfModule mod_deflate.c>
|
96 | 95 |
|
97 | 96 | ############################################
|
98 |
| -## enable apache served files compression |
| 97 | +## Enable apache served files compression |
99 | 98 | ## http://developer.yahoo.com/performance/rules.html#gzip
|
100 | 99 |
|
101 | 100 | # Insert filter on all content
|
|
123 | 122 | <IfModule mod_ssl.c>
|
124 | 123 |
|
125 | 124 | ############################################
|
126 |
| -## make HTTPS env vars available for CGI mode |
| 125 | +## Make HTTPS env vars available for CGI mode |
127 | 126 |
|
128 | 127 | SSLOptions StdEnvVars
|
129 | 128 |
|
130 | 129 | </IfModule>
|
131 | 130 |
|
132 | 131 | ############################################
|
133 |
| -## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other) |
| 132 | +## Workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other) |
134 | 133 | ## Please, set it on virtual host configuration level
|
135 | 134 |
|
136 | 135 | ## SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
|
139 | 138 | <IfModule mod_rewrite.c>
|
140 | 139 |
|
141 | 140 | ############################################
|
142 |
| -## enable rewrites |
| 141 | +## Enable rewrites |
143 | 142 |
|
144 | 143 | Options +FollowSymLinks
|
145 | 144 | RewriteEngine on
|
146 | 145 |
|
147 | 146 | ############################################
|
148 |
| -## you can put here your magento root folder |
| 147 | +## You can put here your magento root folder |
149 | 148 | ## path relative to web root
|
150 | 149 |
|
151 | 150 | #RewriteBase /magento/
|
152 | 151 |
|
153 | 152 | ############################################
|
154 |
| -## workaround for HTTP authorization |
| 153 | +## Workaround for HTTP authorization |
155 | 154 | ## in CGI environment
|
156 | 155 |
|
157 | 156 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
163 | 162 | RewriteRule .* - [L,R=405]
|
164 | 163 |
|
165 | 164 | ############################################
|
166 |
| -## redirect for mobile user agents |
| 165 | +## Redirect for mobile user agents |
167 | 166 |
|
168 | 167 | #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
|
169 | 168 | #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
|
170 | 169 | #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
|
171 | 170 |
|
172 | 171 | ############################################
|
173 |
| -## never rewrite for existing files, directories and links |
| 172 | +## Never rewrite for existing files, directories and links |
174 | 173 |
|
175 | 174 | RewriteCond %{REQUEST_FILENAME} !-f
|
176 | 175 | RewriteCond %{REQUEST_FILENAME} !-d
|
177 | 176 | RewriteCond %{REQUEST_FILENAME} !-l
|
178 | 177 |
|
179 | 178 | ############################################
|
180 |
| -## rewrite everything else to index.php |
| 179 | +## Rewrite everything else to index.php |
181 | 180 |
|
182 | 181 | RewriteRule .* index.php [L]
|
183 | 182 |
|
|
0 commit comments