Advertisement
Guest User

Apache Conf

a guest
Aug 9th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.86 KB | None | 0 0
  1. <VirtualHost myip:80>
  2. SuexecUserGroup "#502" "#502"
  3. ServerName phpmyadmin.mydomain.dk
  4. ServerAlias www.phpmyadmin.mydomain.dk
  5. ServerAlias webmail.phpmyadmin.mydomain.dk
  6. ServerAlias admin.phpmyadmin.mydomain.dk
  7. DocumentRoot /home/phpmyadmin/public_html
  8. ErrorLog /var/log/virtualmin/phpmyadmin.mydomain.dk_error_log
  9. CustomLog /var/log/virtualmin/phpmyadmin.mydomain.dk_access_log combined
  10. ScriptAlias /cgi-bin/ /home/phpmyadmin/cgi-bin/
  11. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  12. <Directory /home/phpmyadmin/public_html>
  13. Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
  14. allow from all
  15. AllowOverride All
  16. AddHandler fcgid-script .php
  17. AddHandler fcgid-script .php5
  18. FCGIWrapper /home/phpmyadmin/fcgi-bin/php5.fcgi .php
  19. FCGIWrapper /home/phpmyadmin/fcgi-bin/php5.fcgi .php5
  20. </Directory>
  21. <Directory /home/phpmyadmin/cgi-bin>
  22. allow from all
  23. </Directory>
  24. RewriteEngine on
  25. RewriteCond %{HTTP_HOST} =webmail.phpmyadmin.mydomain.dk
  26. RewriteRule ^(.*) https://phpmyadmin.mydomain.dk:20000/ [R]
  27. RewriteCond %{HTTP_HOST} =admin.phpmyadmin.mydomain.dk
  28. RewriteRule ^(.*) https://phpmyadmin.mydomain.dk:8080/ [R]
  29. RemoveHandler .php
  30. RemoveHandler .php5
  31. IPCCommTimeout 31
  32. FcgidMaxRequestLen 1073741824
  33. </VirtualHost>
  34.  
  35. <VirtualHost myip:80>
  36. SuexecUserGroup "#503" "#503"
  37. ServerName mydomain.dk
  38. ServerAlias www.mydomain.dk
  39. ServerAlias webmail.mydomain.dk
  40. ServerAlias admin.mydomain.dk
  41. DocumentRoot /home/mydomain/public_html
  42. ErrorLog /var/log/virtualmin/mydomain.dk_error_log
  43. CustomLog /var/log/virtualmin/mydomain.dk_access_log combined
  44. ScriptAlias /cgi-bin/ /home/mydomain/cgi-bin/
  45. ScriptAlias /awstats/ /home/mydomain/cgi-bin/
  46. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  47. <Directory /home/mydomain/public_html>
  48. Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
  49. allow from all
  50. AllowOverride All
  51. AddHandler fcgid-script .php
  52. AddHandler fcgid-script .php5
  53. FCGIWrapper /home/mydomain/fcgi-bin/php5.fcgi .php
  54. FCGIWrapper /home/mydomain/fcgi-bin/php5.fcgi .php5
  55. </Directory>
  56. <Directory /home/mydomain/cgi-bin>
  57. allow from all
  58. </Directory>
  59. RewriteEngine on
  60. RewriteCond %{HTTP_HOST} =webmail.mydomain.dk
  61. RewriteRule ^(.*) https://mydomain.dk:20000/ [R]
  62. RewriteCond %{HTTP_HOST} =admin.mydomain.dk
  63. RewriteRule ^(.*) https://mydomain.dk:8080/ [R]
  64. RemoveHandler .php
  65. RemoveHandler .php5
  66. IPCCommTimeout 31
  67. FcgidMaxRequestLen 1073741824
  68. Alias /dav "/home/mydomain/public"
  69. Alias /pipermail "/var/lib/mailman/archives/public"
  70. <Location /dav>
  71. DAV on
  72. AuthType Basic
  73. AuthName "mydomain.dk"
  74. AuthUserFile /home/mydomain/etc/dav.digest.passwd
  75. Require valid-user
  76. ForceType text/plain
  77. Satisfy All
  78. RemoveHandler .php
  79. RemoveHandler .php5
  80. RewriteEngine off
  81. </Location>
  82. <Files awstats.pl>
  83. AuthName "mydomain.dk statistics"
  84. AuthType Basic
  85. AuthUserFile /home/mydomain/.awstats-htpasswd
  86. require valid-user
  87. </Files>
  88. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement