赞
踩
启动之后浏览器输入:localhost:8080能看到下面画面即可。
例如:
- server {
- listen 8080;
- server_name localhost;
-
- location / {
- root html;
- index index.html index.htm;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
-
-
- }
- server {
- listen 9000;
- server_name www.other.com;
-
- location / {
- proxy_pass http://127.0.0.1:8080;
- root /usr/local/var/www/;
- index index.html index.htm;
- }
-
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。