A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/code.nat.moe/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/code.nat.moe/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/code.nat.moe/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/code.nat.moe/application/models/Pastes.php
Line: 522
Function: syntax

File: /var/www/code.nat.moe/application/controllers/Main.php
Line: 697
Function: getPaste

File: /var/www/code.nat.moe/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/code.nat.moe/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/code.nat.moe/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /var/www/code.nat.moe/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/code.nat.moe/application/models/Pastes.php
Line: 522
Function: syntax

File: /var/www/code.nat.moe/application/controllers/Main.php
Line: 697
Function: getPaste

File: /var/www/code.nat.moe/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/code.nat.moe/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/code.nat.moe/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/code.nat.moe/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/code.nat.moe/application/models/Pastes.php
Line: 522
Function: syntax

File: /var/www/code.nat.moe/application/controllers/Main.php
Line: 697
Function: getPaste

File: /var/www/code.nat.moe/index.php
Line: 315
Function: require_once

Nginx proxy for zhwiki - nat-code

Nginx proxy for zhwiki

From NAT, 6 Years ago, written in nginx, viewed 712 times.
URL https://code.nat.moe/view/edeea5b1 Embed
Download Paste or View Raw
  1. {
  2.     listen 443;
  3.     listen [::]:443;
  4.     server_name zhwiki.nat.moe;
  5.  
  6.     ssl on;
  7.     ssl_certificate /etc/letsencrypt/live/nat.moe/fullchain.pem;
  8.     ssl_certificate_key /etc/letsencrypt/live/nat.moe/privkey.pem;
  9.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  10.  
  11.     location / {
  12.         proxy_set_header   X-Real-IP  $remote_addr;
  13.         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
  14.         proxy_set_header   Host zh.wikipedia.org;
  15.         proxy_pass https://zh.wikipedia.org;
  16.  
  17.         subs_filter upload.wikimedia.org static-zhwiki.nat.moe;
  18.  
  19.         proxy_set_header Accept-Encoding "";
  20.     }
  21.  
  22.     access_log /var/log/nginx/zhwiki_mirror.log;
  23. }
  24.  
  25. {
  26.     listen 443;
  27.     listen [::]:443;
  28.     server_name static-zhwiki.nat.moe;
  29.  
  30.     ssl on;
  31.     #ssl_certificate /root/ssl/moe/nat.moe.crt;
  32.     #ssl_certificate_key /root/ssl/moe/nat.moe.key;
  33.     ssl_certificate /etc/letsencrypt/live/nat.moe/fullchain.pem;
  34.     ssl_certificate_key /etc/letsencrypt/live/nat.moe/privkey.pem;
  35.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  36.  
  37.     access_log off;
  38.     location / {
  39.         proxy_set_header   X-Real-IP  $remote_addr;
  40.         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
  41.         proxy_set_header   Host upload.wikimedia.org;
  42.         proxy_pass https://upload.wikimedia.org;
  43.        
  44.         proxy_set_header Accept-Encoding "";
  45.     }
  46. }

Reply to "Nginx proxy for zhwiki"

Here you can reply to the paste above

captcha