跳转到帖子
在手机APP中查看

一个更好的浏览方法。了解更多

PHP论坛人

主屏幕上的全屏APP,带有推送通知、徽章等。

在iOS和iPadOS上安装此APP
  1. 在Safari中轻敲分享图标
  2. 滚动菜单并轻敲添加到主屏幕
  3. 轻敲右上角的添加按钮。
在安卓上安装此APP
  1. 轻敲浏览器右上角的三个点菜单 (⋮) 。
  2. 轻敲添加到主屏幕安装APP
  3. 轻敲安装进行确认。

各種論壇的偽靜態

精选回复

发布于

各種論壇的偽靜態

---------------------
各種論壇的偽靜態
---------------------

建立偽靜態 rewrite 存放的目錄
mkdir -p /etc/nginx/rewrite


寫入各種論壇的偽靜態.conf
vi /etc/nginx/rewrite/各種論壇的偽靜態.conf

寫入論壇的偽靜態

ESC儲存並離開
:wq



接下來,也需要修改 域名.com.conf

vi /etc/nginx/sites-available/域名.com.conf


我放在這一行
include rewrite/ips.conf;

也就是修改為
include rewrite/各種論壇的偽靜態.conf;


ESC儲存並離開
:wq



---------------------------
IPS論壇的偽靜態
---------------------------

vi /etc/nginx/rewrite/ips.conf


location / {
        try_files  $uri $uri/ /index.php;
  }

location ~^(/page/).*(.php)$ {
    try_files  $uri $uri/ /index.php;
}

location /api/ {
  if (!-e $request_filename){
    rewrite ^/api/(.*)$ /api/index.php;
  }
}


ESC儲存並離開
:wq




------------------
重新載入Nginx
------------------

重新載入Nginx

nginx -t


nginx -s reload


有嚴重錯誤,將提示訊息


如果成功,則是以下的訊息
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

创建帐户或登录后发表意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.