1. 首页
  2. 数据库
  3. 其它
  4. PHP 网站修改默认访问文件的nginx配置

PHP 网站修改默认访问文件的nginx配置

上传者: 2021-02-01 14:12:45上传 PDF文件 33.39KB 热度 16次
搭建好lnmp后,有时候并不需要直接访问index.php,配置其他的默认访问文件比如index.html这时候需要配置一下nginx才能访问到你想要设置的文件 直接上代码,如下是我的配置的一份简单的nginx到php-fpm的站点,该站点默认访问目录/ecmoban/www/index.html server { listen 80; location / { root /ecmoban/www; index index.html index.php index.htm; } error_page 404 /404.html; location = /404.html { root /us
下载地址
用户评论