2018-06-22 15:59:29 +00:00
|
|
|
<Virtualhost *:80>
|
|
|
|
ServerName %%fqdn%%
|
|
|
|
AssignUserId #%%UID%% #%%GID%%
|
|
|
|
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
|
|
|
|
|
|
|
KeepAlive Off
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !/cgi-bin/
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !/.well-known/acme-challenge/
|
|
|
|
RewriteRule ^/(.*)$ https://%%fqdn%%/$1 [R=301,L]
|
|
|
|
|
|
|
|
</Virtualhost>
|
|
|
|
<VirtualHost *:443>
|
2013-02-18 14:55:42 +00:00
|
|
|
DocumentRoot /usr/share/alternc/panel/admin
|
2011-05-22 09:22:45 +00:00
|
|
|
AssignUserId alterncpanel alterncpanel
|
2012-08-24 15:40:01 +00:00
|
|
|
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
2011-03-06 19:11:49 +00:00
|
|
|
ServerName %%fqdn%%
|
2011-03-11 12:52:33 +00:00
|
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^/admin/(.*) /$1
|
2018-06-22 15:59:29 +00:00
|
|
|
|
2011-06-04 09:14:29 +00:00
|
|
|
alias /alternc-sql /usr/share/phpmyadmin
|
2012-08-26 17:20:10 +00:00
|
|
|
|
2012-08-26 17:55:44 +00:00
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^webmail /webmail-redirect.php [L]
|
|
|
|
|
2013-07-22 16:09:16 +00:00
|
|
|
# Mail autoconfig
|
|
|
|
RewriteRule ^mail/mailautoconfig.xml$ /mailautoconfig_thunderbird.php [L]
|
|
|
|
RewriteRule ^mail/config-v1.1.xml$ /mailautoconfig_thunderbird.php [L]
|
|
|
|
RewriteRule ^autodiscover/autodiscover.xml$ /mailautoconfig_outlook.php [L]
|
|
|
|
RewriteRule ^Autodiscover/Autodiscover.xml$ /mailautoconfig_outlook.php [L]
|
|
|
|
RewriteRule ^Autodiscover.xml$ mailautoconfig_outlook.php [L]
|
|
|
|
RewriteRule ^autodiscover.xml$ mailautoconfig_outlook.php [L]
|
|
|
|
|
2012-08-26 17:55:44 +00:00
|
|
|
# will be used to define aliases such as /javascript /squirrelmail ...
|
2012-08-26 17:20:10 +00:00
|
|
|
Include /etc/alternc/apache-panel.d/*.conf
|
|
|
|
|
2018-06-22 15:59:29 +00:00
|
|
|
SSLEngine On
|
|
|
|
SSLCertificateFile %%CRT%%
|
|
|
|
SSLCertificateKeyFile %%KEY%%
|
|
|
|
%%CHAINLINE%%
|
|
|
|
|
2010-12-21 09:34:10 +00:00
|
|
|
</VirtualHost>
|