显性 302 暂时重定向跳转server{ listen 80 ; server_name localhost; index index.html index.htm index.php; root /data/www;location / { rewrite ^/bb...
分类:
其他好文 时间:
2015-11-30 20:26:58
阅读次数:
116
nginx301跳转设置很简单,配置如下。 (配置文件默认为nginx.conf,如果制定了新的配置文件,在新的文件配置即可.)server{ server_name xxx.com www.xxx.com; rewrite ^/(.*) http://www.hablue.com/$1 ...
分类:
其他好文 时间:
2015-11-30 20:12:26
阅读次数:
115
1. 域名重定向server_name wx.he.com weixin.ha.com; if ($http_host !~* "wx\.he\.com"){ rewrite ^/(.*)$ http://wx.he.com/$1 permanent; ...
分类:
其他好文 时间:
2015-11-24 12:28:21
阅读次数:
104
1 server { 2 listen 8080; 3 server_name www.manihome.com ; 4 root "D:/WWW/mnmnh_2015"; 5 location / { 6 ...
分类:
其他好文 时间:
2015-11-21 15:47:14
阅读次数:
120
转自:http://blog.sina.com.cn/s/blog_5d73ba76010145rr.html首先看一个完整代码示例,关于nginx 301 302跳转的。301跳转设置:server {listen 80;server_name 123.com;rewrite ^/(.*) htt...
分类:
其他好文 时间:
2015-11-21 13:10:23
阅读次数:
102
server {listen 443;server_name app.tin.com;ssl on;ssl_certificate /usr/local/nginx/conf/1_app.tin.com_bundle.crt; #证书ssl_certificate_key /usr/local/ng...
分类:
其他好文 时间:
2015-11-14 16:18:26
阅读次数:
306
http{limit_req_zone $binary_remote_addr zone=req_one:10m rate=100r/s; server { listen 8080; server_name localhost; location /s...
分类:
其他好文 时间:
2015-11-13 20:42:41
阅读次数:
265
转载:http://www.nginx.cn/1134.htmlserver{ listen 80; server_name www.ci.oa.com; access_log /usr/local/services/nginx/logs/www.ci.oa...
分类:
其他好文 时间:
2015-11-06 16:13:18
阅读次数:
311
1、修改nginx.conf upstream nodejs { server 127.0.0.1:3000; #server 127.0.0.1:3001; keepalive 64;}server { listen 80; server_name www.isoft...
分类:
Web程序 时间:
2015-11-06 14:34:31
阅读次数:
255
设置位于nginx.conf: log_format main '$server_name$remote_addr-$remote_user[$time_local]"$request"$status$body_bytes_sent"$http_referer""$http_user_agen...
分类:
其他好文 时间:
2015-11-05 20:40:38
阅读次数:
242