Linux???nginx??????????
???????????? ???????[ 2014/7/14 10:40:43 ] ??????????????? Linux ??????
????????????/usr/local/nginx????????
fastcgi.confkoi-winnginx.conf.default
fastcgi.conf.defaultlogsscgi_params
fastcgi_paramsmime.typesscgi_params.default
fastcgi_params.defaultmime.types.defaultuwsgi_params
htmlnginxuwsgi_params.default
koi-utfnginx.confwin-utf
|
????6.???
???????????80??????????????????????/usr/local/nginx/nginx?????????Nginx??
????netstat-ano|grep80
????????鯔?????????У??н??????????裨u(píng)buntu?±?????sudo??????????????????У?
????sudo/usr/local/nginx/nginx
?????????????????????IP??????????????Welcometonginx!????Nginx???????????г????
???????????????nginx???resin????tomcat??
????????????????????????
?????????????????
http{
upstreammgame-crm{
server10.10.0.103:9080;
server10.10.0.104:9080;
}
includemime.types;
default_typeapplication/octet-stream;
#log_formatmain'$remote_addr-$remote_user[$time_local]"$request"'
#'$status$body_bytes_sent"$http_referer"'
#'"$http_user_agent""$http_x_forwarded_for"';
#access_loglogs/access.logmain;
sendfileon;
#tcp_nopushon;
#keepalive_timeout0;
keepalive_timeout65;
#gzipon;
server{
listen80;
server_namelocalhost;
#charsetkoi8-r;
#access_loglogs/host.access.logmain;
location/{
roothtml;
indexindex.htmlindex.htm;
proxy_passhttp://mgame-crm;
proxy_redirectoff;
proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerHost$http_host;
access_logoff;
}
#error_page404/404.html;
#redirectservererrorpagestothestaticpage/50x.html
#
error_page500502503504/50x.html;
location=/50x.html{
roothtml;
}
#proxythePHPscriptstoApachelisteningon127.0.0.1:80
#
#location~.php${
#proxy_passhttp://127.0.0.1;
#}
#passthePHPscriptstoFastCGIserverlisteningon127.0.0.1:9000
#
#location~.php${
#roothtml;
#fastcgi_pass127.0.0.1:9000;
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11