-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ssdphp edited this page Nov 29, 2018
·
3 revisions
1.使用composer安装
composer.phar require "ssdphp/ssdphp:dev-master"
2.nginx配置
server{
listen 80;
server_name ~^(?<subdomain>.+)\.(?<model>.*)\.ssdphp.com$;
location / {
root /Users/ssdphp/www/$subdomain/www;
index index.php;
if (!-e $request_filename){
rewrite ^/(.+?)$ /index.php?PATH_INFO=$model/$1 last;
}
}
location ~ \.php$ {
root /Users/ssdphp/www/$subdomain/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
3.浏览器输入
比如 http://project.admin.ssdphp.com 就可以访问到,project下面的admin模块