Apache rewrite rules not being applied for angularjs

后端 未结 4 907
走了就别回头了
走了就别回头了 2020-12-03 06:10

I am trying to setup apache 2.2 with AngularJS with an almost exact structure as the one from the following closed question.

rewrite rules for apache 2 to use with

4条回答
  •  醉梦人生
    2020-12-03 07:11

    This is now much easier in Apache 2.2.16+ using the FallbackResource directive.

    FallbackResource /app/index.html
    

    http://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource

    Depending on how you're forwarding access to your API you may need to also leverage the enclosure to disable the fallback resource on specifically on API requests (2.2.24+).

    
        FallbackResource disabled
     
    

提交回复
热议问题