diff --git a/vhost.conf b/vhost.conf new file mode 100644 index 0000000000000000000000000000000000000000..a6875bba9000de4e00271ce9a86fd4aaad6cbaf2 --- /dev/null +++ b/vhost.conf @@ -0,0 +1,19 @@ +server { + listen 80 default_server; + listen [::]:80 default_server; + root /var/www/html/public; + index index.html index.htm index.php; + if (!-f $request_filename) { + rewrite ^/(.*)$ /index.php last; + } + + location /build { + expires 14d; + add_header Cache-Control "public, no-transform"; + } + location ~ \.php$ { + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + include fastcgi.conf; + } +}