Verified and Tested 05/20/15
In this How-To, we will walk you through the Nginx install on your Fedora 22 Server. Nginx is a HTTP and reverse proxy server and mail proxy server. It is used on many prominent sites such as Netflix and WordPress.
A cloud server with Fedora 22 already installed. If you do not have a server already, you can spin up a virtual private server in under 30 seconds.
Installing NGINX in Fedora 22
To get started, log into your Fedora 22 via SSH or the VNC Console in cloud.atlantic.net. Atlantic.Net Cloud servers are setup as minimal installations in order to avoid having unnecessary packages from being installed and never used. Because of this, let’s make sure that your server is fully up-to-date.
With the server up-to-date, we can continue the installation process on your Fedora 22 server.
Install NGINX with the following command:
dnf install nginx
Start the the service with the following command:
systemctl start nginx
Configure NGINX to start when the system is rebooted:
systemctl enable nginx
You will also need to add the following firewall rules to let HTTP and HTTPS ports through the local firewall. Run the following commands to add them to the firewall:
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
You can then check the status by running:
systemctl status nginx
You will now have NGINX installed on your server and can be verified typing in the following with your IP ADDRESS on your browser. Also, all configuration files are provided in the page.
Your IP could be retrieved from the server with following command:
The default page
You can now insert your site in the /usr/share/nginx/html directory. This is the default web directory.
You have now completed installing Nginx on your Fedora 22 server. Come back and check for updates!