1
|
“2016
/05/03
10:20:51 [emerg] 20952
#0: unexpected "}" in /usr/local/nginx/conf/nginx.conf:87”
|
1
|
2016
/05/03
10:23:01 [emerg] 21023
#0: "root" directive is duplicate in /usr/local/nginx/conf/nginx.conf:86
|
1
|
2016
/05/03
10:23:31 [notice] 21045
#0: signal process started
|
1
|
nginx: [alert] could not
open
error log
file
:
open
()
"/usr/local/nginx/logs/error.log"
failed (13:Permissiondenied)
|
1
|
nginx: [error]
open
()
"/usr/local/nginx/logs/nginx.pid"
failed (2: No such
file
or directory)
|
1
2
|
listen 80;
listen [::]:80 default_server;
|
1
2
|
listen 80;
listen [::]:80 ipv6only=on default_server;
|
1
2
3
4
5
6
7
|
location / {
if
($http_usr_agent ~ MSIE) {
#如果用户使用的浏览器匹配ie的话
rewrite ^.*$
/ie
.html;
#ie用户会rewrite到/usr/local/nginx/html/ie.html里
}
root
/usr/local/nginx/html
;
#非ie用户就是访问/usr/local/nginx/html的index.html界面
index index.html
}
|
1
2
3
4
5
6
7
8
|
location / {
if
($http_usr_agent ~ MSIE) {
#如果用户使用的浏览器匹配ie的话
rewrite ^.*$
/ie
.html;
#ie用户会rewrite到/usr/local/nginx/html/ie.html里
break
;
}
root
/usr/local/nginx/html
;
#非ie用户就是访问/usr/local/nginx/html的index.html界面
index index.html
}
|