-
Solo 文件上传配置
2018-08-28 18:00嗯嗯,弄好了,原因是 nginx 文件夹里不知怎么回事多出了一个 upload 文件夹,和请求名重复了。对了,我保存在草稿里的文章为何改完点击发布后一直无法提交,点击一次发布左上角就显示一下载入中...然后这三个字就消失了,页面也没跳转还停留在当前页面
-
Solo 文件上传配置
2018-08-24 17:23nginx 配置了 https,然后通过 proxy_pass 做端口转发到 tomcat 的 8080 端口
server { listen 443; server_name www.heroneverdie.com; access_log /data/wwwlogs/access_nginx.log combined; root /data/wwwroot/default; index index.html index.htm index.jsp; #error_page 404 /404.html; #error_page 502 /502.html; ssl on; ssl_certificate 1_www.heroneverdie.com_bundle.crt; ssl_certificate_key 2_www.heroneverdie.com.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置 ssl_prefer_server_ciphers on; location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ { proxy_pass http://127.0.0.1:8080; expires 30d; access_log off; } location ~ .*\.(js|css)?$ { proxy_pass http://127.0.0.1:8080; expires 7d; access_log off; } location ~ { proxy_pass http://127.0.0.1:8080; include proxy.conf; } location ~ /\.ht { proxy_pass http://127.0.0.1:8080; } } ########################## vhost ############################# include vhost/*.conf; }