Rewrite rule to hide port from URL of Rails server?

前端 未结 2 1335
南旧
南旧 2020-12-19 21:23

I have a rails server running on URL \"http://example.com:1234\" I want to provide the URL of this application to an user as \"http://example.com/myapp\" so that Apache (or

2条回答
  •  情深已故
    2020-12-19 22:14

    Somethimes it loose it css style. You can use only:

    RewriteRule ^myapp(.*) http://example.com:1234 [L,R]
    

提交回复
热议问题