gxp

gxp

这家伙有点懒,还没写个性签名!

  • 财富值10
  • 威望值0
  • 总积分10

个人信息

  • 回复了 的评论

    找到.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;
    									    }
    

    }

实习生 等级规则
10/20
资料完整度
10/100
用户活跃度
0/100

Ta的关注

0

Ta的粉丝

0

Ta的访客

2