Jump to content
View in the app

A better way to browse. Learn more.

乾坤堂社区

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nginx同时配置多个二级站点

Featured Replies

  • Administrators

修改nginx.conf配置文件,在 location / { }节点 或者是 location [安装目录名称] / { }(子目录安装)节点间加入上述规则。

如果用的宝塔,直接在伪静态那里选择对应程序,然后修改二级目录地方即可。以下为zblog的伪静态配置。

主域名
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){
 rewrite (.*) /index.php;
}
}
二级目录
location /a/ {
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){
    rewrite (.*) /a/index.php;
}
}

成长就是不断打破并重建三观

  • Views 117
  • Created
  • Last Reply

Create an account or sign in to comment

Account

Navigation

Search

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.