Create Virtual Host and host multiple domains on single Apache Web Server.
Автор: Michael Eate
Загружено: 2019-11-01
Просмотров: 171
Описание:
In this video, let us see how to host two sample static websites in Apache HTTP web server on Centos 7 machine.
Steps followed for the same are as below:-
1. Check httpd service is active or not.
2. Also check 127.0.0.1 or localhost in web browser.
3. Create two directories site1 & site2 in /var/www/html/
4. Change the ownership of site1 & site2 to apache
5. Create sample index.html page in both site1 & site2.
6. Create two directories sites-available & sites-enabled in /etc/httpd
7. Change /etc/httpd/conf/httpd.conf as per our needs.
8. Create site1.com.conf, site2.com.conf configuration files in sites-available directory.
9. Include virtual host details with server and document root, etc. details in those configuration files.
10. Create Symbolic Links of configuration files site1.com.conf and site2.com.conf in sites-available to sites-enabled directories.
11. Check and modify /etc/hosts.
12. Allow incoming traffic through firewall.
13. Disable SELinux in our localhost, but not in real time.
14. Restart httpd service
15. If not success check for errors in logs.
16. Check site1.com & site2.com in browser.
For Installation of Apache Web Server, check the below link.
Link: • Host a static website on Apache Web server.
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: