Advertisement
Guest User

Untitled

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