Advertisement
Guest User

Untitled

a guest
Nov 24th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. <VirtualHost 127.0.0.1:8443>
  2. SuexecUserGroup "#552" "#551"
  3. ServerName site.ru
  4. ServerAlias www.site.ru
  5. ServerAlias webmail.site.ru
  6. ServerAlias admin.site.ru
  7. DocumentRoot /home/site/public_html
  8. ErrorLog /var/log/virtualmin/sitev.ru_error_log
  9. CustomLog /var/log/virtualmin/site.ru_access_log combined
  10. ScriptAlias /cgi-bin/ /home/site/cgi-bin/
  11. ScriptAlias /awstats/ /home/site/cgi-bin/
  12. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  13. <Directory /home/site/public_html>
  14. Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
  15. allow from all
  16. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,FollowSymLinks
  17. AddType application/x-httpd-php .php
  18. AddHandler fcgid-script .php
  19. AddHandler fcgid-script .php5
  20. FCGIWrapper /home/site/fcgi-bin/php5.fcgi .php
  21. FCGIWrapper /home/site/fcgi-bin/php5.fcgi .php5
  22. </Directory>
  23. <Directory /home/site/cgi-bin>
  24. allow from all
  25. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,FollowSymLinks
  26. </Directory>
  27. RewriteEngine on
  28. RewriteCond %{HTTP_HOST} =webmail.site.ru
  29. RewriteRule ^(.*) https://site.ru:20000/ [R]
  30. RewriteCond %{HTTP_HOST} =admin.site.ru
  31. RewriteRule ^(.*) https://site.ru:10000/ [R]
  32. Alias /dav /home/site/public_html
  33. Alias /pipermail /var/lib/mailman/archives/public
  34. <Location /dav>
  35. DAV on
  36. AuthType Basic
  37. AuthName "site.ru"
  38. AuthUserFile /home/site/etc/dav.digest.passwd
  39. Require valid-user
  40. ForceType text/plain
  41. Satisfy All
  42. RemoveHandler .php
  43. RemoveHandler .php5
  44. RewriteEngine off
  45. </Location>
  46. <Files awstats.pl>
  47. AuthName "site.ru statistics"
  48. AuthType Basic
  49. AuthUserFile /home/site/.awstats-htpasswd
  50. require valid-user
  51. </Files>
  52. RedirectMatch /cgi-bin/mailman/([^/\.]*)(.cgi)?(.*) https://site.ru:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
  53. RedirectMatch /mailman/([^/\.]*)(.cgi)?(.*) https://site.ru:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
  54. RemoveHandler .php
  55. RemoveHandler .php5
  56. php_admin_value engine Off
  57. IPCCommTimeout 301
  58. FcgidMaxRequestLen 1073741824
  59. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement