创建虚拟主机报错

问答中心分类: Nginx创建虚拟主机报错
Calypso asked 8 年 ago
#######################################################################
# OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+ #
# For more information please visit https://oneinstack.com #
#######################################################################
Do you want to setup SSL under Nginx? [y/n]: n
Please input domain(example: http://www.linuxeye.com): demo.local.dev
domain=demo.local.dev
Do you want to add more domain name? [y/n]: n
Please input the directory for the domain:demo.local.dev :
(Default directory: /data/wwwroot/demo.local.dev):
Virtual Host Directory=/data/wwwroot/demo.local.dev
Create Virtul Host directory......
set permissions of Virtual Host directory......
Do you want to add hotlink protection? [y/n]: n
Allow Rewrite rule? [y/n]: y
Please input the rewrite of programme :
wordpress,discuz,opencart,thinkphp,laravel,typecho,ecshop,drupal,joomla rewrite was exist.
(Default rewrite: other):wordpress
You choose rewrite=wordpress
Allow Nginx/Tengine/OpenResty access_log? [y/n]: y
You access log file=/data/wwwlogs/demo.local.dev_nginx.log
nginx: [emerg] "server" directive is not allowed here in /usr/local/nginx/conf/rewrite/dokuwiki.conf:1
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Create virtualhost ... [FAILED]

2 Answers
oneinstack answered 8 年 ago
伪静态语法错误

clanboy answered 7 年 ago
我也是,很多人都有这问题