Run Multiple Site from one IP with reverse proxy Nginx
How to run multiple sites on one web-server using Nginx by creating a virtual host.
Also shows how to host dynamic content using port 8080 and 8081
Free Trial on Digital Ocean: https://m.do.co/c/8add28fb64fc
Helpful sites:
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04
http://nginx.org/en/docs/http/request_processing.html
----------------------------------------------------------------------------------------------
commands used during video:
sudo apt install nginx
---show content in "site enable"
unlink default
-- create new conf file in conf.d
newsite.conf
--- past server block into .conf file
server {
listen 80 default_server;
server_name yourdomain1.xyz www.yourdomain1.xyz;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8081;
}
}
server {
listen 80;
server_name yourdomain2.info www.yourdomain2.info;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8080;
}
}
nginx -t
systemctl reload nginx
systemctl status nginux
Видео Run Multiple Site from one IP with reverse proxy Nginx канала Juan Nadal
Also shows how to host dynamic content using port 8080 and 8081
Free Trial on Digital Ocean: https://m.do.co/c/8add28fb64fc
Helpful sites:
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04
http://nginx.org/en/docs/http/request_processing.html
----------------------------------------------------------------------------------------------
commands used during video:
sudo apt install nginx
---show content in "site enable"
unlink default
-- create new conf file in conf.d
newsite.conf
--- past server block into .conf file
server {
listen 80 default_server;
server_name yourdomain1.xyz www.yourdomain1.xyz;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8081;
}
}
server {
listen 80;
server_name yourdomain2.info www.yourdomain2.info;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8080;
}
}
nginx -t
systemctl reload nginx
systemctl status nginux
Видео Run Multiple Site from one IP with reverse proxy Nginx канала Juan Nadal
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How to Setup a Reverse Proxy on Home NetworkFull Node.js Deployment - NGINX, SSL With Lets EncryptNGINX Linux Server | Common ConfigurationsProxy vs reverse proxy vs load balancer (2020) | Explained with real life examplesConfigure NGINX as a Reverse ProxyUsing Nginx to Host Multiple Websites on One ServerDocker and Nginx Reverse ProxyWhat is Nginx | easy wayProxy vs Reverse Proxy Server ExplainedNginx Tutorial | Learn Nginx Fundamentals | Deploy a Web Application Using Nginx | EdurekaNGINX Explained in 100 SecondsHow to configure NGINX as a load balancerProxy vs. Reverse Proxy (Explained by Example)How to Host Multiple WordPress Websites on One Server with NginxPutting it All Together - Docker, Docker-Compose, NGinx Proxy Manager, and Domain Routing - How To.How to Set Up an NGINX Reverse ProxyNginX Proxy Manager is a free, open source, GUI for the NginX Reverse Proxy making it easy to use.How to Set Up SSL with NGINXLoad Balancing with NGINXHTTP Load Balancing with Nginx