How to host multiple websites on Nginx

  Рет қаралды 8,216

Abstract programmer

Abstract programmer

Күн бұрын

server {
listen 80;
server_name absprog.com;
location / {
root /var/www/absprog.com;
index index.html;
}
}

Пікірлер: 27
@f.t.5859
@f.t.5859 7 ай бұрын
Uauuuu, I ask you yesterday, and today you have done it. A great hug from Brazil to you Matan.
@absprog
@absprog 7 ай бұрын
Thanks for your support. Hugs right back to you.
@Keksent
@Keksent 19 күн бұрын
Great overview I wish I had this video back in my bluehost noob days
@numankaraaslan
@numankaraaslan 4 ай бұрын
I am trying to use the reverse-proxy.conf file and multiple server blocks. But it only redirects to first server block always. Why do you think that happens?
@djlotussutol
@djlotussutol 6 ай бұрын
thank you. to the point and worked perfectly.
@absprog
@absprog 6 ай бұрын
Glad to hear that!👍
@bakhadher2240
@bakhadher2240 Ай бұрын
what if i don't have domain name i just use server ip to access it? will it be the same way ?
@bakhadher2240
@bakhadher2240 Ай бұрын
i just figure it out that i can host multicable website without domain name i just need to change the port number for each website. Thanks bro
@gabrielrossirocha
@gabrielrossirocha 2 ай бұрын
It works if sites are hosted in another VMs? I mean, I have two websites hosted on two different VMs. Could I use NGINX to forward the traffic to this websites based on the URLs used?
@habibosaye
@habibosaye Ай бұрын
Very sure that’s possible, maybe a proxy_pass directive? Or a redirect
@nick232
@nick232 5 ай бұрын
When I put www. Infront of the domain it does not work. How can i fix that
@QBarszcz
@QBarszcz 2 ай бұрын
put a new record that has name www and points to the same server
@BudiSetiawan-ns3rk
@BudiSetiawan-ns3rk 6 ай бұрын
Will restarting Nginx cause downtime on the website?
@absprog
@absprog 6 ай бұрын
Brief downtime, usually two or three seconds.
@nick232
@nick232 5 ай бұрын
can you asign the domains to the ip after?
@absprog
@absprog 5 ай бұрын
Yes, you just add an “A” record to the domain, with the IP as its value, where you manage your domains.
@mustafa.celiktas
@mustafa.celiktas 5 ай бұрын
thank you so much
@absprog
@absprog 5 ай бұрын
You're most welcome!
@GlowB66
@GlowB66 Ай бұрын
you are my life saver! thank you bro keep it up
@absprog
@absprog Ай бұрын
Thanks for your support👍
@OleksandrAndrushko
@OleksandrAndrushko Ай бұрын
Thanks !!
@absprog
@absprog Ай бұрын
You're most welcome👍
@tyzen_net
@tyzen_net 12 күн бұрын
Thank you very much! 😀
@absprog
@absprog 12 күн бұрын
You're most welcome!
Nginx sites-available and sites-enabled
8:45
WittCode
Рет қаралды 6 М.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 164 М.
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
Raspberry Pi versus AWS // How to host your website on the RPi4
8:39
Run Multiple Site from one IP with  reverse proxy Nginx
7:45
Juan Nadal
Рет қаралды 107 М.
How to Host Multiple Node Apps with nginx and pm2
8:20
Code With Bubb
Рет қаралды 12 М.
When you Accidentally Compromise every CPU on Earth
15:59
Daniel Boctor
Рет қаралды 825 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 606 М.
How to Host Multiple WordPress Websites on One Server with Apache
12:08
Tony Teaches Tech
Рет қаралды 27 М.
Configure NGINX as a Reverse Proxy
16:43
NGINX
Рет қаралды 216 М.
How to Host Multiple WordPress Websites on One Server with Nginx
15:00
Tony Teaches Tech
Рет қаралды 38 М.
Китайский XRAY VPN - shadowsocks, VLESS
29:12
BogdanDotPy
Рет қаралды 73 М.