Web Server
From Bibliotheca Anonoma
Revision as of 14:48, 30 January 2018 by Antonizoon (talk | contribs) (Created page with "== Apache == == Nginx == === CentOS 7 === * HTML Directory - <code>/usr/share/nginx/html</code> * Nginx Configuration - <code>/etc/nginx/nginx.conf</code> First, enable th...")
Apache[edit]
Nginx[edit]
CentOS 7[edit]
- HTML Directory -
/usr/share/nginx/html
- Nginx Configuration -
/etc/nginx/nginx.conf
First, enable the EPEL repository:
sudo yum install epel-release
Next, install Nginx.
sudo yum install nginx
Finally, start nginx.
sudo systemctl start nginx
If you have a firewall active (which you should), enable HTTP and HTTPS access. Here's how for Firewall#firewalld:
sudo firewall-cmd --permanent --zone=public --add-service=http sudo firewall-cmd --permanent --zone=public --add-service=https sudo firewall-cmd --reload
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7