... | ... | @@ -76,3 +76,30 @@ file->settins->搜索 git |
|
|
### linux & mac
|
|
|
|
|
|
请参照windows 自行配置
|
|
|
|
|
|
nginx 配置文件
|
|
|
```
|
|
|
server {
|
|
|
listen 80;
|
|
|
server_name finance.dev.pingansec.com;
|
|
|
index index.html index.htm index.php;
|
|
|
root /Users/www/web-php/app-finance;
|
|
|
rewrite . /index.php;
|
|
|
|
|
|
|
|
|
location ~ .*\.(php|php5)?$ {
|
|
|
fastcgi_pass unix:/tmp/php-cgi.sock;
|
|
|
fastcgi_index index.php;
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
include fastcgi_params;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
#静态文件
|
|
|
server {
|
|
|
listen 80;
|
|
|
server_name static.dev.pingansec.com;
|
|
|
root /Users/www/static;
|
|
|
limit_rate 512k;
|
|
|
}
|
|
|
``` |