Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 721 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 721 Bytes

Nginx Reverse Proxy instructions

Install the repository epel executing the command bellow:

yum install epel-release

Insert the repo creating a file called nginx.repo and add the lines bellow:

vim /etc/yum.repos.d/nginx.repo
[nginx] 
name=nginx repo 
baseurl=http://nginx.org/packages/mainline/rhel/7/$basearch/ 
gpgcheck=0 
enabled=1 

Execute the commands and install Nginx:

yum repolist all 
yum install nginx.x86_64
systemctl enable nginx

Create a file called in the /etc/nginx/conf.d/ with the name vhosts.conf and insert the code present in this project:

firewall-cmd --add-service=http --permanent 
firewall-cmd --reload 
systemctl start nginx