1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00
Files
laravel-valet/cli/stubs/secure.valet.conf
Adam Wathan fd8ef9980c Merge pull request #272 from stayallive/patch-1
Fix for query string in secure config
2017-02-20 09:28:29 -05:00

46 lines
1.0 KiB
Plaintext

server {
listen 80;
server_name VALET_SITE www.VALET_SITE *.VALET_SITE;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name VALET_SITE www.VALET_SITE *.VALET_SITE;
root /;
charset utf-8;
location /VALET_STATIC_PREFIX/ {
internal;
alias /;
try_files $uri $uri/;
}
ssl_certificate VALET_CERT;
ssl_certificate_key VALET_KEY;
location / {
rewrite ^ VALET_SERVER_PATH 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;
fastcgi_param SCRIPT_FILENAME VALET_SERVER_PATH;
}
location ~ /\.ht {
deny all;
}
}