Skip to content
Snippets Groups Projects
vhost.conf 466 B
Newer Older
  • Learn to ignore specific revisions
  • Jonas Leder's avatar
    Jonas Leder committed
    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;
        }
    }