mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
# ISOLATED_PHP_VERSION=VALET_ISOLATED_PHP_VERSION
|
|
server {
|
|
listen 127.0.0.1:80;
|
|
server_name VALET_SITE www.VALET_SITE *.VALET_SITE;
|
|
#listen VALET_LOOPBACK:80; # valet loopback
|
|
root /;
|
|
charset utf-8;
|
|
client_max_body_size 128M;
|
|
|
|
location /VALET_STATIC_PREFIX/ {
|
|
internal;
|
|
alias /;
|
|
try_files $uri $uri/;
|
|
}
|
|
|
|
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_PHP_FPM_SOCKET";
|
|
fastcgi_index "VALET_SERVER_PATH";
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME "VALET_SERVER_PATH";
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|