-
宝塔环境下的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 off; } access_log of...- 375
- 0
-
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_name; } location /co...- 447
- 0
-
Nginx环境下magento2实行静态化的方法
location / { index index.html index.php; ## Allow a static html file to be shown first try_files $uri $uri/ @handler; expires 30d; } location /var/export/ { ## Allow admins only to view export folder ...- 696
- 0
-
Nginx环境下安装Cloudreve实行静态化的方法
对于Nginx服务器,以下是一个可供参考的配置 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } 如果你的应用安装在二级目录,Nginx的伪静态方法设置如下,其中youdomain的英文所在的目录名称。 location /youdomain/ { if (!-e $...- 908
- 0
-
利用JavaScript实现强制重定向至HTTPS页面
有时候需要把网页强制切换成HTTPS,即使用户已经访问了HTTP的版本。原因可能是你不想让用户使用HTTP来访问,因为它不安全。 要做到这个很简单,如果不想用PHP或者Apache的mod_rewrite来做这件事,用Javascript也可以。 代码如下: <script type="text/javascript"> var targetProtocol = &...- 749
- 0
❯
搜索
掃碼打開當前頁
返回頁首
幸運之星正在降臨...
點擊領取今天的簽到獎勵!
恭喜!您今天獲得了{{mission.data.mission.credit}}積分
我的優惠劵
-
¥優惠劵使用時效:無法使用使用時效:
之前
使用時效:永久有效優惠劵ID:×
沒有優惠劵可用!