Web server Configuration with more than One Website in Redhat Linux
Web server with more than one website in the sense many websites are sharing the static IP of the website. Major reason for using more than one website in a server is to share the IP address. Web server contains a static IP, which are shared between many number of website. This type of hosting is also called as shared hosting. Another reason is some website’s size may be in some MB and a question may arise why we have to waste static IP address for small website?,because static IP address cost is very high. we can overcome this by share IP address with more websites.
- Very low cost
- 100s of website can be hosted under single static IP
- Reverse lookup won’t work.
Server Configuration in Redhat
Changes in Web Server
// For default website
Changes in DNS Server
For using more than one website in a web server, we have to edit in forward.zone file of DNS server
station1.example.com IN A 192.168.1.101
station2.example.com IN A 192.168.1.101
www.example.com IN CNAME station1.example.com
www1.example.com IN CNAME station1.example.com