Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost 111.222.33.44:80>
- SuexecUserGroup "#504" "#503"
- ServerName domainname.com
- ServerAlias www.domainname.com
- ServerAlias webmail.domainname.com
- ServerAlias admin.domainname.com
- ServerAlias autoconfig.domainname.com
- DocumentRoot /home/domainname/public_html
- ErrorLog /var/log/virtualmin/domainname.com_error_log
- CustomLog /var/log/virtualmin/domainname.com_access_log combined
- ScriptAlias /cgi-bin/ /home/domainname/cgi-bin/
- ScriptAlias /awstats/ /home/domainname/cgi-bin/
- ScriptAlias /autodiscover/autodiscover.xml /home/domainname/cgi-bin/autoconfig.cgi
- DirectoryIndex index.html index.htm index.php index.php4 index.php5
- <Directory /home/domainname/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/domainname/fcgi-bin/php5.fcgi .php
- FCGIWrapper /home/domainname/fcgi-bin/php5.fcgi .php5
- </Directory>
- <Directory /home/domainname/cgi-bin>
- allow from all
- AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
- </Directory>
- RewriteEngine on
- RewriteCond %{HTTP_HOST} =webmail.domainname.com
- RewriteRule ^(.*) https://domainname.com:11555/ [R]
- RewriteCond %{HTTP_HOST} =admin.domainname.com
- RewriteRule ^(.*) https://domainname.com:8888/ [R]
- RemoveHandler .php
- RemoveHandler .php5
- php_admin_value engine Off
- IPCCommTimeout 31
- FcgidMaxRequestLen 1073741824
- Alias /dav /home/domainname/public_html
- Alias /pipermail /var/lib/mailman/archives/public
- <Location /dav>
- DAV on
- AuthType Basic
- AuthName "domainname.com"
- AuthUserFile /home/domainname/etc/dav.digest.passwd
- Require valid-user
- ForceType text/plain
- Satisfy All
- RemoveHandler .php
- RemoveHandler .php5
- RewriteEngine off
- </Location>
- <Files awstats.pl>
- AuthName "domainname.com statistics"
- AuthType Basic
- AuthUserFile /home/domainname/.awstats-htpasswd
- require valid-user
- </Files>
- RedirectMatch /cgi-bin/mailman/([^/\.]*)(.cgi)?(.*) https://domainname.com:5051/virtualmin-mailman/unauthenticated/$1.cgi$3
- RedirectMatch /mailman/([^/\.]*)(.cgi)?(.*) https://domainname.com:5051/virtualmin-mailman/unauthenticated/$1.cgi$3
- Redirect /mail/config-v1.1.xml /cgi-bin/autoconfig.cgi
- php_value memory_limit 32M
- </VirtualHost>
- =====================================
- .htaccess
- #Options +FollowSymLinks -MultiViews
- # Turn mod_rewrite on
- RewriteEngine On
- #RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^([^/]+)?$ test.php?id=$1 [L,QSA]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement