Thank you very much. This was very helpful. However, I would like to know how can I have SSL for multiple different domains on the same server? In your video, it's the SSL for the same domain - just different subdomains.
What if I want to render my sitefirst page under sitesecond url and render sitefirst under sitefirst. What I mean is i want keep my sitesecond url but render sitefirst page.
Thank you for the video. It is working for me with two websites (default htdocs directory is one, new folder for a vhost is second), but when I add a third website it is pointed to the default htdocs directory as well. I created a new vhost section for each domain. What should i do to fix it?
Thanks. You need to set the DocumentRoot property on the VirtualHost for the third website. Like this DocumentRoot "/www/website3" # directory to third website ServerName www.website3.com # Other directives here
@@vladsavecoding4111 I did that, but somehow there was another conf file directing the third domain to default root folder (I probably did something stupid when creating certificates). I figured it out eventually and fixed. Thank you!
Unreal video, clear, concise and easy to follow. Thank you brother
Wow very helpful. Thanks!
Thanks for the educatiinal video!
Thank you very much. This was very helpful.
However, I would like to know how can I have SSL for multiple different domains on the same server? In your video, it's the SSL for the same domain - just different subdomains.
The same technique should work with different domains as well. I used different subdomain because I only own 1 domain
Thank you :)
Is it possible for 3 websites?
What if I want to render my sitefirst page under sitesecond url and render sitefirst under sitefirst. What I mean is i want keep my sitesecond url but render sitefirst page.
If I understand correctly, you'll have to add a 301 redirect under sitesecond virtualhost from /page to sitefirst/page
Thank you for the video. It is working for me with two websites (default htdocs directory is one, new folder for a vhost is second), but when I add a third website it is pointed to the default htdocs directory as well. I created a new vhost section for each domain. What should i do to fix it?
Thanks. You need to set the DocumentRoot property on the VirtualHost for the third website. Like this
DocumentRoot "/www/website3" # directory to third website
ServerName www.website3.com
# Other directives here
@@vladsavecoding4111 I did that, but somehow there was another conf file directing the third domain to default root folder (I probably did something stupid when creating certificates). I figured it out eventually and fixed. Thank you!
@@guiperalta Nice!