Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static file path override #2

Open
pbolduc opened this issue Jan 24, 2015 · 2 comments
Open

static file path override #2

pbolduc opened this issue Jan 24, 2015 · 2 comments

Comments

@pbolduc
Copy link

pbolduc commented Jan 24, 2015

I was trying to use this docker package in Azure on a bitnami ElasticSearch base VM. By default, the root web site serves an index page that provides links to each of the applications. I used docker port redirect to port 80 to 10080

sudo docker run -d -p 127.0.0.1:10081:80 -p 127.0.0.1:2003:2003 -p 127.0.0.1:2004:2004 -p 127.0.0.1:7002:7002 -it nickstenning/graphite
sudo docker run -d -p 127.0.0.1:10080:80 -e GRAPHITE_URL=http://%DNS%.cloudapp.net/ -it aalpern/tessera-simple

and then in Apache, use mod_rewrite to map /dashboard/ to 127.0.0.1:10080.

However, when I navigate to http://myvmname.cloudapp.net/dashboard/ the application does display, however, all the the static resources (css, js) are still served off of /static/... ideally the page would serve them from static/... (no leading slash).

I am not sure if it is possible to configure tessera to say which path the static files should come from. I screwed around with apache rewrite for a while, but just couldn't get it correct. I am not that familiar with configuring Apache rewrite.

@aalpern
Copy link
Member

aalpern commented Mar 14, 2015

@pbolduc Sorry for the long response time - I just never saw the notification from github (I get a lot of those due to work having a couple thousand repos :)).

1 - try using the new development tag; the current dev branch of tessera has more reliable URL manipulation

2 - I don't know about configuring Apache, but this Docker image - https://github.com/aalpern/docker-tessera-test-nginx has an example of configuring tessera to run from a sub path in nginx. In addition to configuring the web server, you need to configure the APPLICATION_ROOT path in tessera's server config.

@pbolduc
Copy link
Author

pbolduc commented Mar 14, 2015

I will be busy over the next few days. Hopefully I will have some time next week and I will give that a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants