pageer / lnblog

A flexible, file-based weblog.
https://lnblog.skepticats.com/
GNU General Public License v2.0
0 stars 0 forks source link

Better subdomain resolution #15

Closed pageer closed 3 years ago

pageer commented 4 years ago

Right now the subdomain detection logic assumes that the document root for each subdomain lives under a single directory. For example, if SUBDOMAIN_ROOT is /var/www/vhosts, then it would be assumed that foo.example.com would have it's document root at /var/www/vhosts/foo. This is obviously incorrect for many configurations and so inadequate in general.

This should be changed to allow for more configurations. This might mean turning this into an array, allowing regex or glob values, or something else.

pageer commented 4 years ago

Feature requirements and design document is available here.