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  阅读(...)  评论(...编辑  收藏