Hacker News new | past | comments | ask | show | jobs | submit login

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



That's clever. Coming from Apache I was disappointed not to see something equivalent to: a2ensite (site)


Wouldn'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?


It would be. That's exactly what a2ensite does. That's what I ended up doing.


That's a debian feature. Not an Apache feature.


You can also use the Debian-style setup with sites-enabled/*, though I don't know of enable/disable scripts for nginx.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: