This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream redis { | |
| server 127.0.0.1:6379; | |
| keepalive 512; | |
| } | |
| server { | |
| listen 80; | |
| server_name www.mf8.biz mf8.biz; | |
| access_log off; | |
| index index.html index.htm index.php; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # on 启用,off 关闭 | |
| pagespeed on; | |
| # 重置 http Vary 头 | |
| pagespeed RespectVary on; | |
| # html字符转小写 | |
| pagespeed LowercaseHtmlNames on; | |
| # 压缩带 Cache-Control: no-transform 标记的资源 | |
| pagespeed DisableRewriteOnNoTransform off; | |
| # 相对URL | |
| pagespeed PreserveUrlRelativity on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location / { | |
| try_files $uri $uri/ /index.php?$args; | |
| } | |
| rewrite /wp-admin$ $scheme://$host$uri/ permanent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # init_centos shell | |
| #安装说明参见 https://sadsu.com/?p=266 | |
| #----------------------------------------------------------# | |
| # Variables&Functions # | |
| #----------------------------------------------------------# | |
| red='\033[0;31m' | |
| green='\033[0;32m' | |
| yellow='\033[0;33m' | |
| plain='\033[0m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| server_name localhost; | |
| location / { | |
| proxy_pass http://127.0.0.1:9000; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| server_name localhost; | |
| location / { | |
| proxy_pass http://127.0.0.1:2368; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| proxy_set_header X-Forwarded-For $remote_addr; | |
| location / { | |
| proxy_pass http://127.0.0.1:9000; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## '#'开头为注释内容, 选项都有相应的注释说明, 根据需要修改 ## | |
| ## 被注释的选项填写的是默认值, 建议在需要修改时再取消注释 ## | |
| ## 文件保存相关 ## | |
| # 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置 | |
| dir=/home/wwwroot/ | |
| # 启用磁盘缓存, 0为禁用缓存, 需1.16以上版本, 默认:16M | |
| #disk-cache=32M | |
| # 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [program:leanote] | |
| command=/bin/bash /root/leanote/bin/run.sh | |
| autostart=true | |
| autorestart=true | |
| user=root | |
| log_stderr=true | |
| logfile=/var/log/leanote.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [litespeed] | |
| name=LiteSpeed Tech Repository for CentOS $releasever - $basearch | |
| baseurl=http://rpms.litespeedtech.com/centos/7/$basearch/ | |
| failovermethod=priority | |
| enabled=1 | |
| gpgcheck=1 | |
| gpgkey=http://rpms.litespeedtech.com/centos/RPM-GPG-KEY-litespeed | |
| [litespeed-update] | |
| name=LiteSpeed Tech Repository for CentOS $releasever - $basearch |