nginx 的配置文件 default.conf server {listen 17878;server_name 192.168.10.1;#charset koi8-r;#access_log /var/log/nginx/log/host.access.log main;location /api/{proxy_pass http://192.168.10.1:18081/;}location / {root /usr/share/nginx/html;index index.html index.htm;try_files $uri $uri/...
chmod -R 777 /opt/tmp /opt/bak /opt/script /data/container/nginx/www /data/container/nginx/logs /data/container/nginx/etc 3、根据系统部署要求编写Nginx配置文件nginx.conf,以下是简单的配置方法,正常情况下https请求还需要配置ssl证书,还有ipv6配置等,后面详细讲解Nginx配置。一定要将修改后的nginx.conf文...