|
CentOS Linux Server Guide |
iRedMail Customization -Assign different IPs and Ports for iRedMail Admin Services |
|||||||||||||||||||||||||||||||
|
For security concern, I customized the default IRedMail web service into 2 different parts:- External Web Services and Internal Web Services. For external web services we only allow webmail - roubecubemail. This is to ensure that iredadmin, phpmysql and phpldapadmin and awstats services do not open for public and only serve within my local environment.
Note:
For External Web Services
For Internal Web 192.168.1.6
ProcedureStep 1: Edit http.conf fileFirst, we need to backup the original httpd.conf file. Then edit the httpd.conf file with our VI.
Step 2: Modify Apache Server to use IP-Based Virtual HostingNext, go to the line "Listen 80". Comment it with # sign the add the following lines. This is to modify our Apache web services to use IP-Based Virtual Hosting. The reason of using IP-Based Virtual Hosting is that we want all the internal and external web services to use SSL.
Step3: Grouping and specify port services for VirtualHostI found a clean and easy way to manage all VirtualHosy. First create new file to control virtual host- sqroot.conf
Next, All in all the following lines. The following example, we specify port for 192.168.1.5 is 80 & 443. This is to ensure thar Roundcubemail webmail will be using port 80 and SSL(443). Make sure you save it.
You might might curios about iRedAdmin and Awstats is not there. The actual reason is the I cannot redirect both awstats and iReAdmin to any ports. So I leave 2 services to access as the following:-
https://192.168.1.6/iredamin/ https://192.168.1.6/awstats/awstats.pl
Step4: Restart the Apache servicesYes, we are done with the setting, restart the Apache Web Sever now
Step5: Verify web servicesLet us perform a quick verification on the setting. Access all your web services as listed below:-
|
|||||||||||||||||||||||||||||||
|
Copyright 2011 http://www.1a-centosserver.com All Rights Reserved All trademarks are the property of their respective owners. Contact Us | Terms of Use | Privacy Policy |