config nginx访问index和spec_runner页面

时间:2013-02-14 06:14:17

标签: nginx configure

index.html页面可以访问,但不能访问spec_runner.html。我想访问两个不同的页面,一个用于app,另一个用于测试。你可以帮帮我吗?谢谢,:)。我的配置如下

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;                                          
}      

0 个答案:

没有答案