-
-
Save hadifarnoud/c644a5ef8c87a1c29edb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SuexecUserGroup "#1026" "#1020" | |
ServerName any1.io | |
ServerAlias www.any1.io | |
ServerAlias webmail.any1.io | |
ServerAlias admin.any1.io | |
ServerAlias autoconfig.any1.io | |
DocumentRoot /home/any1/public_html | |
ErrorLog /var/log/virtualmin/any1.io_error_log | |
CustomLog /var/log/virtualmin/any1.io_access_log combined | |
ScriptAlias /cgi-bin/ /home/any1/cgi-bin/ | |
DirectoryIndex index.html index.htm index.php index.php4 index.php5 | |
<Directory /home/any1/public_html> | |
Options -Indexes +IncludesNOEXEC +SymLinksifOwnerMatch +ExecCGI | |
allow from all | |
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch | |
AddHandler fcgid-script .php | |
AddHandler fcgid-script .php5 | |
FCGIWrapper /home/any1/fcgi-bin/php5.fcgi .php | |
FCGIWrapper /home/any1/fcgi-bin/php5.fcgi .php5 | |
</Directory> | |
<Directory /home/any1/cgi-bin> | |
allow from all | |
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch | |
</Directory> | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} =webmail.any1.io | |
RewriteRule ^(.*) https://any1.io:20000/ [R] | |
RewriteCond %{HTTP_HOST} =admin.any1.io | |
RewriteRule ^(.*) https://any1.io:10000/ [R] | |
RemoveHandler .php | |
RemoveHandler .php5 | |
php_admin_value engine Off | |
IPCCommTimeout 31 | |
Redirect /mail/config-v1.1.xml /cgi-bin/autoconfig.cgi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment