A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3060
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3060
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3060
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/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: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 3060
Function: parse_non_string_part

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 796
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 648
Function: getLists

File: /www/wwwroot/paste.wenyinos/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /www/wwwroot/paste.wenyinos/system/core/Exceptions.php:271)

Filename: view/rss.php

Line Number: 2

Backtrace:

File: /www/wwwroot/paste.wenyinos/themes/i386/views/view/rss.php
Line: 2
Function: header

File: /www/wwwroot/paste.wenyinos/application/core/MY_Loader.php
Line: 173
Function: include

File: /www/wwwroot/paste.wenyinos/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 653
Function: view

File: /www/wwwroot/paste.wenyinos/index.php
Line: 315
Function: require_once

玟茵开源社区代码粘贴板 玟茵开源社区代码粘贴板 http://paste.wenyinos.org/ en ImhxOGkdsTr http://paste.wenyinos.org/view/d6574384 Tue, 22 Jan 2019 16:50:09 +0800 eledsooizu http://paste.wenyinos.org/view/d6574384
  1. VHTz3G  <a href="http://qrhxhdfrvhjx.com/">qrhxhdfrvhjx</a>, [url=http://lgnkxuwrlfor.com/]lgnkxuwrlfor[/url], [link=http://delyiiieiszs.com/]delyiiieiszs[/link], http://jryzujjkgzkr.com/
]]>
JaMRyMklwEjxnnsb http://paste.wenyinos.org/view/f1f02986 Tue, 22 Jan 2019 13:37:22 +0800 jvzohltzuw http://paste.wenyinos.org/view/f1f02986
  1. PyET1S  <a href="http://oyvereeuftli.com/">oyvereeuftli</a>, [url=http://wnckjffxdulr.com/]wnckjffxdulr[/url], [link=http://zhhykscufmtm.com/]zhhykscufmtm[/link], http://uguwadjekuvu.com/
]]>
nSIgEBIYgDuyjAnfM http://paste.wenyinos.org/view/7694855d Mon, 21 Jan 2019 15:42:51 +0800 ypfxobkdzgy http://paste.wenyinos.org/view/7694855d
  1. bRMj1H  <a href="http://uhfdzsvrpdyd.com/">uhfdzsvrpdyd</a>, [url=http://menrexjkkidd.com/]menrexjkkidd[/url], [link=http://xudmgexxtwlt.com/]xudmgexxtwlt[/link], http://gwyhsodapxnk.com/
]]>
wVHJjgHvtcUyw http://paste.wenyinos.org/view/a429cc5b Tue, 07 Aug 2018 18:05:11 +0800 Judix http://paste.wenyinos.org/view/a429cc5b
  1. JUEgnS http://www.LnAJ7K8QSpfMO2wQ8gO.com
]]>
pTYgcVgqgwewtUrn http://paste.wenyinos.org/view/b3412b10 Sat, 12 May 2018 06:06:13 +0800 Judi http://paste.wenyinos.org/view/b3412b10
  1. f4jB7C https://www.genericpharmacydrug.com
]]>
未命名 http://paste.wenyinos.org/view/b424c311 Thu, 08 Mar 2018 12:47:51 +0800 haha http://paste.wenyinos.org/view/b424c311
]]>
未命名 http://paste.wenyinos.org/view/57e7d28e Tue, 06 Mar 2018 13:54:20 +0800 Chartreuse Lemur http://paste.wenyinos.org/view/57e7d28e
  1. int main(int argc, const char** argv) {
  2.   setvbuf(stdout, NULL, _IONBF, 0);
  3.   int portnum = 9988;
  4.   if (argc >= 2) {
  5.     portnum = atoi(argv[1]);
  6.   }
  7.   printf("Listening on port %d\n", portnum);
  8.   int sockfd = listen_inet_socket(portnum);
  9.   struct sockaddr_in peer_addr;
  10.   socklen_t peer_addr_len = sizeof(peer_addr);
  11.   int newsockfd = accept(sockfd, (struct sockaddr*)&peer_addr, &peer_addr_len);
  12.   if (newsockfd < 0) {
  13.     perror_die("ERROR on accept");
  14.   }
  15.   report_peer_connected(&peer_addr, peer_addr_len);
  16.   while (1) {
  17.     uint8_t buf[1024];
  18.     printf("Calling recv...\n");
  19.     int len = recv(newsockfd, buf, sizeof buf, 0);
  20.     if (len < 0) {
  21.       perror_die("recv");
  22.     } else if (len == 0) {
  23.       printf("Peer disconnected; I'm done.\n");
  24.       break;
  25.     }
  26.     printf("recv returned %d bytes\n", len);
  27.   }
  28.   close(newsockfd);
  29.   close(sockfd);
  30.   return 0;
  31. }
]]>
Shadowsocks http://paste.wenyinos.org/view/5c89769e Wed, 28 Feb 2018 21:30:42 +0800 jiangzemin http://paste.wenyinos.org/view/5c89769e
  1. {
  2.       "server": "host1.wenyinos.org",
  3.       "server_port": 8964,
  4.       "password": "fuckjiangze906500",
  5.       "method": "aes-256-cfb",
  6.       "plugin": "",
  7.       "plugin_opts": "",
  8.       "remarks": "",
  9.       "timeout": 5
  10.     }
  11.   ],
  12.   "strategy": null,
  13.   "index": 0,
  14.   "global": true,
  15.   "enabled": false,
  16.   "shareOverLan": false,
  17.   "isDefault": false,
  18.   "localPort": 1080,
  19.   "pacUrl": null,
  20.   "useOnlinePac": false,
  21.   "secureLocalPac": true,
  22.   "availabilityStatistics": false,
  23.   "autoCheckUpdate": true,
  24.   "checkPreRelease": false,
  25.   "isVerboseLogging": false,
  26.   "logViewer": {
  27.     "topMost": false,
  28.     "wrapText": false,
  29.     "toolbarShown": false,
  30.     "Font": "Consolas, 8pt",
  31.     "BackgroundColor": "Black",
  32.     "TextColor": "White"
  33.   },
  34.   "proxy": {
  35.     "useProxy": false,
  36.     "proxyType": 0,
  37.     "proxyServer": "",
  38.     "proxyPort": 0,
  39.     "proxyTimeout": 3
  40.   },
  41.   "hotkey": {
  42.     "SwitchSystemProxy": "",
  43.     "SwitchSystemProxyMode": "",
  44.     "SwitchAllowLan": "",
  45.     "ShowLogs": "",
  46.     "ServerMoveUp": "",
  47.     "ServerMoveDown": ""
  48.   }
]]>
stikked nginx config http://paste.wenyinos.org/view/2c1db5be Mon, 26 Feb 2018 19:04:31 +0800 jiangzemin http://paste.wenyinos.org/view/2c1db5be
  1.     server_name stikked.domain.tld;
  2.     root /var/www/stikked/htdocs;
  3.     index  index.php;
  4.  
  5. #   access_log /var/log/nginx/localhost.access_log combined;
  6. #   error_log /var/log/nginx/localhost.error_log info;
  7.  
  8.     location / {
  9.         try_files $uri /index.php;
  10.     }
  11.  
  12.     location ~ \.php$ {
  13.         return 444;
  14.     }
  15.  
  16.     location = /index.php {
  17.         # fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  18.         fastcgi_pass 127.0.0.1:9000;
  19.         fastcgi_split_path_info ^(.+\.php)(.*)$;
  20.         include fastcgi_params;
  21.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22.     }
  23. }
  24.  
  25. # alternatively:
  26.  
  27.     server_name stikked.domain;
  28.     root /var/www/vhosts/stikked.domain/httpdocs;
  29.     index index.php;
  30.  
  31.     error_log /var/log/nginx/stikked.domain.error.log;
  32.     access_log /var/log/nginx/stikked.domain.access.log;
  33.  
  34.     # no caching
  35.     expires 0;
  36.  
  37.     if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
  38.     {
  39.         rewrite ^/(.*)$ /index.php?/$1 last;
  40.         break;
  41.     }
  42.  
  43.     location ~* \.php$ {
  44.         include fastcgi_params;
  45.         fastcgi_pass unix://var/lib/php5/php5-fpm.sock;
  46.         fastcgi_split_path_info ^(.+\.php)(.*)$;
  47.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  48.     }
  49. }
]]>
界面 http://paste.wenyinos.org/view/a378de0c Mon, 26 Feb 2018 19:03:46 +0800 jiangzemin http://paste.wenyinos.org/view/a378de0c
  1. hhh
]]>
stikked nginx config http://paste.wenyinos.org/view/bb82ddc2 Mon, 26 Feb 2018 19:02:49 +0800 jiangzemin http://paste.wenyinos.org/view/bb82ddc2
  1.     server_name stikked.domain.tld;
  2.     root /var/www/stikked/htdocs;
  3.     index  index.php;
  4.  
  5. #   access_log /var/log/nginx/localhost.access_log combined;
  6. #   error_log /var/log/nginx/localhost.error_log info;
  7.  
  8.     location / {
  9.         try_files $uri /index.php;
  10.     }
  11.  
  12.     location ~ \.php$ {
  13.         return 444;
  14.     }
  15.  
  16.     location = /index.php {
  17.         # fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  18.         fastcgi_pass 127.0.0.1:9000;
  19.         fastcgi_split_path_info ^(.+\.php)(.*)$;
  20.         include fastcgi_params;
  21.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22.     }
  23. }
  24.  
  25. # alternatively:
  26.  
  27.     server_name stikked.domain;
  28.     root /var/www/vhosts/stikked.domain/httpdocs;
  29.     index index.php;
  30.  
  31.     error_log /var/log/nginx/stikked.domain.error.log;
  32.     access_log /var/log/nginx/stikked.domain.access.log;
  33.  
  34.     # no caching
  35.     expires 0;
  36.  
  37.     if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
  38.     {
  39.         rewrite ^/(.*)$ /index.php?/$1 last;
  40.         break;
  41.     }
  42.  
  43.     location ~* \.php$ {
  44.         include fastcgi_params;
  45.         fastcgi_pass unix://var/lib/php5/php5-fpm.sock;
  46.         fastcgi_split_path_info ^(.+\.php)(.*)$;
  47.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  48.     }
  49. }
]]>
stikked nginx config http://paste.wenyinos.org/view/f945d1b7 Mon, 26 Feb 2018 19:02:33 +0800 jiangzemin http://paste.wenyinos.org/view/f945d1b7
  1.     server_name stikked.domain.tld;
  2.     root /var/www/stikked/htdocs;
  3.     index  index.php;
  4.  
  5. #   access_log /var/log/nginx/localhost.access_log combined;
  6. #   error_log /var/log/nginx/localhost.error_log info;
  7.  
  8.     location / {
  9.         try_files $uri /index.php;
  10.     }
  11.  
  12.     location ~ \.php$ {
  13.         return 444;
  14.     }
  15.  
  16.     location = /index.php {
  17.         # fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  18.         fastcgi_pass 127.0.0.1:9000;
  19.         fastcgi_split_path_info ^(.+\.php)(.*)$;
  20.         include fastcgi_params;
  21.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22.     }
  23. }
  24.  
  25. # alternatively:
  26.  
  27.     server_name stikked.domain;
  28.     root /var/www/vhosts/stikked.domain/httpdocs;
  29.     index index.php;
  30.  
  31.     error_log /var/log/nginx/stikked.domain.error.log;
  32.     access_log /var/log/nginx/stikked.domain.access.log;
  33.  
  34.     # no caching
  35.     expires 0;
  36.  
  37.     if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
  38.     {
  39.         rewrite ^/(.*)$ /index.php?/$1 last;
  40.         break;
  41.     }
  42.  
  43.     location ~* \.php$ {
  44.         include fastcgi_params;
  45.         fastcgi_pass unix://var/lib/php5/php5-fpm.sock;
  46.         fastcgi_split_path_info ^(.+\.php)(.*)$;
  47.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  48.     }
  49. }
]]>