av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

Nginxhttp服務(wù)相關(guān)的配置文件

Nginx http服務(wù)配置文件有很多需要我們掌握的命令,下面我們就來詳細(xì)的看看有關(guān)的問題如何才能解決。只有不斷的學(xué)習(xí)才能更好的掌握有關(guān)的Nginx http服務(wù)配置的技巧。

創(chuàng)新互聯(lián)是一家專業(yè)提供沁源企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站制作、做網(wǎng)站、H5開發(fā)、小程序制作等業(yè)務(wù)。10年已為沁源眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站設(shè)計(jì)公司優(yōu)惠進(jìn)行中。

 
 
 
  1. user www www;
  2. worker_processes 5;
  3. error_log /var/nginx/logs/error.log;
  4. #error_log logs/error.log notice;
  5. #error_log logs/error.log info;
  6. pid /var/nginx/nginx.pid;
  7. events {
  8. use epoll;
  9. worker_connections 1024;
  10. }
  11. http {
  12. include mime.types;
  13. default_type application/octet-stream;
  14. root /var/www/htdocs/;
  15. log_format main '$remote_addr - $remote_user [$time_local] $request '
  16. '"$status" $body_bytes_sent "$http_referer" '
  17. '"$http_user_agent" "$http_x_forwarded_for"';
  18. access_log /var/nginx/logs/access.log main;
  19. sendfile on;
  20. tcp_nopush on;
  21. #keepalive_timeout 0;
  22. keepalive_timeout 65;
  23. gzip on;
  24. server {
  25. listen 80;
  26. server_name localhost;
  27. #charset koi8-r;
  28. access_log /var/nginx/logs/host.access.log main;
  29. location / {
  30. root /var/www/htdocs/;
  31. index index.html index.htm index.php;
  32. }
  33. error_page 404 /404.html;
  34. error_page 500 502 503 504 /50x.html;
  35. location = /50x.html {
  36. root /var/www/htdocs;
  37. }
  38. location ~ \.php$ {
  39. root html;
  40. fastcgi_pass 127.0.0.1:10005;
  41. fastcgi_index index.php;
  42. fastcgi_param SCRIPT_FILENAME /var/www/htdocs/$fastcgi_script_name;
  43. include fastcgi_params;
  44. }
  45. location ~ /\.ht {
  46. deny all;
  47. }
  48. }
  49. }

以上就是對Nginx http服務(wù)的詳細(xì)介紹,希望大家有所收獲。


本文題目:Nginxhttp服務(wù)相關(guān)的配置文件
本文鏈接:http://uogjgqi.cn/article/dhjjejj.html
掃二維碼與項(xiàng)目經(jīng)理溝通

我們在微信上24小時(shí)期待你的聲音

解答本文疑問/技術(shù)咨詢/運(yùn)營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流