排序
Xenforo Nginx Apache 靜態化
location ~ \.php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_...
宝塔环境下的BeDrive Nginx规则
location / { try_files $uri $uri/ /index.php?$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found ...
Openlitespeed WordPress .htaccess
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^/index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]...
PHP建议禁用的危险函数
PHP配置文件中的disable_functions选项能够在PHP中禁用指定的函数。PHP中有很多危险的内置功能函数,如果使用不当,可造成系统崩溃。禁用函数可能会为研发带来不便,但禁用的函数太少又可能增加...
Chevereto Nginx 伪静态规则
location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){...
Helpdesk Apache / Nginx静态化方法
Apache RewriteEngine ON RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] ErrorDocument 404 /404/ Nginx location / { index ...
宝塔 PHP遇到 ERROR: An another FPM instance seems to already listen on /tmp/php-cgi-73.sock
解决方法: php重启时报错 错误提示: ERROR: An another FPM instance seems to already listen on /tmp/php-cgi-73.sock 原因是另一个FPM实例似乎已经在/tmp/php-cgi-73.sock上进行侦听 解决...
php简单开启gzip压缩方法
打开php目录下的php.ini文件,找到zlib.output_compression = Off,改成zlib.output_compression = On, 再把;zlib.output_compression_level前面的;去掉,后面的-1改成1~5的数值。 这样便可以...