3 ms·
I like just keeping a single "etc/nginx/sites" folder, including "sites/*.ON" in my main nginx.conf and then appending .ON to the sites that are enabled: a
by lowboy 13y ago
I like just keeping a single "etc/nginx/sites" folder, including "sites/*.ON" in my main nginx.conf and then appending .ON to the sites that are enabled:
active.site.com.ON
another.active.com.ON
not.active.com
- dkokelley 13y agoThat's clever. Coming from Apache I was disappointed not to see something equivalent to: a2ensite (site)
- stayclassytally 13y agoWouldn't it be kind of trivial to right a function to would take a directory name as a parameter and symlink it from site-available to site-enabled?
- dkokelley 13y agoIt would be. That's exactly what a2ensite does. That's what I ended up doing.
- tmzt 13y agoYou can also use the Debian-style setup with sites-enabled/*, though I don't know of enable/disable scripts for nginx.
- pilif 13y agoThat's a debian feature. Not an Apache feature.