<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Changing iredmail services alias to virtual hosts]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic3907.xml" />
	<updated>2012-09-20T23:31:03Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic3907-changing-iredmail-services-alias-to-virtual-hosts.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Changing iredmail services alias to virtual hosts]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18285.html#p18285" />
			<content type="html"><![CDATA[<p>Thanks for your sharing.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-09-20T23:31:03Z</updated>
			<id>http://www.iredmail.org/forum/post18285.html#p18285</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing iredmail services alias to virtual hosts]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18277.html#p18277" />
			<content type="html"><![CDATA[<p>Problem solved and closed !</p><p>Got the code for everyone <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Add this 2 lines in /etc/httpd/conf/httpd.conf<br />--------------------------------------------<br />NameVirtualHost *:443<br />NameVirtualHost *:80<br />---------------------------------------------</p><p>in /etc/httpd/conf.d/set up this files</p><p>SSL.CONF<br />---------------------------------------------------------------------------------------------------------------------<br />LoadModule ssl_module modules/mod_ssl.so<br />Listen 443<br />SSLPassPhraseDialog&nbsp; builtin<br />SSLSessionCache&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shmcb:/var/cache/mod_ssl/scache(512000)<br />SSLSessionCacheTimeout&nbsp; 300<br />SSLMutex default<br />SSLRandomSeed startup file:/dev/urandom&nbsp; 256<br />SSLRandomSeed connect builtin<br />SSLCryptoDevice builtin<br />---------------------------------------------------------------------------------------------------------------------</p><br /><br /><p>ROUNDCUBEMAIL.CONF<br />---------------------------------------------------------------------------------------------------------------------<br />######### <a href="http://HTTP://WWW.DOMAIN.PT/MAIL">HTTP://WWW.DOMAIN.PT/MAIL</a>&nbsp; 80 #########</p><p>Alias /mail &quot;/var/www/roundcubemail/&quot;</p><br /><br /><p>######### <a href="http://HTTP://WWW.DOMAIN.PT/MAIL">HTTP://WWW.DOMAIN.PT/MAIL</a>&nbsp; 443 #########</p><p>&lt;VirtualHost *:443&gt;<br />&nbsp; &nbsp;ServerAdmin administrator@domain.pt<br />&nbsp; &nbsp;DocumentRoot /var/www/<br />&nbsp; &nbsp;ServerName <a href="http://www.domain.pt">www.domain.pt</a><br />&nbsp; &nbsp;ServerAlias domain.pt</p><p>&nbsp; &nbsp;Alias /mail &quot;/var/www/roundcubemail/&quot;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/roundcubemail&quot;&gt;<br />&nbsp; &nbsp; &nbsp;Options -Indexes FollowSymlinks MultiViews<br />&nbsp; &nbsp; &nbsp;AllowOverride All<br />&nbsp; &nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp; &nbsp;Allow from all<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&nbsp; &nbsp;ErrorLog logs/ssl_error_mail2_log<br />&nbsp; &nbsp;TransferLog logs/ssl_access_log<br />&nbsp; &nbsp;LogLevel warn<br />&nbsp; &nbsp;SSLEngine on<br />&nbsp; &nbsp;SSLProtocol all -SSLv2<br />&nbsp; &nbsp;SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />&nbsp; &nbsp;SSLCertificateFile /etc/pki/tls/certs/iRedMail_CA.pem<br />&nbsp; &nbsp;SSLCertificateKeyFile /etc/pki/tls/private/iRedMail.key</p><p>&nbsp; &nbsp;&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Files&gt;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/cgi-bin&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&nbsp; &nbsp;setEnvIf User-Agent &quot;.*MSIE.*&quot; \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nokeepalive ssl-unclean-shutdown \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;downgrade-1.0 force-response-1.0</p><p>&nbsp; &nbsp;CustomLog logs/ssl_request_mail2_log \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;</p><p>&lt;/VirtualHost&gt;</p><p>######### <a href="http://HTTP://MAIL.DOMAIN.PT">HTTP://MAIL.DOMAIN.PT</a>&nbsp; 80 #########</p><p>&lt;VirtualHost *:80&gt;<br />&nbsp; &nbsp;ServerAdmin administrator@domain.pt<br />&nbsp; &nbsp;DocumentRoot /var/www/<br />&nbsp; &nbsp;ServerName mail.domain.pt<br />&nbsp; &nbsp;ServerAlias webmail.domain.pt</p><p>&nbsp; &nbsp;Alias / &quot;/var/www/roundcubemail/&quot;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/roundcubemail&quot;&gt;<br />&nbsp; &nbsp; &nbsp;Options -Indexes FollowSymlinks MultiViews<br />&nbsp; &nbsp; &nbsp;AllowOverride All<br />&nbsp; &nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp; &nbsp;Allow from all<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&lt;/VirtualHost&gt;</p><br /><p>######### <a href="http://HTTP://MAIL.DOMAIN.PT">HTTP://MAIL.DOMAIN.PT</a>&nbsp; 443 #########</p><p>&lt;VirtualHost *:443&gt;<br />&nbsp; &nbsp;ServerAdmin administrator@domain.pt<br />&nbsp; &nbsp;DocumentRoot /var/www/<br />&nbsp; &nbsp;ServerName mail.domain.pt<br />&nbsp; &nbsp;ServerAlias webmail.domain.pt</p><p>&nbsp; &nbsp;Alias / &quot;/var/www/roundcubemail/&quot;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/roundcubemail&quot;&gt;<br />&nbsp; &nbsp; &nbsp;Options -Indexes FollowSymlinks MultiViews<br />&nbsp; &nbsp; &nbsp;AllowOverride All<br />&nbsp; &nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp; &nbsp;Allow from all<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&nbsp; &nbsp;ErrorLog logs/ssl_error_mail1_log<br />&nbsp; &nbsp;TransferLog logs/ssl_access_mail1_log<br />&nbsp; &nbsp;LogLevel warn<br />&nbsp; &nbsp;SSLEngine on<br />&nbsp; &nbsp;SSLProtocol all -SSLv2<br />&nbsp; &nbsp;SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />&nbsp; &nbsp;SSLCertificateFile /etc/pki/tls/certs/iRedMail_CA.pem<br />&nbsp; &nbsp;SSLCertificateKeyFile /etc/pki/tls/private/iRedMail.key</p><p>&nbsp; &nbsp;&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Files&gt;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/cgi-bin&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&nbsp; &nbsp;setEnvIf User-Agent &quot;.*MSIE.*&quot; \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nokeepalive ssl-unclean-shutdown \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;downgrade-1.0 force-response-1.0</p><p>&nbsp; &nbsp;CustomLog logs/ssl_request_mail1_log \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;</p><p>&lt;/VirtualHost&gt;<br />---------------------------------------------------------------------------------------------------------------------</p><br /><p>PHPMYADMIN.CONF<br />---------------------------------------------------------------------------------------------------------------------<br />####### <a href="http://domain.pt/phpmyadmin">http://domain.pt/phpmyadmin</a>&nbsp; 80 #######<br />Alias /phpmyadmin &quot;/var/www/phpmyadmin/&quot;</p><p>&lt;Directory /var/www/phpmyadmin/&gt;<br />#pulls out to https<br />&nbsp; &nbsp;RewriteEngine On<br />&nbsp; &nbsp;RewriteCond %{HTTPS} off<br />&nbsp; &nbsp;RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}</p><p>&nbsp; &nbsp;Options -Indexes FollowSymlinks MultiViews<br />&nbsp; &nbsp;AllowOverride All<br />&nbsp; &nbsp;Options FollowSymLinks<br />&nbsp; &nbsp; Order allow,deny<br />&nbsp; &nbsp; Allow from all<br />&lt;/Directory&gt;</p><br /><p>####### dbadmin.domain.pt&nbsp; 443 #######</p><p>&lt;VirtualHost *:443&gt;<br />&nbsp; &nbsp;ServerAdmin administrator@domain.pt<br />&nbsp; &nbsp;DocumentRoot /var/www/<br />&nbsp; &nbsp;ServerName dbadmin.domain.pt</p><p>&nbsp; &nbsp;Alias / &quot;/var/www/phpmyadmin/&quot;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/phpmyadmin/&quot;&gt;<br />&nbsp; &nbsp; &nbsp;Options -Indexes FollowSymlinks MultiViews<br />&nbsp; &nbsp; &nbsp;AllowOverride All<br />&nbsp; &nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp; &nbsp;Allow from all<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><br /><p>&nbsp; &nbsp;ErrorLog logs/ssl_error_phpmyadmin_log<br />&nbsp; &nbsp;TransferLog logs/ssl_access_phpmyadmin_log<br />&nbsp; &nbsp;LogLevel warn<br />&nbsp; &nbsp;SSLEngine on<br />&nbsp; &nbsp;SSLProtocol all -SSLv2<br />&nbsp; &nbsp;SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />&nbsp; &nbsp;SSLCertificateFile /etc/pki/tls/certs/iRedMail_CA.pem<br />&nbsp; &nbsp;SSLCertificateKeyFile /etc/pki/tls/private/iRedMail.key</p><p>&nbsp; &nbsp;&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Files&gt;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/cgi-bin&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>setEnvIf User-Agent &quot;.*MSIE.*&quot; \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nokeepalive ssl-unclean-shutdown \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;downgrade-1.0 force-response-1.0</p><p>&nbsp; &nbsp;CustomLog logs/ssl_request_phpmyadmin_log \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;<br />&lt;/VirtualHost&gt;<br />---------------------------------------------------------------------------------------------------------------------</p><br /><br /><p>IREDADMIN.CONF<br />---------------------------------------------------------------------------------------------------------------------<br />WSGISocketPrefix /var/run/wsgi<br />WSGIDaemonProcess iredadmin user=iredadmin threads=15<br />WSGIProcessGroup iredadmin</p><p>AddType text/html .py</p><p>Alias /iredadmin/static &quot;/var/www/iredadmin/static/&quot;<br />WSGIScriptAlias /iredadmin &quot;/var/www/iredadmin/iredadmin.py/&quot;</p><p>&lt;Directory /var/www/iredadmin/&gt;<br />#pulls out to https<br />&nbsp; &nbsp;RewriteEngine On<br />&nbsp; &nbsp;RewriteCond %{HTTPS} off<br />&nbsp; &nbsp;RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}</p><p>&nbsp; &nbsp;Options -Indexes FollowSymlinks MultiViews<br />&nbsp; &nbsp;AllowOverride All<br />&nbsp; &nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp; &nbsp;Allow from all<br />&lt;/Directory&gt;</p><br /><p>&lt;VirtualHost *:443&gt;<br />&nbsp; &nbsp;ServerAdmin administrator@domain.pt<br />&nbsp; &nbsp;DocumentRoot /var/www/<br />&nbsp; &nbsp;ServerName admin.domain.pt</p><p>&nbsp; &nbsp;Alias /static &quot;/var/www/iredadmin/static/&quot;<br />&nbsp; &nbsp;WSGIScriptAlias / /var/www/iredadmin/iredadmin.py/</p><p>&nbsp; &nbsp;&lt;Directory /var/www/iredadmin/&gt;<br />&nbsp; &nbsp; &nbsp;Options -Indexes FollowSymlinks MultiViews<br />&nbsp; &nbsp; &nbsp;AllowOverride All<br />&nbsp; &nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp; &nbsp;Allow from all<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&nbsp; &nbsp;ErrorLog logs/ssl_error_iredadmin_log<br />&nbsp; &nbsp;TransferLog logs/ssl_access_iredadmin_log<br />&nbsp; &nbsp;LogLevel warn<br />&nbsp; &nbsp;SSLEngine on<br />&nbsp; &nbsp;SSLProtocol all -SSLv2<br />&nbsp; &nbsp;SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />&nbsp; &nbsp;SSLCertificateFile /etc/pki/tls/certs/iRedMail_CA.pem<br />&nbsp; &nbsp;SSLCertificateKeyFile /etc/pki/tls/private/iRedMail.key</p><p>&nbsp; &nbsp;&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Files&gt;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/cgi-bin&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&nbsp; &nbsp;setEnvIf User-Agent &quot;.*MSIE.*&quot; \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nokeepalive ssl-unclean-shutdown \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;downgrade-1.0 force-response-1.0</p><p>&nbsp; &nbsp;CustomLog logs/ssl_request_iredadmin_log \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;<br />&lt;/VirtualHost&gt;<br />---------------------------------------------------------------------------------------------------------------------</p><br /><p>AWSTATS.CONF<br />---------------------------------------------------------------------------------------------------------------------</p><p>Alias /awstats/icon &quot;/var/www/awstats/icon/&quot;<br />ScriptAlias /awstats &quot;/var/www/awstats/&quot;</p><br /><p>&lt;Directory /var/www/awstats/&gt;<br />&nbsp; &nbsp; DirectoryIndex awstats.pl<br />&nbsp; &nbsp; Options +ExecCGI<br />&nbsp; &nbsp; Order allow,deny<br />&nbsp; &nbsp; allow from all</p><p>&nbsp; &nbsp; AuthName &quot;Authorization Required&quot;<br />&nbsp; &nbsp; AuthType Basic</p><p>&nbsp; &nbsp; AuthMYSQLEnable On<br />&nbsp; &nbsp; AuthMySQLHost 127.0.0.1<br />&nbsp; &nbsp; AuthMySQLPort 3306<br />&nbsp; &nbsp; AuthMySQLUser vmail<br />&nbsp; &nbsp; AuthMySQLPassword vPv5qi7hpwN1048vf9QUA8uEM5t10p<br />&nbsp; &nbsp; AuthMySQLDB vmail<br />&nbsp; &nbsp; AuthMySQLUserTable admin<br />&nbsp; &nbsp; AuthMySQLNameField username<br />&nbsp; &nbsp; AuthMySQLPasswordField password<br />&nbsp; &nbsp; Require valid-user<br />&lt;/Directory&gt;</p><br /><br /><p>&lt;VirtualHost *:443&gt;<br />&nbsp; &nbsp;ServerAdmin administrator@domain.pt<br />&nbsp; &nbsp;DocumentRoot /var/www/<br />&nbsp; &nbsp;ServerName stats.domain.pt</p><p>&nbsp; &nbsp;Alias /awstats/icon &quot;/var/www/awstats/icon/&quot;<br />&nbsp; &nbsp;Alias /awstats/css &quot;/var/www/awstats/css/&quot;<br />&nbsp; &nbsp;Alias /awstats/js &quot;/var/www/awstats/js/&quot;<br />&nbsp; &nbsp;Alias /awstats/classes &quot;/var/www/awstats/classes/&quot;</p><p>&nbsp; &nbsp;ScriptAlias / &quot;/var/www/awstats/&quot;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/awstats/&quot;&gt;<br />&nbsp; &nbsp; &nbsp;DirectoryIndex awstats.pl<br />&nbsp; &nbsp; &nbsp;Options +ExecCGI<br />&nbsp; &nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp; &nbsp;allow from all</p><p>&nbsp; &nbsp; &nbsp;AuthName &quot;Authorization Required&quot;<br />&nbsp; &nbsp; &nbsp;AuthType Basic</p><p>&nbsp; &nbsp; &nbsp;AuthMYSQLEnable On<br />&nbsp; &nbsp; &nbsp;AuthMySQLHost 127.0.0.1<br />&nbsp; &nbsp; &nbsp;AuthMySQLPort 3306<br />&nbsp; &nbsp; &nbsp;AuthMySQLUser vmail<br />&nbsp; &nbsp; &nbsp;AuthMySQLPassword vPv5qi7hpwN1048vf9QUA8uEM5t10p<br />&nbsp; &nbsp; &nbsp;AuthMySQLDB vmail<br />&nbsp; &nbsp; &nbsp;AuthMySQLUserTable admin<br />&nbsp; &nbsp; &nbsp;AuthMySQLNameField username<br />&nbsp; &nbsp; &nbsp;AuthMySQLPasswordField password<br />&nbsp; &nbsp; &nbsp;Require valid-user<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><br /><p>&nbsp; &nbsp;ErrorLog logs/ssl_error_awstats_log<br />&nbsp; &nbsp;TransferLog logs/ssl_access_awstats_log<br />&nbsp; &nbsp;LogLevel warn<br />&nbsp; &nbsp;SSLEngine on<br />&nbsp; &nbsp;SSLProtocol all -SSLv2<br />&nbsp; &nbsp;SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />&nbsp; &nbsp;SSLCertificateFile /etc/pki/tls/certs/iRedMail_CA.pem<br />&nbsp; &nbsp;SSLCertificateKeyFile /etc/pki/tls/private/iRedMail.key</p><p>&nbsp; &nbsp;&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Files&gt;</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/cgi-bin&quot;&gt;<br />&nbsp; &nbsp; &nbsp; SSLOptions +StdEnvVars<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>setEnvIf User-Agent &quot;.*MSIE.*&quot; \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nokeepalive ssl-unclean-shutdown \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;downgrade-1.0 force-response-1.0</p><p>&nbsp; &nbsp;CustomLog logs/ssl_request_awstats_log \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;<br />&lt;/VirtualHost&gt;<br />---------------------------------------------------------------------------------------------------------------------</p><p>With this you can have both working !!</p><p>for example:<br /><a href="http://www.domain.com/mail">www.domain.com/mail</a>&nbsp; &nbsp; &nbsp;and&nbsp; &nbsp; mail.domain.com <img src="http://www.iredmail.org/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[digitalbit]]></name>
				<uri>http://www.iredmail.org/forum/user31372.html</uri>
			</author>
			<updated>2012-09-20T14:57:19Z</updated>
			<id>http://www.iredmail.org/forum/post18277.html#p18277</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing iredmail services alias to virtual hosts]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18241.html#p18241" />
			<content type="html"><![CDATA[<p>If you say so ... let&#039;s make it work <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Setting my /etc/httpd/conf.d/roubcubemail.conf as this:</p><p>----------------------------------------------------------------------------------------------------------------<br />LoadModule ssl_module modules/mod_ssl.so<br />Listen 443<br />SSLPassPhraseDialog&nbsp; builtin<br />SSLSessionCache&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shmcb:/var/cache/mod_ssl/scache(512000)<br />SSLSessionCacheTimeout&nbsp; 300<br />SSLMutex default<br />SSLRandomSeed startup file:/dev/urandom&nbsp; 256<br />SSLRandomSeed connect builtin<br />SSLCryptoDevice builtin</p><br /><p>&lt;VirtualHost *:443&gt;<br />&nbsp; &nbsp;ServerAdmin administrator@domain.pt<br />&nbsp; &nbsp;DocumentRoot /var/www/roundcubemail<br />&nbsp; &nbsp;ServerName mail.domain.pt<br />&nbsp; &nbsp;ServerAlias webmail.domain.pt</p><p>&nbsp; &nbsp;&lt;Directory &quot;/var/www/roundcubemail&quot;&gt;<br />&nbsp; &nbsp; &nbsp; Options -Indexes IncludesNOEXEC FollowSymLinks<br />&nbsp; &nbsp; &nbsp; AllowOverride All<br />&nbsp; &nbsp; &nbsp; Order allow,deny<br />&nbsp; &nbsp; &nbsp; Allow from all<br />&nbsp; &nbsp;&lt;/Directory&gt;</p><p>&nbsp; &nbsp;ErrorLog logs/ssl_error_log<br />&nbsp; &nbsp;TransferLog logs/ssl_access_log<br />&nbsp; &nbsp;LogLevel warn<br />&nbsp; &nbsp;SSLEngine on<br />&nbsp; &nbsp;SSLProtocol all -SSLv2<br />&nbsp; &nbsp;SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />&nbsp; &nbsp;SSLCertificateFile /etc/pki/tls/certs/iRedMail_CA.pem<br />&nbsp; &nbsp;SSLCertificateKeyFile /etc/pki/tls/private/iRedMail.key</p><p>&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;<br />&nbsp; &nbsp; SSLOptions +StdEnvVars<br />&lt;/Files&gt;<br />&lt;Directory &quot;/var/www/cgi-bin&quot;&gt;<br />&nbsp; &nbsp; SSLOptions +StdEnvVars<br />&lt;/Directory&gt;</p><p>SetEnvIf User-Agent &quot;.*MSIE.*&quot; \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nokeepalive ssl-unclean-shutdown \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;downgrade-1.0 force-response-1.0</p><p>#CustomLog logs/ssl_request_log \<br />#&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;</p><br /><p># Logging<br />&nbsp; ErrorLog /var/log/httpd/roundcubemail-error-log<br />&nbsp; CustomLog /var/log/httpd/roundcubemail-acces-log combined</p><p>&lt;/VirtualHost&gt;<br />-----------------------------------------------------------------------------------------------------------</p><p>.... then disable your ssl.conf (installation default)!</p><p># service httpd restart </p><p>type URL [<a href="https://mail.domain.pt">https://mail.domain.pt</a>]</p><p>Works perfect !! <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>now !! adding and enabling your default ssl.conf with &lt;VirtualHost _default_:443&gt; Alias /mail &quot;/var/www/roundcubemail/&quot; ..... </p><p># service httpd restart </p><p>type URL [<a href="https://www.domain.pt/mail">https://www.domain.pt/mail</a>] .... and NOT working <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>Any ideas ?!</p>]]></content>
			<author>
				<name><![CDATA[digitalbit]]></name>
				<uri>http://www.iredmail.org/forum/user31372.html</uri>
			</author>
			<updated>2012-09-18T11:49:31Z</updated>
			<id>http://www.iredmail.org/forum/post18241.html#p18241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing iredmail services alias to virtual hosts]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18237.html#p18237" />
			<content type="html"><![CDATA[<p>Of course alias work with virtual host. I suggest you make virtual host work first.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-09-18T11:00:05Z</updated>
			<id>http://www.iredmail.org/forum/post18237.html#p18237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing iredmail services alias to virtual hosts]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18236.html#p18236" />
			<content type="html"><![CDATA[<p>Not much !</p><p>But ... is it possible to have both working ? Alias and Vhost ?</p>]]></content>
			<author>
				<name><![CDATA[digitalbit]]></name>
				<uri>http://www.iredmail.org/forum/user31372.html</uri>
			</author>
			<updated>2012-09-18T09:00:06Z</updated>
			<id>http://www.iredmail.org/forum/post18236.html#p18236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing iredmail services alias to virtual hosts]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18226.html#p18226" />
			<content type="html"><![CDATA[<p>Any related error log in Apache log file?</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-09-17T23:30:12Z</updated>
			<id>http://www.iredmail.org/forum/post18226.html#p18226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Changing iredmail services alias to virtual hosts]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18222.html#p18222" />
			<content type="html"><![CDATA[<p>==== ==== - iRedMail version: 0.8.1<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Linux/BSD distribution name and version: CentOS 6.3<br />- Related log if you&#039;re reporting an issue: <br />==== </p><p>Hello everyone !</p><p>Iredmail delivers the encrypted services as alias:</p><p><a href="http://www.domain.com/mail">www.domain.com/mail</a> (email)<br /><a href="http://www.domain.com/iredmail">www.domain.com/iredmail</a> (admin management)<br /><a href="http://www.domain.com/phpmyadmin/">www.domain.com/phpmyadmin/</a> (DB management)<br />wwww.domain.com/awstats/awstats.pl?config=web (statistics)</p><p>... all with SSL connections (443 port) configured in /etc/httpd/conf.d/ssl.conf as alias !<br />All of them are sub domains from <a href="http://www.domain.com">www.domain.com</a> !</p><br /><p>I need to make this names available :</p><p>mail.domain.com<br />webmail.domain.com<br />iredmain.domain.com<br />phpmyadmin.domain.com<br />awstats.domains.com<br />&nbsp; <br />I already registered all in my DNS!!</p><p>The question is when I edit roundcubemail.conf as this :</p><p>----------------------------------------------------------------------------------------------------<br />NameVirtualHost *:443</p><p>&lt;VirtualHost *:443&gt;<br />&nbsp; ServerAdmin administrator@domain.pt<br />&nbsp; DocumentRoot /var/www/roundcubemail<br />&nbsp; ServerName mail.domain.pt<br />&nbsp; ServerAlias webmail.domain.pt</p><p>&nbsp; &lt;Directory &quot;/var/www/roundcubemail&quot;&gt;<br />&nbsp; &nbsp; &nbsp; Options -Indexes IncludesNOEXEC FollowSymLinks<br />&nbsp; &nbsp; &nbsp; AllowOverride All<br />&nbsp; &nbsp; &nbsp; Order allow,deny<br />&nbsp; &nbsp; &nbsp; Allow from all<br />&nbsp; &lt;/Directory&gt;</p><p>&nbsp; SSLEngine on<br />&nbsp; SSLProtocol all -SSLv2<br />&nbsp; SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />&nbsp; SSLCertificateFile /etc/pki/tls/certs/iRedMail_CA.pem<br />&nbsp; SSLCertificateKeyFile /etc/pki/tls/private/iRedMail.key<br />&nbsp; SetEnvIf User-Agent &quot;.*MSIE.*&quot; \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nokeepalive ssl-unclean-shutdown \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;downgrade-1.0 force-response-1.0</p><br /><p># Logging<br />&nbsp; ErrorLog /var/log/httpd/roundcubemail-error-log<br />&nbsp; CustomLog /var/log/httpd/roundcubemail-acces-log combined<br />&lt;/VirtualHost&gt;<br />----------------------------------------------------------------------------------------------------</p><p>... all standard iredmail alias (mail/iredadmin/phpmyadmin/ etc ...) quit working! <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><br /><p>How can I have both working ? for example:</p><p><a href="http://www.domain.com/mail">www.domain.com/mail</a>&nbsp; &nbsp; &nbsp;and&nbsp; &nbsp; mail.domain.com ?</p><p>... or if I enable apache virtual hosting for this services, all alias became deprecated ?</p><p>All help are welcome ! <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[digitalbit]]></name>
				<uri>http://www.iredmail.org/forum/user31372.html</uri>
			</author>
			<updated>2012-09-17T16:12:26Z</updated>
			<id>http://www.iredmail.org/forum/post18222.html#p18222</id>
		</entry>
</feed>
