Centos6.10-FastDFS-Tracker-Nginx示例配置

 

nginx 安裝過程《詳見html

1.進入工做目錄nginx

  cd /usr/local/nginx/confurl

2.建立子目錄spa

  mkdir configs.net

3.建立storage代理配置代理

  cd configscode

  vi storage.conf  server

uptream fdfs_group1 { server 192.168.125.154:9100 weight=1 max_fails=2 fail_timeout=30s; } server { listen 8888; server_name localhsot; charset utf8; location /group1/M00{ proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://fdfs_group1;
 } error_page 500 502 503 504 /50x.html; location =/50x.html { root /html; } }

保存退出。htm

4.引入configs/storege.conf配置blog

  cd /usr/local/nginx/conf

  vi nginx.conf

 

 

5.重啓nginx

  nginx -s reload

6.訪問驗證

  

相關文章
相關標籤/搜索