File: vhost.conf

Recommend this page to a friend!
  Classes of Paulo Henrique  >  Laravel Docker Starter  >  vhost.conf  >  Download  
File: vhost.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Docker Starter
Start a Laravel project using a Docker container
Author: By
Last change:
Date: 2 months ago
Size: 451 bytes
 

Contents

Class file image Download
server {
    listen 80;
    index index.php index.html;
    root /var/www/public;

    location / {
        try_files $uri /index.php?$args;
    }

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass app:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}

For more information send a message to info at phpclasses dot org.