Тёмный

Using Nginx to Host Multiple Websites on One Server 

Garrett Love
Подписаться 19 тыс.
Просмотров 91 тыс.
50% 1

How to host multiple websites with Nginx.
Checkout out this recipe on Dev Grub:
devgrub.com/#/recipe/5ca144fb...
--------------------
DEV GRUB:
devgrub.com/
USE MY HOSTING LINK:
m.do.co/c/ffbb4875a5db
FACEBOOK:
/ garrettlove8
TWITTER:
/ garrettlove8

Опубликовано:

 

30 мар 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@ComidaForFamiliasInc
@ComidaForFamiliasInc 3 года назад
I spent 3 hours trying to figure out why it wouldn't load. I watch 10 minutes of your video and it works!
@yeppa31
@yeppa31 2 года назад
I've just looking for this like a 1 month lol. Thank you so much! And your teaching style is really amazing. U are a one of the good "tutorial guy" on RU-vid haha. tysm
@garrettlovetv
@garrettlovetv 2 года назад
Happy to help!
@donny_bahama
@donny_bahama 3 года назад
Thanks for this! Exactly what I’ve been looking for!
@shreyasshivakumar8578
@shreyasshivakumar8578 3 года назад
Your video helped me a lot to understand Nginx, thanks a lot!
@whatAIthinksOFit
@whatAIthinksOFit Год назад
This video sort my 30hrs tension in just 16 mins!!! Too good man
@NoajmIsMyName
@NoajmIsMyName 2 года назад
Love that fixing the issue along the way!
@jeremyr.7673
@jeremyr.7673 4 года назад
Great video! Thanks for making this, seriously.
@garrettlovetv
@garrettlovetv 4 года назад
Glad you enjoyed it!
@BilalMohammed1988
@BilalMohammed1988 Год назад
Sooperb lecture. I was searching for this.. Thank you. ❤️❤️❤️
@adithyasanthosh30
@adithyasanthosh30 3 года назад
Thank you for the great explaination.
@anatolionikiforidis8437
@anatolionikiforidis8437 2 года назад
Great work, nice and descriptive tutorial. Thank you.
@garrettlovetv
@garrettlovetv 2 года назад
Glad it was helpful!
@petertremblay3725
@petertremblay3725 2 года назад
Hi there and thank for making this helpful tutorial but would it be possible to explain how to do the same but with ssl, i already have my key generated and i just need to setup nginx to work with my ssl keys. Key were generated with putty and i have 3 domains.
@BrianBest
@BrianBest 3 года назад
Thanks for this!
@cog7india
@cog7india 3 года назад
Will this example works for asp.net core multiple websites on nginx?
@johnycage9887
@johnycage9887 3 года назад
Thanks. Appreciate live demo. (not edited fine-tuned)
@garrettlovetv
@garrettlovetv 3 года назад
You got it, thanks for watching!
@jorgeantoniomoreno2325
@jorgeantoniomoreno2325 3 года назад
Great video! thank you so much!
@garrettlovetv
@garrettlovetv 3 года назад
Thanks for watching!
@Asadraza-vy1cn
@Asadraza-vy1cn 3 года назад
many thanks , great video .
@garrettlovetv
@garrettlovetv 3 года назад
Thank you too!
@ariloguecom
@ariloguecom 3 года назад
do we need install bind9 to do this? (sorry it's a noob question :)
@Tlcunha81
@Tlcunha81 2 года назад
One thing I don't get. How is nginx set to port 80 for both domains. Isn't there a conflict?
@cloud2181
@cloud2181 2 года назад
Can you host multiple websites with different tech stacks on a VPS server?
@andredehcastro
@andredehcastro 2 года назад
thank you so much!!!!!
@lydi7845
@lydi7845 5 лет назад
Nice video! Does Nginx allow hosts to have root privilege across all the websites? For example, In my b2b software company, I need to be able to give clients basic front-end controls over their websites, but want to be able to auto-update our software that interfaces with each site, so we don't have to go into each client's website to make those updates? If anyone has an answer to this, I would be super appreciative.
@oussamanagda3737
@oussamanagda3737 4 года назад
Didi you find any solution about this, I'm kinda in the same situation. It would be so helpful if you answered me!
@ashishmaurya5348
@ashishmaurya5348 2 года назад
Same case please help
@Vstosky
@Vstosky 11 месяцев назад
If someone did not notice the problem he fixed at 14:52 was that root was pointing to index.html. Roots cant be files but folders. That solved the issie
@matthewlewington2470
@matthewlewington2470 3 года назад
Thank you good sir, you helped alot
@garrettlovetv
@garrettlovetv 3 года назад
Happy to help
@donielzoldan3183
@donielzoldan3183 3 года назад
Can you send a new dev grub recipe link?
@logantheyoyoman
@logantheyoyoman 4 года назад
You should look into remote ssh extension for vs code. Would save you all the click and dragging.
@marvin-kevinjuan2129
@marvin-kevinjuan2129 4 года назад
Remote access with vscode? And loging in preferably as root user because of the missing permissions - which vscode needs to save. Not sure if serious ...
@ikhwanrahman9595
@ikhwanrahman9595 3 года назад
how to deploy aws?
@VURGINN
@VURGINN 5 лет назад
Where’s your video explaining Subjects in RxJs?
@garrettlovetv
@garrettlovetv 5 лет назад
I have a video on component to component communication in Angular which uses subjects but I don't have one that explains Subjects in detail yet
@cassenhari3992
@cassenhari3992 2 года назад
the best + sub + like
@agentpx
@agentpx 4 года назад
Anyone knows what editor he is using?
@peacademics1753
@peacademics1753 4 года назад
VS Code
@cunninghamb505
@cunninghamb505 4 года назад
thanks , can you do one on certs for https
@garrettlovetv
@garrettlovetv 4 года назад
Possibly, I don't really do Nginx stuff these days. Thanks for watching!
@turker3498
@turker3498 2 года назад
thanks a lot
@garrettlovetv
@garrettlovetv 2 года назад
You are most welcome
@andyfeng6396
@andyfeng6396 3 года назад
change your dns servers
@fxstreamer238
@fxstreamer238 4 года назад
You are not hosting two apps you are just hosting two static html files thats different and thats not the approach for running multiple websites with different nodejs apps.
@garrettlovetv
@garrettlovetv 4 года назад
Ok, tell me more
@fxstreamer238
@fxstreamer238 4 года назад
@@garrettlovetv You have to write two apps app1=require(express) , app2=require(express) . then connect to different ports and then assign the ports to the apps with nginx
@thatguy1949
@thatguy1949 4 года назад
@@fxstreamer238 where can I read more about it?
@bibek8284
@bibek8284 4 года назад
FxStreamer can you explain more about it
@victorzcorp
@victorzcorp 4 года назад
@@fxstreamer238 my same problem.. :(
@wetbadger2174
@wetbadger2174 3 года назад
changing etc/nginx.conf broke my entire droplet
@wetbadger2174
@wetbadger2174 3 года назад
actually it was my fault. never mess with permissions on your etc folder
@ohiasdxfcghbljokasdjhnfvaw4ehr
@ohiasdxfcghbljokasdjhnfvaw4ehr 3 года назад
took me forever to figure out what this "engine X" thing was... I thought it was pronounced en-jinx
@ChristopherGray00
@ChristopherGray00 3 года назад
it is, he's pronouncing it wrong.
@andreikashin
@andreikashin 3 года назад
April FOOL
@zilog1
@zilog1 2 года назад
eww a mac
@thecondor5488
@thecondor5488 4 года назад
Normally I wouldn't put a thumbs down on a video because these videos take effort and regardless of the content they are much appreciated. However, when the first file you go into is already in your editor and you don't explain where that file lives so WE can bring it up as well is just plain annoying.
@wexwexexort
@wexwexexort 4 года назад
You are right actually but you can find it here /etc/nginx/nginx.conf Also; 09:35.
@garrettlovetv
@garrettlovetv 4 года назад
Thank you Mert for pointing to where it can be found. But overall you’re right, I should have been more specific. Thank you for the feedback, I’ll try to be better with that in future videos
@motezart2867
@motezart2867 3 года назад
I disagree. This video is not a nginx tutorial. There are tons of those already. This is a tutorial on how to host multiple sites on one droplet/instance, and there are very few tutorials on this specific thing. It assumes you already know the basics of nginx. For me it's 2 thumbs up, as it is. IMO this is not helpful feedback.
@tonysimuel861
@tonysimuel861 3 года назад
@@motezart2867 You are obviously on a different level than some of us. I appreciate your perspective on the matter, however, any good tutorial doesn't "assume" the knowledge of their viewer unless they explicitly state that is what is happening. And even then, it's just nice not to start in the middle of a screen. You can start from a point of reference where everyone can be on the same page. Otherwise, no matter how good the video, if I can't get to the point where the instructor is it's worthless. I still appreciate the effort though. And my thumbs down does not indicate a bad video. :) Thanks again @Garrett for the video.
@blalmal10a
@blalmal10a Год назад
YOU TALIK TOO MUCH.. tutorial not on point.. well done though
@sanjib.lamichhane
@sanjib.lamichhane Год назад
@Tlcunha81
@Tlcunha81 2 года назад
One thing I don't get. How is nginx set to port 80 for both domains. Isn't there a conflict?
Далее
The NGINX Crash Course
50:53
Просмотров 479 тыс.
How to host multiple websites on Nginx
4:39
Просмотров 5 тыс.
КАК Я ЭТО СДЕЛАЛА?
00:13
Просмотров 257 тыс.
66 Most Useful Websites Everyone Should Know!
44:06
Просмотров 1,2 млн
Reverse proxy nginx letsencrypt tutorial
17:12
Просмотров 116 тыс.
Traefik vs. Nginx performance benchmark
12:38
Просмотров 38 тыс.
How to Setup a Reverse Proxy on Home Network
28:15
Просмотров 70 тыс.