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

Sites hosted in subfolders #8

Open
peakwinter opened this issue Jan 17, 2017 · 0 comments
Open

Sites hosted in subfolders #8

peakwinter opened this issue Jan 17, 2017 · 0 comments
Milestone

Comments

@peakwinter
Copy link
Contributor

e.g. http://mywebsite.com/blog

In short:

  • Instead of creating one nginx server block for every site, a base nginx server block is created for each domain. This will also facilitate automatic Let's Encrypt validation
  • When a new site is created, the base block for the domain is added. Everything required in the server block goes into a Location block for the subfolder
  • The desired subfolder path is passed to the website on pre_install, as the subdomain path is required to customize addtoblock items that the website already requires
  • nginx server blocks then go from being named like /etc/nginx/sites-available/mysite to /etc/nginx/sites-available/mysite.com:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant