File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -48,3 +48,46 @@ server {
4848 deny all;
4949 }
5050}
51+
52+ server {
53+ listen 127.0.0.1:60;
54+ #listen VALET_LOOPBACK:60; # valet loopback
55+ server_name VALET_SITE www.VALET_SITE *.VALET_SITE;
56+ root /;
57+ charset utf-8;
58+ client_max_body_size 128M;
59+
60+ add_header X-Robots-Tag 'noindex, nofollow, nosnippet, noarchive';
61+
62+ location /VALET_STATIC_PREFIX/ {
63+ internal;
64+ alias /;
65+ try_files $uri $uri/;
66+ }
67+
68+ location / {
69+ rewrite ^ "VALET_SERVER_PATH" last;
70+ }
71+
72+ location = /favicon.ico { access_log off; log_not_found off; }
73+ location = /robots.txt { access_log off; log_not_found off; }
74+
75+ access_log off;
76+ error_log "VALET_HOME_PATH/Log/nginx-error.log";
77+
78+ error_page 404 "VALET_SERVER_PATH";
79+
80+ location ~ [^/]\.php(/|$) {
81+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
82+ fastcgi_pass "unix:VALET_HOME_PATH/valet.sock";
83+ fastcgi_index "VALET_SERVER_PATH";
84+ include fastcgi_params;
85+ fastcgi_param SCRIPT_FILENAME "VALET_SERVER_PATH";
86+ fastcgi_param PATH_INFO $fastcgi_path_info;
87+ }
88+
89+ location ~ /\.ht {
90+ deny all;
91+ }
92+ }
93+
You can’t perform that action at this time.
0 commit comments