Yesterday, my boss wanted to start his new domain on old web server. I ever heard about apache could start many domain on one server by virtual host. I tried to find document for configuration and I found….
1. Change ServerName variable in /etc/httpd/conf/httpd.conf to your IP Address.
NameVirtualHost 192.168.0.3 |
2. Create virtual host by add below these lines in /etc/httpd/conf/httpd.conf :
<virtualhost>
</virtualhost>
</virtualhost> |
3. Restart httpd service
# service httpd restart |
Perfect !!!! Woooo 😀