nginx配置文件

自定义nginx基本配置文件conf.d

server {
    listen 80;

    server_name test.com;
    root /var/www/hw;
    location / {
        index index.php; #跳转到test.com/index.php
        autoindex on;
    } 
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        #fastcgi_intercept_errors on;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
    }
}

posted @ 2019-12-06 14:46  biupiu  阅读(97)  评论(0编辑  收藏  举报