Advertisement
Guest User

Untitled

a guest
Nov 17th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.22 KB | None | 0 0
  1. ############################################
  2. ## overrides deployment configuration mode value
  3. ## use command bin/magento deploy:mode:set to switch modes
  4.  
  5. # SetEnv MAGE_MODE developer
  6.  
  7. ############################################
  8. ## uncomment these lines for CGI mode
  9. ## make sure to specify the correct cgi php binary file name
  10. ## it might be /cgi-bin/php-cgi
  11.  
  12. # Action php5-cgi /cgi-bin/php5-cgi
  13. # AddHandler php5-cgi .php
  14.  
  15. ############################################
  16. ## GoDaddy specific options
  17.  
  18. # Options -MultiViews
  19.  
  20. ## you might also need to add this line to php.ini
  21. ## cgi.fix_pathinfo = 1
  22. ## if it still doesn't work, rename php.ini to php5.ini
  23.  
  24. ############################################
  25. ## this line is specific for 1and1 hosting
  26.  
  27. #AddType x-mapp-php5 .php
  28. #AddHandler x-mapp-php5 .php
  29.  
  30. ############################################
  31. ## enable usage of methods arguments in backtrace
  32.  
  33. SetEnv MAGE_DEBUG_SHOW_ARGS 1
  34.  
  35. ############################################
  36. ## default index file
  37.  
  38. DirectoryIndex index.php
  39.  
  40. <IfModule mod_php5.c>
  41. ############################################
  42. ## adjust memory limit
  43.  
  44. php_value memory_limit 756M
  45. php_value max_execution_time 18000
  46.  
  47. ############################################
  48. ## disable automatic session start
  49. ## before autoload was initialized
  50.  
  51. php_flag session.auto_start off
  52.  
  53. ############################################
  54. ## enable resulting html compression
  55.  
  56. #php_flag zlib.output_compression on
  57.  
  58. ###########################################
  59. ## disable user agent verification to not break multiple image upload
  60.  
  61. php_flag suhosin.session.cryptua off
  62. </IfModule>
  63. <IfModule mod_php7.c>
  64. ############################################
  65. ## adjust memory limit
  66.  
  67. php_value memory_limit 3300M
  68. php_value max_execution_time 18000
  69.  
  70. ############################################
  71. ## disable automatic session start
  72. ## before autoload was initialized
  73.  
  74. php_flag session.auto_start off
  75.  
  76. ############################################
  77. ## enable resulting html compression
  78.  
  79. #php_flag zlib.output_compression on
  80.  
  81. ###########################################
  82. ## disable user agent verification to not break multiple image upload
  83.  
  84. php_flag suhosin.session.cryptua off
  85. </IfModule>
  86. <IfModule mod_security.c>
  87. ###########################################
  88. ## disable POST processing to not break multiple image upload
  89.  
  90. SecFilterEngine Off
  91. SecFilterScanPOST Off
  92. </IfModule>
  93.  
  94. <IfModule mod_deflate.c>
  95.  
  96. ############################################
  97. ## enable apache served files compression
  98. ## http://developer.yahoo.com/performance/rules.html#gzip
  99.  
  100. # Insert filter on all content
  101. ###SetOutputFilter DEFLATE
  102. # Insert filter on selected content types only
  103. #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
  104.  
  105. # Netscape 4.x has some problems...
  106. #BrowserMatch ^Mozilla/4 gzip-only-text/html
  107.  
  108. # Netscape 4.06-4.08 have some more problems
  109. #BrowserMatch ^Mozilla/4\.0[678] no-gzip
  110.  
  111. # MSIE masquerades as Netscape, but it is fine
  112. #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  113.  
  114. # Don't compress images
  115. #SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
  116.  
  117. # Make sure proxies don't deliver the wrong content
  118. #Header append Vary User-Agent env=!dont-vary
  119.  
  120. </IfModule>
  121.  
  122. <IfModule mod_ssl.c>
  123.  
  124. ############################################
  125. ## make HTTPS env vars available for CGI mode
  126.  
  127. SSLOptions StdEnvVars
  128.  
  129. </IfModule>
  130.  
  131. ############################################
  132. ## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
  133. ## Please, set it on virtual host configuration level
  134.  
  135. ## SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  136. ############################################
  137.  
  138. <IfModule mod_rewrite.c>
  139.  
  140. ############################################
  141. ## enable rewrites
  142.  
  143. Options +FollowSymLinks
  144. RewriteEngine on
  145.  
  146. ############################################
  147. ## you can put here your magento root folder
  148. ## path relative to web root
  149.  
  150. #RewriteBase /magento/
  151.  
  152. ############################################
  153. ## workaround for HTTP authorization
  154. ## in CGI environment
  155.  
  156. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  157.  
  158. ############################################
  159. ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
  160.  
  161. RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
  162. RewriteRule .* - [L,R=405]
  163.  
  164. ############################################
  165. ## redirect for mobile user agents
  166.  
  167. #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
  168. #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
  169. #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
  170.  
  171. ############################################
  172. ## never rewrite for existing files, directories and links
  173.  
  174. RewriteCond %{REQUEST_FILENAME} !-f
  175. RewriteCond %{REQUEST_FILENAME} !-d
  176. RewriteCond %{REQUEST_FILENAME} !-l
  177.  
  178. ############################################
  179. ## rewrite everything else to index.php
  180.  
  181. RewriteRule .* index.php [L]
  182.  
  183. #forceSSL
  184.  
  185. </IfModule>
  186.  
  187.  
  188. ############################################
  189. ## Prevent character encoding issues from server overrides
  190. ## If you still have problems, use the second line instead
  191.  
  192. AddDefaultCharset Off
  193. #AddDefaultCharset UTF-8
  194. AddType 'text/html; charset=UTF-8' html
  195.  
  196. <IfModule mod_expires.c>
  197.  
  198. ############################################
  199. ## Add default Expires header
  200. ## http://developer.yahoo.com/performance/rules.html#expires
  201.  
  202. ExpiresDefault "access plus 1 year"
  203. ExpiresByType text/html A0
  204. ExpiresByType text/plain A0
  205.  
  206. </IfModule>
  207.  
  208. ###########################################
  209. ## Deny access to root files to hide sensitive application information
  210. RedirectMatch 403 /\.git
  211.  
  212. <Files composer.json>
  213. <IfVersion < 2.4>
  214. order allow,deny
  215. deny from all
  216. </IfVersion>
  217. <IfVersion >= 2.4>
  218. Require all denied
  219. </IfVersion>
  220. </Files>
  221. <Files composer.lock>
  222. <IfVersion < 2.4>
  223. order allow,deny
  224. deny from all
  225. </IfVersion>
  226. <IfVersion >= 2.4>
  227. Require all denied
  228. </IfVersion>
  229. </Files>
  230. <Files .gitignore>
  231. <IfVersion < 2.4>
  232. order allow,deny
  233. deny from all
  234. </IfVersion>
  235. <IfVersion >= 2.4>
  236. Require all denied
  237. </IfVersion>
  238. </Files>
  239. <Files .htaccess>
  240. <IfVersion < 2.4>
  241. order allow,deny
  242. deny from all
  243. </IfVersion>
  244. <IfVersion >= 2.4>
  245. Require all denied
  246. </IfVersion>
  247. </Files>
  248. <Files .htaccess.sample>
  249. <IfVersion < 2.4>
  250. order allow,deny
  251. deny from all
  252. </IfVersion>
  253. <IfVersion >= 2.4>
  254. Require all denied
  255. </IfVersion>
  256. </Files>
  257. <Files .php_cs.dist>
  258. <IfVersion < 2.4>
  259. order allow,deny
  260. deny from all
  261. </IfVersion>
  262. <IfVersion >= 2.4>
  263. Require all denied
  264. </IfVersion>
  265. </Files>
  266. <Files .travis.yml>
  267. <IfVersion < 2.4>
  268. order allow,deny
  269. deny from all
  270. </IfVersion>
  271. <IfVersion >= 2.4>
  272. Require all denied
  273. </IfVersion>
  274. </Files>
  275. <Files CHANGELOG.md>
  276. <IfVersion < 2.4>
  277. order allow,deny
  278. deny from all
  279. </IfVersion>
  280. <IfVersion >= 2.4>
  281. Require all denied
  282. </IfVersion>
  283. </Files>
  284. <Files COPYING.txt>
  285. <IfVersion < 2.4>
  286. order allow,deny
  287. deny from all
  288. </IfVersion>
  289. <IfVersion >= 2.4>
  290. Require all denied
  291. </IfVersion>
  292. </Files>
  293. <Files Gruntfile.js>
  294. <IfVersion < 2.4>
  295. order allow,deny
  296. deny from all
  297. </IfVersion>
  298. <IfVersion >= 2.4>
  299. Require all denied
  300. </IfVersion>
  301. </Files>
  302. <Files LICENSE.txt>
  303. <IfVersion < 2.4>
  304. order allow,deny
  305. deny from all
  306. </IfVersion>
  307. <IfVersion >= 2.4>
  308. Require all denied
  309. </IfVersion>
  310. </Files>
  311. <Files LICENSE_AFL.txt>
  312. <IfVersion < 2.4>
  313. order allow,deny
  314. deny from all
  315. </IfVersion>
  316. <IfVersion >= 2.4>
  317. Require all denied
  318. </IfVersion>
  319. </Files>
  320. <Files nginx.conf.sample>
  321. <IfVersion < 2.4>
  322. order allow,deny
  323. deny from all
  324. </IfVersion>
  325. <IfVersion >= 2.4>
  326. Require all denied
  327. </IfVersion>
  328. </Files>
  329. <Files package.json>
  330. <IfVersion < 2.4>
  331. order allow,deny
  332. deny from all
  333. </IfVersion>
  334. <IfVersion >= 2.4>
  335. Require all denied
  336. </IfVersion>
  337. </Files>
  338. <Files php.ini.sample>
  339. <IfVersion < 2.4>
  340. order allow,deny
  341. deny from all
  342. </IfVersion>
  343. <IfVersion >= 2.4>
  344. Require all denied
  345. </IfVersion>
  346. </Files>
  347. <Files README.md>
  348. <IfVersion < 2.4>
  349. order allow,deny
  350. deny from all
  351. </IfVersion>
  352. <IfVersion >= 2.4>
  353. Require all denied
  354. </IfVersion>
  355. </Files>
  356. <Files magento_umask>
  357. <IfVersion < 2.4>
  358. order allow,deny
  359. deny from all
  360. </IfVersion>
  361. <IfVersion >= 2.4>
  362. Require all denied
  363. </IfVersion>
  364. </Files>
  365. <Files auth.json>
  366. <IfVersion < 2.4>
  367. order allow,deny
  368. deny from all
  369. </IfVersion>
  370. <IfVersion >= 2.4>
  371. Require all denied
  372. </IfVersion>
  373. </Files>
  374. <Files .user.ini>
  375. <IfVersion < 2.4>
  376. order allow,deny
  377. deny from all
  378. </IfVersion>
  379. <IfVersion >= 2.4>
  380. Require all denied
  381. </IfVersion>
  382. </Files>
  383.  
  384. # For 404s and 403s that aren't handled by the application, show plain 404 response
  385. ErrorDocument 404 /pub/errors/404.php
  386. ErrorDocument 403 /pub/errors/404.php
  387.  
  388. ################################
  389. ## If running in cluster environment, uncomment this
  390. ## http://developer.yahoo.com/performance/rules.html#etags
  391.  
  392. #FileETag none
  393.  
  394. # ######################################################################
  395. # # INTERNET EXPLORER #
  396. # ######################################################################
  397.  
  398. # ----------------------------------------------------------------------
  399. # | Document modes |
  400. # ----------------------------------------------------------------------
  401.  
  402. # Force Internet Explorer 8/9/10 to render pages in the highest mode
  403. # available in the various cases when it may not.
  404. #
  405. # https://hsivonen.fi/doctype/#ie8
  406. #
  407. # (!) Starting with Internet Explorer 11, document modes are deprecated.
  408. # If your business still relies on older web apps and services that were
  409. # designed for older versions of Internet Explorer, you might want to
  410. # consider enabling `Enterprise Mode` throughout your company.
  411. #
  412. # https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
  413. # http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx
  414.  
  415. <IfModule mod_headers.c>
  416.  
  417. Header set X-UA-Compatible "IE=edge"
  418.  
  419. # `mod_headers` cannot match based on the content-type, however,
  420. # the `X-UA-Compatible` response header should be send only for
  421. # HTML documents and not for the other resources.
  422.  
  423. <FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
  424. Header unset X-UA-Compatible
  425. </FilesMatch>
  426.  
  427. </IfModule>
  428.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement