系统Ubuntu16.04
在同一个IP有WordPress主页 所以想把ssmanager弄到8080端口
设置完主页可以正常显示,但是访问:8080端口的时候就显示不出ss-manager的页面
求指点
nginx default设置如下
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name 95.169.4.24;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
####以下部分为ss-manager页面###
server {
listen 80;
server_name 95.169.4.24;
rewrite ^ http://$server_name$request_uri? permanent;
}
server {
listen 443 ssl http2;
server_name 95.169.4.24;
ssl off;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8080;
}
webgui.yml设置如下:
type: m
manager:
address: 95.169.4.248:4001
password: '123456'
plugins:
flowSaver:
use: true
user:
use: true
account:
use: true
macAccount:
use: true
group:
use: true
email:
use: true
type: 'smtp'
username: 'example@qq.com'
password: 'example'
host: 'smtp.qq.com'
webgui:
use: true
host: '0.0.0.0'
port: '80'
site: 'http://95.169.4.24'
db: 'webgui.sqlite'