ember.js - ember, nginx, reverse proxy -


i have app deployed file server here at: http://example.com/my-team/my-app

we want our app facing at: http://amazingapp.com

so far have on nginx

server {   listen 80;   server_name http://amazingapp.com;   location / {       proxy_pass http://example.com/my-team/my-app/;   } } 

this works initial http://amazingapp.com subsequent requests http://amazingapp.com/post/1/comment/2 result in 404

most of ember deploy examples have file being served same location web server, using try_files $uri $uri/ index.html don't believe i'm able go down path?

i've tried using regex on location requires proxy_pass have parameters.

if point me in right direction grateful. in advance!

consider config below

server {   listen 80;   server_name http://amazingapp.com;   location / {       proxy_pass http://example.com/my-team/my-app;   } } 

when access http://amazingapp.com/abc location / cut abc out of , append proxy_pass. making url http://example.com/my-team/my-appabc. fix quite simple, add trailing/` proxy_pass

server {   listen 80;   server_name http://amazingapp.com;   location / {       proxy_pass http://example.com/my-team/my-app/;   } } 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -