Advertisement
Guest User

Untitled

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