Nginx (pronounced engine-x) is a free, open-source, high-performance HTTP web server, reverse proxy, and load balancer. It is known for its high performance and stability and is one of the most popular web servers in use.
NGINX powers several high-visibility sites, such as Netflix, Hulu, Pinterest, Cloudflare, Airbnb, WordPress.com, GitHub, SoundCloud, Zynga, Eventbrite, Zappos, Media Temple, Heroku, RightScale, Engine Yard, StackPath, CDN77 and many others.
Apache vs Nginx
Apache is enabled by default as it supports a larger toolbox of things it can do immediately, making it the most compatible option for the majority of users. However, Nginx is an excellent choice for high-traffic websites as it serves your content faster while using less memory than Apache.
View the following article for further comparison information:
Nginx at DreamHost
To view the version of Nginx:
By default, gzip compression is enabled on Nginx servers. You can disable it by following these steps.
- Log into your server via SSH.
- Create your local /nginx/example.com directory.
- Change into this directory.
[server]$ cd ~/nginx/example.com
- Create a file named settings.conf in this /nginx/example.com directory with the following content:
- Reload Nginx for the changes to take effect.
View the following page for additional gzip compression options:
.htaccess rules with Nginx
Many web applications, such as WordPress, are configured to work with Apache. However, Nginx does not support directory-level configuration files, such as Apache's .htaccess file. This means that if you have previously created a website that uses an .htaccess file, all code within it will no longer function.
- Make sure your site is not dependent on your .htaccess file before changing your server to Nginx.
- If your website depends on certain .htaccess rules to function, review your website's software documentation for Nginx configuration options.
- Adding a VPS
- PHP with Nginx at DreamHost
- How to reload and restart Nginx (Dedicated Servers only)
- Nginx configuration file locations
- Password protecting directories with Nginx
- Creating redirects with Nginx
- Blocking IPs with Nginx
- Change your web server to Nginx
- WordPress, Nginx, and WP Super Cache
- How to make statistics and permalinks work with WordPress and Nginx