gxp
@扑倒ricky 找到.env文件,修改BACKEND_URL = /
我是这样解决好的我这里遇到个问题:
admin/123456登陆到后台,打开chorme调试面板,console界面出现这个错误
GET http://mybackend.yii2.cn:8080/debug/default/toolbar?tag=59bc73c7dc67e 404 (Not Found),点击收件箱和通知都无效,点击订单管理页面有效.望指导下这个怎么解决,感谢。我下载的代码是全站打包代码。
配置文件server {
listen 8080; root 安装目录/frontend/web; index index.php index.html; server_name my.yii2.cn; charset utf-8; # location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js)$ { # access_log off; # expires max; # } location / { try_files $uri $uri/ /index.php?$args; } client_max_body_size 32m; # There is a VirtualBox bug related to sendfile that can lead to # corrupted files, if not turned-off # sendfile off; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; }
}
server {
listen 8080; root 安装目录/backend/web; index index.php index.html; server_name mybackend.yii2.cn; charset utf-8; client_max_body_size 16m;
location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; }
}
存储
server {
listen 8080; server_name mystorage.yii2.cn; root 安装目录/storage/web; index index.html; # expires max; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; }
}