docker映射window本地文件夹的nginx的虚拟主机配置文件vhost.nginx.conf

server {
 listen 80;
 server_name www.domain.com;

 location ~ \.php$ {
 root  /var/www/html/www/test/public;
 fastcgi_pass 127.0.0.1:9000;
 fastcgi_index index.php;
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 include fastcgi_params;
 }
 location / {
 root  /var/www/html/www/;
 index  index.php;
 }
}

你可能感兴趣的:(Nginx)