1

index.html ページにはアクセスできましたが、spec_runner.html にはアクセスできませんでした。1 つはアプリ用、もう 1 つはテスト用の 2 つの異なるページにアクセスしたいと考えています。私たちを手伝ってくれますか?ありがとう、:).私の構成は次のとおりです

location ^~ /p/login      { rewrite .* /index.html last; }
location ^~ /specs        { index spec_runner.html; }

location ~* ^/(users|books) {
    proxy_pass http://api;                                                      
}                                                                             

location / {                                                                  
    root /home/user/project;                                    
    proxy_cache off;                                                            
    expires -1;
    add_header Cache-Control no-cache;                                         
    add_header Cache-Control private;                                          
}      
4

0 に答える 0