This video explains the simple steps to deploy multiple web applications in a single server using Virtual host. #nginx #virtualhost #webhosting #coderinboots
The difference between your video and others, is your video shows how it is done in the industry while the others just explain the theory and show how nginx works. Thank you for your help. Great Video.
Hello, I have searched and searched RU-vid for a tutorial on how to host multiple websites, some BIG youtubers has content about how it is done but your content is perfect, I love it. Can you do a tutorial on Ansible??
Thank you for the feedback. Glad that the content is useful. Considering the RAM and cores in your server, you can directly run the app on the server and expose the endpoints through nginx proxies and virtual hosts. Let me know if you want more details on this.
site A and site B pointing to same ip what does this means ?? can u explain this . is it like if only from thoes ip if site A hit then only content will be served ???
@@user-pc1pm1vb7p when you use nginx as a virtual host, you are basically telling nginx to route the requests that are received by it to the corresponding sites based on the domain name. Also, yeah since the request are received by nginx only single IP is used
In this tutorial you are serving static page what if i had a express server with backend how can i deploy multiple express apps?. A reply would be helpful
The approach is the same. I have already created a video on this topic. Just create the required proxy entries within each virtual host. Please check the video below. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Vmb-B9Q_6V4.htmlsi=FsVM_nJghPcu3HIC
I have uploaded the video with this content. Please watch it. One more video will get published tomorrow that explains the automatic allow/deny rule configuration using fail2ban.
Yes. It will work. In the nginx config, there is a line that considers any files present inside site-available and conf.d. We can configure any custom directory also for placing the configuration file
@@coderinboots thanks for your reply. do you have any video or documentation for how add GoDaddy SSL certificate in same configuration file. and also looking for path based routing
sweet tutorial, i used google vm, ubuntu and nginx, domain is on namecheap, everything goes good till i make a SSL certificate with certbot, i opened the 443 port on vm, but somehow the site doesnt connect. could you help me with that. thanks
Is the certificate generation successful. Are there any errors in the nginx logs. Check whether the nginx is set to listen request from all sources instead of just localhost.
@@coderinbootsyes, no error in the error.log. How i can do or check this: "Check whether the nginx is set to listen request from all sources instead of just localhost."
@@coderinboots yes, no error.log is empty. the default server is working, my custom was working before implemented the SSL certificate, my domain is in namecheap. how can i check or do this: Check whether the nginx is set to listen request from all sources instead of just localhost.
Yes, and the error.log is empty, default site is working without SSL, and custom was working till i made the SSL. i got my domain on namecheap. How can i do or heck this: Check whether the nginx is set to listen request from all sources instead of just localhost
@@karimmourice244 - You can create virtual host with document root as the subdirectory. It will open the subdirectory directly instead of opening the landing page.
There is another video in this channel that explains the reverse proxy. Please watch this video. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hiqJ7zKnOuU.html