# How to deploy MVC server to Nginx

**URL:** <https://discourse.julialang.org/t/how-to-deploy-mvc-server-to-nginx/85363>\
**Category:** Web Stack\
**Tags:** question, package, genie\
**Created:** [August 5, 2022, 6:21pm UTC](https://discourse.julialang.org/t/how-to-deploy-mvc-server-to-nginx/85363 "2022-08-05T18:21:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_N](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jack_n/32/37265_2.png) [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Post date:** [August 5, 2022, 6:21pm UTC](https://discourse.julialang.org/t/how-to-deploy-mvc-server-to-nginx/85363/1 "2022-08-05T18:21:00Z")

</div>

I tried following the tutorial at the link below to set up Nginx with my website, but I am confused about what folder to pick as the Nginx config `root` since my landing html page is in the `/app/resources/resource/views`, not the `/public` folder as is used in the demo. Furthermore, I am wondering how to manage the various `location` if they are subfolders of the public folder and my root is now not the public folder?

Maybe you could provide some insight @essenciary?

[https://genieframework.github.io/Genie.jl/dev/tutorials/92--Deploying\_Genie\_Server\_Apps\_with\_Nginx.html#Install-and-run-the-Genie-app-on-the-server](https://genieframework.github.io/Genie.jl/dev/tutorials/92--Deploying_Genie_Server_Apps_with_Nginx.html#Install-and-run-the-Genie-app-on-the-server)

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Jack\_N](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jack_n/32/37265_2.png) [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Post date:** [August 8, 2022, 4:53pm UTC](https://discourse.julialang.org/t/how-to-deploy-mvc-server-to-nginx/85363/2 "2022-08-08T16:53:42Z")

</div>

I figured out how to launch the site by using Nginx tutorials. There should probably be a link to the Nginx documentation from the Genie documentation.
