Category Archives: nginx

proxy_temp_path

proxy_temp_path syntax: proxy_temp_path dir-path [ level1 [ level2 [ level3 ]  ; default: $NGX_PREFIX/proxy_temp controlled by –http-proxy-temp-path at ./configure stage context: http, server, location This directive works like client_body_temp_path to specify a location to buffer large proxied requests to the … Continue reading

Posted in nginx | 1 Comment

wp-admin 404的问题

vps上的原来有LNMP环境(Linux+nginx+Mysql+PHP),因为wuseclub.com跑在上面; WP迅速搭建起来后,决定URL搞成静态化下: wp后台——设置——固定连接 里面可以设置 不过web 服务器要支持rewrite,在nginx中很简单在location{} 中加一段: if (!-f $request_filename){ rewrite (.*) /index.php; } 不过现在是支持静态了,但是wp-admin,管理后台进不去了:

Posted in nginx | 2 Comments