nginx初体验
来源:互联网 发布:java 获取运行时间 编辑:程序博客网 时间:2024/06/07 03:58
从ng配置文件路径开始
nginx查看配置文件nginx.conf路径
http://webnoties.blog.163.com/blog/static/1835251412013918102554268/
里面内容如下:
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}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 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # 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 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 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; # } #}}
(总结)Nginx配置文件nginx.conf中文详解
http://www.ha97.com/5194.html#comment-600257
0 0
- nginx 初体验
- nginx初体验
- 10016---Nginx 初体验
- nginx模块开发初体验
- nginx 负载均衡 win7 入门初体验
- Tornado + supervisor + nginx 环境部署与初体验
- Nginx容器动态流量管理方案-nginx-upsync-module+nginx_upstream_check_module初体验
- Nginx容器动态流量管理方案-nginx-upsync-module+nginx_upstream_check_module初体验
- 腾讯云+Nginx初体验(腾讯云默认80端口不可用)
- [服务器] 体验 Nginx + PHP FastCGI + MySQL
- 初学Nginx(三)upstream初步体验
- 初体验
- 初体验
- 初体验
- 初体验
- 初体验
- 初体验
- 初体验
- iOS上应用如何兼容32位系统和64位系统
- Eclipse的单步调试
- 元素的大小
- 在CentOS安装pptpd以及部署
- C# 中的委托和事件
- nginx初体验
- 加速WEB访问:使用DNSmasq与squid代理并过滤广告
- Java开发中JDBC连接数据库的步骤
- HTML常用标签之文本标签
- 服务端架构中的“网关服务器”
- 笔记:Apache Chemistry OpenCMIS Client端开发2
- Spring MVC中@RequestMapping 6个基本用法小结
- 影响语音交互普及起来的心理因素有哪些?
- 看数据结构写代码(16)顺序队列的实现(循环队列)