Noob Question Re Perusio et al Nginx Conf File

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by Sunshiney on November 27, 2012 at 8:37pm

I have just finished installing nginx on my 512 linode and when I ran the IP in my chrome, I can see that nginx installed successfully. (yahoo, says this beginner!). Now working on nginx.conf The instructions from vpsbible.com tell me to strip out the content of the current nginx.conf and insert the following instead. Should I use, instead, the content of the nginx.conf file at perusio's github (or one of the other three)? VPSBible does say that the following is barebones but I don't know if I can just use the single nginx.conf file from the long list of files at Perusio's (or someone else) github or do all of those files have an interconnectedness? Make sense?

Here's the barebones conf from vpsbible.com:

code removed per request of vpsbible

Comments

No you cannot

Posted by perusio on November 27, 2012 at 11:37pm

the config is split along several files. The only mechanism Nginx provides to reuse code is through the include directive. Hence the myriad of files. The file you posted above is just a basic config file. A lot is missing.

A single events instance, a single http instance for a running server, multiple server instances (one for each vhost). That's how things are done. Look at the README for guidance and ask here when you have doubts. Try it on your local machine and test, test, test.

I would not recommend mixing

Posted by brianmercer on November 27, 2012 at 11:45pm

I would not recommend mixing the vpsbible config with perusio's config. perusio's is complete, well tailored to Drupal, and still updated. vpsbible is a good resource, but it looks like the author has not been updating it.

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /