Skip to content

Commit

Permalink
修复 首页访问 403 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
EtherDream committed Jun 20, 2019
1 parent cc5be21 commit f854d7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ location = /404.html {
root ../www;
}

location = / {
rewrite ^ /404.html;
}

location / {
access_log logs/access.log log_www buffer=64k flush=1s;
root ../www;
Expand Down

0 comments on commit f854d7f

Please sign in to comment.