I would like to run my app from www.mydomain.com/app address. I have absolutely no problem in setting up Nginx and Meteor to serve the app from www.mydomain.com
Moreover, I have managed to update the routing directives within my app to include the path prefix /app. I am aware, one should be able to use Meteor environmental variable ROOT_URL to assign a custom URI from which the app is about to be available.
The css and js files compiled and minified by the Meteor have always correct path. The problem however, is linking to the resources available in the Public folder of the app.
I was wondering if anybody in the community succeeded in creating a set of Nginx rewrite rules that could handle the issue?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Inside of your Nginx server block, you can create a new location directive that points to your public/ folder.
location /app {
root /path/to/app/public;
}
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.