存档
Nginx默认是不允许列出整个目录的。如需此功能,
打开nginx.conf文件,在location server 或 http段中加入
autoindex on;
另外两个参数最好也加上去:
autoindex_exact_size off;
默认为on,显示出文件的确切大小,单位是bytes。
[......]
Oct 8th, 2009 | Filed under 网络技术
之前安装typecho和magike时,出现跳转异常,最后发现nginx没有配置path_info,现在把方法保存下来。
修改:
location ~ .*\.(php|php5)? $
{
fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;[......]
Jul 8th, 2009 | Filed under Linux
最新评论