nginx centos 7 Posted on 2019-06-04 find server ip 1ip addr default directory 1/usr/share/nginx/html global configuration 1/etc/nginx/nginx.conf ss install https://www.4spaces.org/install-shadowsocks-on-centos-7/ shadow socks安装与配置 默认有防火墙,需要关闭 https://www.4spaces.org/centos-open-porter/ virtual host 1234567891011121314151617server { listen 80; listen [::]:80; root /guoshuang/demo; index index.html; server_name demo.guoshuang.com; access_log /var/log/nginx/demo.guoshuang.com.access.log; error_log /var/log/nginx/demo.guoshuang.com.error.log; location / { try_files $uri $uri/ =404; }}