欢迎光临
我们一直在努力

wordpress下nginx代码

server
    {
        listen       80;
        server_name meefm.com www.meefm.com;
        if ($host != 'www.meefm.com') {
        rewrite ^/(.*)$ http://www.meefm.com/$1 permanent;
        }
        rewrite ^/wp-admin$ /wp-admin/ permanent;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/meefm.com;

        include wordpress.conf;
        location ~ .*\.(php|php5)?$
            {
                try_files $uri =404;
                fastcgi_pass  unix:/tmp/php-cgi.sock;
                fastcgi_index index.php;
                include fcgi.conf;
            }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
            {
                expires      30d;
            }

        location ~ .*\.(js|css)?$
            {
                expires      12h;
            }

        access_log off;
    }

赞(0) 打赏
未经允许不得转载:优惠吧 » wordpress下nginx代码
分享到: 更多 (0)

评论 252

评论前必须登录!