您好,欢迎来到 - 67学习网 - http://www.67xuexi.com !

Nginx实现泛域名CDN节点配置

摘要: # Multiple hostnames seperated by spaces. Replace these as well. server_name www.111cn.net *.你的域名.com; #Alternately: _ * root /PATH/TO/WEBROOT/$host; error_page 404 http://yourdomain.com/errors/404.html; access_log logs/yourdomain.com.access.log; location / { root /PATH/TO/WEBROOT/$host/;
Nginx实现泛域名CDN节点配置,标签:服务器,操作系统教程大全,http://www.67xuexi.com

 

        # Multiple hostnames seperated by spaces.  Replace these as well.

        server_name  www.111cn.net *.你的域名.com;

        #Alternately: _ *

        root /PATH/TO/WEBROOT/$host;

        error_page  404              http://yourdomain.com/errors/404.html;

        access_log  logs/yourdomain.com.access.log;

        location / {

            root  /PATH/TO/WEBROOT/$host/;

            index  index.php;

        }

 

        # serve static files directly

        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html)$ {

            access_log        off;

            expires          30d;

        }

 

        location ~ .php$ {  

          # By all means use a different server for the fcgi processes if you need to  

          fastcgi_pass  127.0.0.1:YOURFCGIPORTHERE;

          fastcgi_index  index.php;

 

上一页  [1] [2] [3]  下一页


Tag:服务器_操作系统教程服务器,操作系统教程大全电脑教程 - 服务器_操作系统教程