Skip to content

Nginx Setup

sunrise-php edited this page Jan 7, 2019 · 2 revisions

For detailed documentation, refer to the official documentation

server {
  listen 80;
  server_name app.local;

  root /var/www/app.local/public;
  index index.php;
  charset utf-8;

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

  location /index.php {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  }
}