Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。 server { listen 80; server_name 域名; location /{ root /www/文件目录;... ...
分类:
其他好文 时间:
2018-12-23 11:58:53
阅读次数:
204
[root@bogon conf.d]# cat /etc/nginx/conf.d/test6.conf server { listen 8085; server_name 192.168.0.204; #填写 ip 或者域名 index index.html index.htm default.... ...
分类:
其他好文 时间:
2018-12-16 14:44:10
阅读次数:
129
nginx部署php程序实例 cat /etc/nginx/conf.d/test.conf server { listen 80; server_name 192.168.0.204; index index.html index.htm default.html index.php; root ... ...
分类:
Web程序 时间:
2018-12-15 17:57:11
阅读次数:
212
1 server { 2 listen 8080; 3 server_name localhost; 4 5 #charset koi8-r; 6 charset utf-8; 7 8 #access_log logs/host.access.log main; 9 10 location / { ...
分类:
其他好文 时间:
2018-12-13 11:31:52
阅读次数:
202
首先安装tengine地址:http://tengine.taobao.org/https反向代理server{listen443;server_name域名;sslon;ssl_certificate/usr/local/....com.pem;ssl_certificate_key/usr/local/....com.key;location/{proxy_passhttp://123.456
分类:
其他好文 时间:
2018-12-12 19:10:48
阅读次数:
164
server { listen 90; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; proxy_set_header Host $host:$server_port; //需要加上,解决 ...
分类:
其他好文 时间:
2018-12-08 17:52:09
阅读次数:
298
server { listen 80; server_name t-cl.orangevip.com; rewrite ^(.*)$ https://$host$1 permanent;} server { listen 443; server_name t-cl.orangevip.com; ch ...
分类:
其他好文 时间:
2018-12-08 17:02:12
阅读次数:
200
1.首先确保机器上安装了openssl和openssl-devel #yum install openssl #yum install openssl-devel 2. server { listen 443 ssl; server_name vota.swmmotors.com.cn; ssl_c... ...
分类:
Web程序 时间:
2018-12-08 14:44:10
阅读次数:
227
cat >> /etc/nginx/conf.d/status.conf << EOF server{ listen 8085; server_name www.test2.com; location / { stub_status on; access_log /usr/local/nginx/l... ...
分类:
其他好文 时间:
2018-12-06 14:43:47
阅读次数:
265
[jenkins@izhp3dm57wb97s7h2n4bn6z ~]$ sudo cat >> /www/server/panel/vhost/nginx/status.conf > server{ > > listen 13350; > > server_name www.test2.com; ... ...
分类:
其他好文 时间:
2018-12-06 14:33:47
阅读次数:
186