mac下 valet 自定义普通域名的解析

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
server {
listen 80;
server_name iyineng.piian.cn;
root /Users/pan/code/iyineng/public;
index index.php;

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

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/Users/pan/.config/valet/valet.sock;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}
}