server { listen 80; server_name VALET_SITE; return 301 https://$host$request_uri; } server { listen 443 ssl http2; server_name VALET_SITE; root /; charset utf-8; location /static/ { internal; alias /; try_files $uri $uri/; } ssl_certificate VALET_CERT; ssl_certificate_key VALET_KEY; location / { rewrite ^ VALET_SERVER_PATH?$query_string last; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log off; error_log VALET_HOME_PATH/Log/nginx-error.log; error_page 404 VALET_SERVER_PATH; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:VALET_HOME_PATH/valet.sock; fastcgi_index VALET_SERVER_PATH; include fastcgi_params; } location ~ /\.ht { deny all; } }