I have a projects
folder in which I put multiple folders, each having an html
page.
So, the folder hierarchy looks something like this –
projects
|-sampleproject1
|-index.html
|-style.css
|-sampleproject2
|-index.html
|-style.css
projects
|-sampleproject1
|-index.html
|-style.css
|-sampleproject2
|-index.html
|-style.css
I want to have each of these folders as subdomains to my domain, so I had to create an nginx conf
file for each one with a different root
path.
I was looking for way to have this done automatically using Nginx and finally found it!
Continue reading