Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. <VirtualHost 111.222.33.44:80>
  2. SuexecUserGroup "#504" "#503"
  3. ServerName domainname.com
  4. ServerAlias www.domainname.com
  5. ServerAlias webmail.domainname.com
  6. ServerAlias admin.domainname.com
  7. ServerAlias autoconfig.domainname.com
  8. DocumentRoot /home/domainname/public_html
  9. ErrorLog /var/log/virtualmin/domainname.com_error_log
  10. CustomLog /var/log/virtualmin/domainname.com_access_log combined
  11. ScriptAlias /cgi-bin/ /home/domainname/cgi-bin/
  12. ScriptAlias /awstats/ /home/domainname/cgi-bin/
  13. ScriptAlias /autodiscover/autodiscover.xml /home/domainname/cgi-bin/autoconfig.cgi
  14. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  15. <Directory /home/domainname/public_html>
  16. Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
  17. allow from all
  18. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
  19. AddHandler fcgid-script .php
  20. AddHandler fcgid-script .php5
  21. FCGIWrapper /home/domainname/fcgi-bin/php5.fcgi .php
  22. FCGIWrapper /home/domainname/fcgi-bin/php5.fcgi .php5
  23. </Directory>
  24.  
  25. <Directory /home/domainname/cgi-bin>
  26. allow from all
  27. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
  28. </Directory>
  29. RewriteEngine on
  30. RewriteCond %{HTTP_HOST} =webmail.domainname.com
  31. RewriteRule ^(.*) https://domainname.com:11555/ [R]
  32. RewriteCond %{HTTP_HOST} =admin.domainname.com
  33. RewriteRule ^(.*) https://domainname.com:8888/ [R]
  34. RemoveHandler .php
  35. RemoveHandler .php5
  36. php_admin_value engine Off
  37. IPCCommTimeout 31
  38. FcgidMaxRequestLen 1073741824
  39. Alias /dav /home/domainname/public_html
  40. Alias /pipermail /var/lib/mailman/archives/public
  41. <Location /dav>
  42. DAV on
  43. AuthType Basic
  44. AuthName "domainname.com"
  45. AuthUserFile /home/domainname/etc/dav.digest.passwd
  46. Require valid-user
  47. ForceType text/plain
  48. Satisfy All
  49. RemoveHandler .php
  50. RemoveHandler .php5
  51. RewriteEngine off
  52. </Location>
  53. <Files awstats.pl>
  54. AuthName "domainname.com statistics"
  55. AuthType Basic
  56. AuthUserFile /home/domainname/.awstats-htpasswd
  57. require valid-user
  58. </Files>
  59. RedirectMatch /cgi-bin/mailman/([^/\.]*)(.cgi)?(.*) https://domainname.com:5051/virtualmin-mailman/unauthenticated/$1.cgi$3
  60. RedirectMatch /mailman/([^/\.]*)(.cgi)?(.*) https://domainname.com:5051/virtualmin-mailman/unauthenticated/$1.cgi$3
  61. Redirect /mail/config-v1.1.xml /cgi-bin/autoconfig.cgi
  62. php_value memory_limit 32M
  63. </VirtualHost>
  64.  
  65.  
  66. =====================================
  67. .htaccess
  68.  
  69.  
  70.  
  71. #Options +FollowSymLinks -MultiViews
  72. # Turn mod_rewrite on
  73. RewriteEngine On
  74. #RewriteBase /
  75.  
  76. RewriteCond %{REQUEST_FILENAME} !-f
  77. RewriteCond %{REQUEST_FILENAME} !-d
  78.  
  79. RewriteRule ^([^/]+)?$ test.php?id=$1 [L,QSA]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement