nginx (pronounced “engine-x”) is an open source Web server and a reverse proxy server for HTTP, SMTP, POP3 and IMAP protocols, with a strong focus on high concurrency, performance and low memory usage. It is licensed under a BSD-like license and it runs on Unix, Linux, BSD variants, Mac OS X, Solaris, AIX and Microsoft Windows [WikiPedia]
These are my reusable settings for any Joomla hosting, these are the most secure, and fastest settings to the best of my knowledge.
Create a new directory nginx/conf to be able to place reusable nginx settings:
mkdir -p /etc/nginx/conf
Edit or create joomla.conf, you can find the latest joomla.conf documented version in one of my Gist at https://gist.github.com/1620307
Create required directory anywhere on your disk, here is an example with a domain www.example.com
mkdir -p /var/www/vhosts/example.com/httpdocs mkdir -p /var/www/vhosts/example.com/logs
Set the right permission to the user and group you have defined in nginx.conf
chown -fR www-data:www-data /var/www/vhosts/example.com/httpdocs
Copy the nginx template and adapt to your liking
cp /etc/nginx/sites-available/default /etc/nginx/sites-available/example vi /etc/nginx/sites-available/example
Edit or create example, you can find the latest file example documented version in one of my Gist at https://gist.github.com/1620307
this file include Joomla.conf to avoid duplicating nginx settings
Activate the new domain
ln -s /etc/nginx/sites-available/example /etc/nginx/sites-enabled/example service nginx restart
Privacy Statement | Copyright Notice | Licenses
© 1999-2012 Waltercedric.com. Designed by Cédric Walter. Sitemap
Reproduction without explicit permission is prohibited. All Rights Reserved. All photos remain copyright © their rightful owners. No copyright infringement is intended.
Disclaimer: The editor(s) reserve the right to edit any comments that are found to be abusive, offensive, contain profanity, serves as spam, is largely self-promotional, or displaying attempts to harbour irrelevant text links for any purpose.