Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lowboy
on June 19, 2013
|
parent
|
context
|
favorite
| on:
Nginx for Developers: An Introduction
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
on June 19, 2013
[–]
That's clever. Coming from Apache I was disappointed not to see something equivalent to: a2ensite (site)
stayclassytally
on June 19, 2013
|
parent
|
next
[–]
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?
dkokelley
on June 21, 2013
|
root
|
parent
|
next
[–]
It would be. That's exactly what a2ensite does. That's what I ended up doing.
pilif
on June 20, 2013
|
parent
|
prev
|
next
[–]
That's a debian feature. Not an Apache feature.
tmzt
on June 19, 2013
|
parent
|
prev
[–]
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: