Thank you very much ! Subscribed and liked !! One query though. at 5:56 did you paste the server block for the second site just below the first or just replaced the first with the second ? If this is the second case, then how did both the urls work if the config for the first is replaced ?
Thanks for sharing you time and experience with us. Quick question. Where does the content for the two sites reside? And would it require a folder for each of your sites?
they can reside anywhere they want as long as they are accessible on the ports. nginx simply redirects requests to the relevant ports. you can have a folder for each site for better organisation. hope this helps :)
@@tanchienhao I am confuse about the port change, i got 3 websites that i want to have on my vps and served by nginx so do i have to open new ports for each additional website? Thank for any help
@@tanchienhao Thank i was confuse about that part since so many channel do thing differently! But if i set nginx as reverse proxy then more than 2 sites can be on same port correct?
this is how to proxy to different sites based on server name. This means you should run now nginx plus two more servers. If you want to run multiple servers on the same server you just need a different root folder and remove the proxy commands
Yes Use empty host and return 444 e.g server { listen 80; server_name ""; return 444; } Here, the server name is set to an empty string that will match requests without the “Host” header field, and a special nginx’s non-standard code 444 is returned that closes the connection.
hi... i need help from you iam working on java JSP page on the tomcat server i can access all post and get method in 80 port but not working in 443 what happens.. and what is the problem can you please explain me or fix this problem
I have a TL-WDR4300 router with openwrt nginx-ssl, acme and duckdns. I am struggling to install a reverse proxy any one have ever try anything like this?
yes, you just need to sign the ssl certificate with the correct domain name and add it to the config file, or you could use a CA that way you only need to singe a single certificate.
to achive the think which he did earlier edit the listen to 8080 or 8081 in the /etc/nginx/sites-available/{yourfilename} to get the desired results as him
Thank you very much ! Subscribed and liked !!
One query though. at 5:56 did you paste the server block for the second site just below the first or just replaced the first with the second ? If this is the second case, then how did both the urls work if the config for the first is replaced ?
Thanks ma man! This really helped, other guides add a lot of information that it becomes overwhelming
at 6:01 how come you replaced the balckjack website? and also im curious what happened to the at 2:07. thank you for the great video! :D
Great video, thanks for sharing 👍. I am much more familiar with Apache so it was neat to see the equivalent on Nginx.
wow I went many years never knowing that sudo stands for Super User DO. Thanks for the tutorial!
Nah bruh it means Shut Up and Do as Ordered
hi friend thanks for sharing! where did you store the index files of the site to bee on port 8081?
Thanks for sharing you time and experience with us. Quick question. Where does the content for the two sites reside? And would it require a folder for each of your sites?
they can reside anywhere they want as long as they are accessible on the ports. nginx simply redirects requests to the relevant ports. you can have a folder for each site for better organisation. hope this helps :)
@@tanchienhao I am confuse about the port change, i got 3 websites that i want to have on my vps and served by nginx so do i have to open new ports for each additional website? Thank for any help
@@petertremblay3725 yup two sites cannot run on the same port of the same computer
@@tanchienhao Thank i was confuse about that part since so many channel do thing differently! But if i set nginx as reverse proxy then more than 2 sites can be on same port correct?
Hello Im wondering how to host as https with nginx do you know how?
Can I reverse proxy any website on my domain?
this is how to proxy to different sites based on server name. This means you should run now nginx plus two more servers. If you want to run multiple servers on the same server you just need a different root folder and remove the proxy commands
Could you please provide an example ?
There are some things which are not really clear else there is so much to learn from this video
also, does it block access to: IP:PORT ? e.g someone manually go to 157.230.151.33:8080
Yes
Use empty host and return 444 e.g
server { listen 80; server_name ""; return 444; }
Here, the server name is set to an empty string that will match requests without the “Host” header field, and a special nginx’s non-standard code 444 is returned that closes the connection.
do we need install bind9 to do this? (i know it's a noob question sorry about that :)
502 Bad Gateway How do I fix that?
hi...
i need help from you iam working on java JSP page on the tomcat server i can access all post and get method in 80 port but not working in 443 what happens.. and what is the problem can you please explain me or fix this problem
You need to setup SSL for port 443
@@JuanNadal yes i did using cerbot... my question is why some functionality work in 80 not in 443
default server is working but another one is not working.
Can anyone help me?
You saved my so much time. Thank you sooo much
Thank you for posting such great content. However, can we do the same thing by using IIS ?
Thank you so much! so much appericate you made this simple.....
Thanks man! Your video was very informative.
do you have the same for windows 10?
I have a TL-WDR4300 router with openwrt nginx-ssl, acme and duckdns. I am struggling to install a reverse proxy any one have ever try anything like this?
Thank you very much for the clear explanation
I am trying to link multiole mqtt websockets on various domains... like e1.domain.com->mqtt1
e2.domain.com->mqtt2...etc
Please acknowledge me
You sound really similar to gotbletu! Thanks for the tutorial bro
How about if you have Cloudflare in between?
Cloudflare doesn't care, works fine with it.
Thanks. Love this one.
Can you provide ssl certificate to both the sites from your Nginx?
yes, you just need to sign the ssl certificate with the correct domain name and add it to the config file, or you could use a CA that way you only need to singe a single certificate.
Thanks Man you solve my problem
Thank you! 😄
thanks man!
to achive the think which he did earlier edit the listen to 8080 or 8081 in the /etc/nginx/sites-available/{yourfilename} to get the desired results as him