激情久久久_欧美视频区_成人av免费_不卡视频一二三区_欧美精品在欧美一区二区少妇_欧美一区二区三区的

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導(dǎo)航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術(shù)|正則表達式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務(wù)器之家 - 編程語言 - PHP教程 - ThinkPHP 在阿里云上的nginx.config配置實例詳解

ThinkPHP 在阿里云上的nginx.config配置實例詳解

2021-07-01 16:55張揚個性,敢為天下先 PHP教程

這篇文章主要介紹了ThinkPHP 在阿里云上的nginx.config配置實例詳解,需要的朋友可以參考下

ThinkPHP 在阿里云上的nginx.config配置實例詳解

具體代碼如下所示:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# For more information on configuration, see:
#  * Official English Documentation: http://nginx.org/en/docs/
#  * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
  worker_connections 1024;
}
http {
  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 /var/log/nginx/access.log main;
  sendfile      on;
  tcp_nopush     on;
  tcp_nodelay     on;
  keepalive_timeout  65;
  types_hash_max_size 2048;
  include       /etc/nginx/mime.types;
  default_type    application/octet-stream;
  # Load modular configuration files from the /etc/nginx/conf.d directory.
  # See http://nginx.org/en/docs/ngx_core_module.html#include
  # for more information.
  include /etc/nginx/conf.d/*.conf;
  server {
    listen    80 default_server;
    listen    [::]:80 default_server;
    server_name _;
    root     /usr/share/nginx/html;
    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf;
    location / {
       #try_files $uri $uri/ /index.php;
       root  /usr/share/nginx/html;
       index index.php index.html index.htm;
       if (!-e $request_filename) {  rewrite ^(.*)$ /index.php?s=$1 last;  break;  }
    }     
    # redirect server error pages to the static page /40x.html
    #
    error_page 404       /404.html;    
    location = /40x.html {
    }
    # redirect server error pages to the static page /50x.html
    #
    error_page  500 502 503 504 /50x.html;
    location = /50x.html {
    }
    location ~ \.php$ {
    root      /usr/share/nginx/html;
    fastcgi_pass  127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include    fastcgi_params;
    }
    location ~ /\.ht {
    deny all;
    }
  }
}

總結(jié)

以上所述是小編給大家介紹的ThinkPHP 在阿里云上的nginx.config配置實例詳解,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對服務(wù)器之家網(wǎng)站的支持!

原文鏈接:http://www.cnblogs.com/zgaspnet/archive/2017/10/10/7646469.html

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 91成人免费版 | 日日操夜 | 999av视频 | 摸逼逼视频 | 欧美成人一区免费视频 | 色就色 综合偷拍区91网 | 久章草在线观看 | 康妮卡特欧美精品一区 | 欧美日韩电影 | av电影在线免费 | 中文字幕涩涩久久乱小说 | 国产免费一区二区三区视频 | 在线无码 | 一级黄色毛片a | www日韩大片 | 国产一级大片在线观看 | 久久久三级免费电影 | 黄色成人小视频 | 久久99综合久久爱伊人 | 狠狠干天天操 | 在线观看第一区 | 2021狠狠操 | h视频在线免费观看 | 亚洲婷婷日日综合婷婷噜噜噜 | 国产精品一区二区羞羞答答 | 色99久久| 欧美激情第一区 | 日日噜噜夜夜爽 | 久久久久久久久久91 | 久久成人激情视频 | 一级空姐毛片 | 九九热视频免费观看 | 黄色特级片黄色特级片 | 久久久久久久久久久久久久久久久久 | 7777奇米成人四色影视 | 欧美 国产 亚洲 卡通 综合 | 国产精品视频在线观看免费 | 国产男女爽爽爽爽爽免费视频 | 成人h精品动漫一区二区三区 | 黄色片免费在线播放 | 一区国产精品 |