Advertisement
Guest User

Untitled

a guest
Jul 1st, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2. NameVirtualHost *:443
  3.  
  4.  
  5. <VirtualHost *:443>
  6. ServerName test.feldland.dyndns.org
  7. DocumentRoot /var/www/testfeldland.dyndns.org
  8. RewriteEngine On
  9. <Directory />
  10. AllowOverride None
  11. Order Allow,Deny
  12. Deny from All
  13. </Directory>
  14. <Directory /var/www/testfeldland.dyndns.org/>
  15. Options None
  16. AllowOverride None
  17. Order Allow,Deny
  18. Allow from All
  19. php_value upload_max_filesize 200M
  20. php_value post_max_size 200M
  21. </Directory>
  22. ErrorLog /var/log/apache2/error.log
  23. LogLevel warn
  24. CustomLog /var/log/apache2/ssl_access.log combined
  25. # SSL Engine Switch:
  26. SSLEngine on
  27. SSLCertificateFile /etc/apache2/ssl/feldland.dyndns.org.pem
  28. # Client Authentication (Type):
  29. #SSLVerifyClient require
  30. #SSLVerifyDepth 10
  31. # SSL Engine Options:
  32. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  33. SSLOptions +StdEnvVars
  34. </FilesMatch>
  35. <Directory /usr/lib/cgi-bin>
  36. SSLOptions +StdEnvVars
  37. </Directory>
  38. # SSL Protocol Adjustments:
  39. BrowserMatch ".*MSIE.*" \
  40. nokeepalive ssl-unclean-shutdown \
  41. downgrade-1.0 force-response-1.0
  42. </VirtualHost>
  43.  
  44.  
  45.  
  46. <VirtualHost *:443>
  47. ServerName www.feldland.dyndns.org
  48. DocumentRoot /var/www/feldland.dyndns.org
  49. RewriteEngine On
  50. <Directory />
  51. AllowOverride None
  52. Order Allow,Deny
  53. Deny from All
  54. </Directory>
  55. <Directory /var/www/feldland.dyndns.org/>
  56. Options None
  57. AllowOverride None
  58. Order Allow,Deny
  59. Allow from All
  60. php_value upload_max_filesize 200M
  61. php_value post_max_size 200M
  62. </Directory>
  63. ErrorLog /var/log/apache2/error.log
  64. LogLevel warn
  65. CustomLog /var/log/apache2/ssl_access.log combined
  66. # SSL Engine Switch:
  67. SSLEngine on
  68. SSLCertificateFile /etc/apache2/ssl/feldland.dyndns.org.pem
  69. # Client Authentication (Type):
  70. #SSLVerifyClient require
  71. #SSLVerifyDepth 10
  72. # SSL Engine Options:
  73. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  74. SSLOptions +StdEnvVars
  75. </FilesMatch>
  76. <Directory /usr/lib/cgi-bin>
  77. SSLOptions +StdEnvVars
  78. </Directory>
  79. # SSL Protocol Adjustments:
  80. BrowserMatch ".*MSIE.*" \
  81. nokeepalive ssl-unclean-shutdown \
  82. downgrade-1.0 force-response-1.0
  83. </VirtualHost>
  84.  
  85.  
  86. <VirtualHost feld-server:443>
  87. ServerAdmin webmaster@localhost
  88. Servername feld-server
  89. DocumentRoot /var/www/
  90. <Directory />
  91. Options FollowSymLinks
  92. AllowOverride None
  93. Order Deny,Allow
  94. Deny from all
  95. </Directory>
  96. <Directory /var/www/>
  97. Options Indexes FollowSymLinks MultiViews
  98. AllowOverride None
  99. Order Deny,Allow
  100. Deny from all
  101. Allow from 127.0.0.0/24
  102. Allow from 192.168.0.0/24
  103. </Directory>
  104. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  105. <Directory "/usr/lib/cgi-bin">
  106. AllowOverride None
  107. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  108. Order allow,deny
  109. Deny from all
  110. Allow from 127.0.0.0/24
  111. Allow from 192.168.0.0/24
  112. </Directory>
  113. ErrorLog /var/log/apache2/error.log
  114. LogLevel warn
  115. CustomLog /var/log/apache2/ssl_access.log combined
  116. Alias /doc/ "/usr/share/doc/"
  117. <Directory "/usr/share/doc/">
  118. Options Indexes MultiViews FollowSymLinks
  119. AllowOverride None
  120. Order deny,allow
  121. Deny from all
  122. Allow from 127.0.0.0/24
  123. Allow from 192.168.0.0/24
  124. </Directory>
  125. # SSL Engine Switch:
  126. # Enable/Disable SSL for this virtual host.
  127. SSLEngine on
  128. SSLCertificateFile /etc/apache2/ssl/feld-server.pem
  129. # SSL Engine Options:
  130. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  131. SSLOptions +StdEnvVars
  132. </FilesMatch>
  133. <Directory /usr/lib/cgi-bin>
  134. SSLOptions +StdEnvVars
  135. </Directory>
  136. # SSL Protocol Adjustments:
  137. BrowserMatch ".*MSIE.*" \
  138. nokeepalive ssl-unclean-shutdown \
  139. downgrade-1.0 force-response-1.0
  140. </VirtualHost>
  141. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement