【发布时间】:2011-11-30 20:37:16
【问题描述】:
我正在运行 nginx v 1.0.4,我们正在尝试执行以下操作:
location ~ ^/$ {
rewrite ^.*$ /index.html last;
}
基本上:如果用户访问默认域http://www.foo.com 或http://www.foo.com/ 将他们重定向到http://www.foo.com/index.html
当我将它添加到我的 conf 文件中时,我得到以下信息: 启动 nginx: nginx: [emerg] unknown directive " " in /etc/nginx/myconf.conf
提前致谢。
【问题讨论】:
标签: nginx