我正在使用nginx来托pipe一个网站,以下是在/etc/nginx/sites-available/mysite定义的当前configuration
configuration
server { listen 80; root /var/www/mysite; index.php index.htm index.html; }
问题是,只要我设置另一个页面作为默认nginx开始抛出错误
unknown directive "somepage.php" in /etc/nginx/sites-enabled/mysite
新的configuration
server { listen 80; root /var/www/mysite; somepage.php index.php index.htm index.html; }
我不明白我在这里做错了什么。 你能检查吗?