A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

Untitled - Pastebin
Facebook
From Toxic Bee, 6 Years ago, written in nginx.
Embed
Download Paste or View Raw
Hits: 247
  1. upstream fastcgi_backend {
  2.    server  dockermagento2compose_php_1:9000;
  3. }
  4.  
  5.     listen 80;
  6.     server_name php-docker.local;
  7.     set $MAGE_ROOT /var/www/html;
  8.  
  9. root $MAGE_ROOT/pub;
  10.  
  11. charset UTF-8;
  12. error_page 404 403 = /errors/404.php;
  13.  
  14. location ~* ^/setup($|/) {
  15.     root $MAGE_ROOT;
  16.     location ~ ^/setup/index.php {
  17.         fastcgi_pass   fastcgi_backend;
  18.  
  19.         fastcgi_param  PHP_FLAG  "session.auto_start=off \n suhosin.session.cryptua=off";
  20.         fastcgi_param  PHP_VALUE "memory_limit=756M \n max_execution_time=600";
  21.         fastcgi_read_timeout 600s;
  22.         fastcgi_connect_timeout 600s;
  23.  
  24.         fastcgi_index  index.php;
  25.         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  26.         include        fastcgi_params;
  27.     }
  28.  
  29.     location ~ ^/setup/(?!pub/). {
  30.         deny all;
  31.     }
  32.  
  33.     location ~ ^/setup/pub/ {
  34.         add_header X-Frame-Options "SAMEORIGIN";
  35.     }
  36. }
  37.  
  38. # PHP entry point for update application
  39. location ~* ^/update($|/) {
  40.     root $MAGE_ROOT;
  41.  
  42.     location ~ ^/update/index.php {
  43.         fastcgi_split_path_info ^(/update/index.php)(/.+)$;
  44.         fastcgi_pass   fastcgi_backend;
  45.         fastcgi_index  index.php;
  46.         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  47.         fastcgi_param  PATH_INFO        $fastcgi_path_info;
  48.         include        fastcgi_params;
  49.     }
  50.  
  51.     # Deny everything but index.php
  52.     location ~ ^/update/(?!pub/). {
  53.         deny all;
  54.     }
  55.  
  56.     location ~ ^/update/pub/ {
  57.         add_header X-Frame-Options "SAMEORIGIN";
  58.     }
  59. }
  60.  
  61.     try_files $uri $uri/ /index.php$is_args$args;
  62. }
  63.  
  64. location /pub/ {
  65.     location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) {
  66.         deny all;
  67.     }
  68.     alias $MAGE_ROOT/pub/;
  69.     add_header X-Frame-Options "SAMEORIGIN";
  70. }
  71.  
  72. location /static/ {
  73.     # Uncomment the following line in production mode
  74.     # expires max;
  75.  
  76.     # Remove signature of the static files that is used to overcome the browser cache
  77.     location ~ ^/static/version {
  78.         rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last;
  79.     }
  80.  
  81.     location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
  82.         add_header Cache-Control "public";
  83.         add_header X-Frame-Options "SAMEORIGIN";
  84.         expires +1y;
  85.  
  86.         if (!-f $request_filename) {
  87.             rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
  88.         }
  89.     }
  90.     location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
  91.         add_header Cache-Control "no-store";
  92.         add_header X-Frame-Options "SAMEORIGIN";
  93.         expires    off;
  94.  
  95.         if (!-f $request_filename) {
  96.            rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
  97.         }
  98.     }
  99.     if (!-f $request_filename) {
  100.         rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
  101.     }
  102.     add_header X-Frame-Options "SAMEORIGIN";
  103. }
  104.  
  105. location /media/ {
  106.     try_files $uri $uri/ /get.php$is_args$args;
  107.  
  108.     location ~ ^/media/theme_customization/.*\.xml {
  109.         deny all;
  110.     }
  111.  
  112.     location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
  113.         add_header Cache-Control "public";
  114.         add_header X-Frame-Options "SAMEORIGIN";
  115.         expires +1y;
  116.         try_files $uri $uri/ /get.php$is_args$args;
  117.     }
  118.     location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
  119.         add_header Cache-Control "no-store";
  120.         add_header X-Frame-Options "SAMEORIGIN";
  121.         expires    off;
  122.         try_files $uri $uri/ /get.php$is_args$args;
  123.     }
  124.     add_header X-Frame-Options "SAMEORIGIN";
  125. }
  126.  
  127. location /media/customer/ {
  128.     deny all;
  129. }
  130.  
  131. location /media/downloadable/ {
  132.     deny all;
  133. }
  134.  
  135. location /media/import/ {
  136.     deny all;
  137. }
  138.  
  139. # PHP entry point for main application
  140. location ~ (index|get|static|report|404|503|health_check)\.php$ {
  141.     try_files $uri =404;
  142.     fastcgi_pass   fastcgi_backend;
  143.     fastcgi_buffers 1024 4k;
  144.  
  145.     fastcgi_param  PHP_FLAG  "session.auto_start=off \n suhosin.session.cryptua=off";
  146.     fastcgi_param  PHP_VALUE "memory_limit=756M \n max_execution_time=18000";
  147.  
  148.     fastcgi_index  index.php;
  149.     fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  150.     include        fastcgi_params;
  151. }
  152.  
  153. gzip on;
  154. gzip_disable "msie6";
  155.  
  156.     text/plain
  157.     text/css
  158.     text/js
  159.     text/xml
  160.     text/javascript
  161.     application/javascript
  162.     application/x-javascript
  163.     application/json
  164.     application/xml
  165.     application/xml+rss
  166.     image/svg+xml;
  167.  
  168. # Banned locations (only reached if the earlier PHP entry point regexes don't match)
  169. location ~* (\.php$|\.htaccess$|\.git) {
  170.     deny all;
  171. }
  172. }
  173.