#user  nobody;
worker_processes ; #error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info; #pid logs/nginx.pid; events {
worker_connections ;
} http {
include mime.types;
default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on;
#tcp_nopush on; #keepalive_timeout ;
keepalive_timeout ; #gzip on; upstream ly.com{
server 192.168.1.211: weight=;
server 192.168.1.211: weight=;
server 192.168.1.211: weight=;
} server {
listen ;
server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / {
#root html;
#index index.html index.htm;
proxy_pass http://ly.com;
proxy_redirect default;
} location /status {
stub_status on;
access_log /nginx/logs/status.log;
auth_basic "NginxStatus";
} #error_page /.html; # redirect server error pages to the static page /50x.html
#
error_page /50x.html;
location = /50x.html {
root html;
} # proxy the PHP scripts to Apache listening on 127.0.0.1:
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#} # deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
} # another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen ;
# listen somename:;
# server_name somename alias another.alias; # location / {
# root html;
# index index.html index.htm;
# }
#} # HTTPS server
#
#server {
# listen ssl;
# server_name localhost; # ssl_certificate cert.pem;
# ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on; # location / {
# root html;
# index index.html index.htm;
# }
#} }

最新文章

  1. JAVA SSH 框架介绍
  2. mindmup-editabletable-编辑table的使用
  3. mapreduce 本地调试需要注意的问题
  4. Apache Common DbUtils
  5. Cobar使用文档(可用作MySQL大型集群解决方案)
  6. Python函数,参数,变量
  7. How to find and fix Bash Shell-shock vulnerability CVE-2014-6271 in unix like system
  8. iOS自定义发送消息输入框
  9. [设计模式]<<设计模式之禅>>模板方法模式
  10. 基于Cloudera Manager5配置HIVE压缩
  11. 【转】RTSP流理解
  12. A Simple Problem with Integers(100棵树状数组)
  13. PHP简易计算器方法2
  14. 我在网站开发中经常用到的几个js函数01
  15. UITableView 之 取消选中
  16. GoLang simple-project-demo-01
  17. 20181125第二章节总结part3
  18. 字符串数据结构模板/题单(后缀数组,后缀自动机,LCP,后缀平衡树,回文自动机)
  19. java框架之Spring(2)-注解配置IOC&AOP配置
  20. oracle 之 基础操作

热门文章

  1. Oracle学习笔记(五)
  2. jmeter 性能分析 (一点点加)
  3. java并发编程工具类辅助类:CountDownLatch、CyclicBarrier和 Semaphore
  4. windows下C++操作MySQL数据库
  5. GPU的历史:从固定管线到可编程管线再到通用计算平台
  6. mysql查看数据库性能常用命令
  7. WebApi 插件式构建方案:IOC 容器初始化
  8. Varnish 学习资料收集
  9. Solr相似度算法三:DRFSimilarity框架介绍
  10. UWP开发砸手机系列(二)—— “讲述人”识别自定义控件Command