server { listen 80; server_name absprog.com; location / { root /var/www/absprog.com; index index.html; } }
Пікірлер: 27
@f.t.58597 ай бұрын
Uauuuu, I ask you yesterday, and today you have done it. A great hug from Brazil to you Matan.
@absprog7 ай бұрын
Thanks for your support. Hugs right back to you.
@Keksent19 күн бұрын
Great overview I wish I had this video back in my bluehost noob days
@numankaraaslan4 ай бұрын
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?
@djlotussutol6 ай бұрын
thank you. to the point and worked perfectly.
@absprog6 ай бұрын
Glad to hear that!👍
@bakhadher2240Ай бұрын
what if i don't have domain name i just use server ip to access it? will it be the same way ?
@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
@gabrielrossirocha2 ай бұрын
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Ай бұрын
Very sure that’s possible, maybe a proxy_pass directive? Or a redirect
@nick2325 ай бұрын
When I put www. Infront of the domain it does not work. How can i fix that
@QBarszcz2 ай бұрын
put a new record that has name www and points to the same server
@BudiSetiawan-ns3rk6 ай бұрын
Will restarting Nginx cause downtime on the website?
@absprog6 ай бұрын
Brief downtime, usually two or three seconds.
@nick2325 ай бұрын
can you asign the domains to the ip after?
@absprog5 ай бұрын
Yes, you just add an “A” record to the domain, with the IP as its value, where you manage your domains.