日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
Nginxhttp服務(wù)相關(guān)的配置文件

Nginx http服務(wù)配置文件有很多需要我們掌握的命令,下面我們就來(lái)詳細(xì)的看看有關(guān)的問(wè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. }

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


本文名稱:Nginxhttp服務(wù)相關(guān)的配置文件
新聞來(lái)源:http://www.5511xx.com/article/dhjjejj.html