Advertisement
Guest User

Untitled

a guest
Aug 7th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. <VirtualHost *:80>
  2. # The ServerName directive sets the request scheme, hostname and port that
  3. # the server uses to identify itself. This is used when creating
  4. # redirection URLs. In the context of virtual hosts, the ServerName
  5. # specifies what hostname must appear in the request's Host: header to
  6. # match this virtual host. For the default virtual host (this file) this
  7. # value is not decisive as it is used as a last resort host regardless.
  8. # However, you must set it for any further virtual host explicitly.
  9. #ServerName www.example.com
  10.  
  11. ServerAdmin m@marco-sagerer.de
  12. DocumentRoot /var/www/html/start
  13.  
  14. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  15. # error, crit, alert, emerg.
  16. # It is also possible to configure the loglevel for particular
  17. # modules, e.g.
  18. #LogLevel info ssl:warn
  19.  
  20. ErrorLog ${APACHE_LOG_DIR}/error.log
  21. CustomLog ${APACHE_LOG_DIR}/access.log combined
  22.  
  23. # For most configuration files from conf-available/, which are
  24. # enabled or disabled at a global level, it is possible to
  25. # include a line for only one particular virtual host. For example the
  26. # following line enables the CGI configuration for this host only
  27. # after it has been globally disabled with "a2disconf".
  28. #Include conf-available/serve-cgi-bin.conf
  29. </VirtualHost>
  30.  
  31. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  32.  
  33. <VirtualHost *:80>
  34. ServerName cloud.marco-sagerer.de
  35. ServerAdmin m@marco-sagerer.de
  36. DocumentRoot /var/www/html/cloud
  37.  
  38. ErrorLog ${APACHE_LOG_DIR}/error.log
  39. CustomLog ${APACHE_LOG_DIR}/access.log combined
  40.  
  41. <Directory /var/www/html/cloud>
  42. Options +FollowSymlinks
  43. AllowOverride All
  44.  
  45. <IfModule mod_dav.c>
  46. Dav off
  47. </IfModule>
  48. <IfModule mod_headers.c>
  49. Header always set Strict-Transport-Security "max-age=15768000; preload"
  50. </IfModule>
  51. SetEnv HOME /var/www/html/cloud
  52. SetEnv HTTP_HOME /var/www/html/cloud
  53. </Directory>
  54. </VirtualHost>
  55.  
  56.  
  57. <VirtualHost *:80>
  58. ServerName serv1.sagerer.eu
  59. ServerAdmin m@marco-sagerer.de
  60. DocumentRoot /var/www/html/serv1
  61. <Directory /var/www/html/serv1>
  62. Options Indexes FollowSymLinks MultiViews
  63. AllowOverride All
  64. Order allow,deny
  65. allow from all
  66. </Directory>
  67. ErrorLog /var/log/apache2/error.log
  68. LogLevel warn
  69. CustomLog /var/log/apache2/access.log combined
  70. ServerSignature On
  71. </VirtualHost>
  72.  
  73.  
  74. <VirtualHost *:80>
  75. ServerName v.marco-sagerer.de
  76. ServerAdmin m@marco-sagerer.de
  77. DocumentRoot /var/www/html/start
  78. <Directory /var/www/html/start>
  79. Options Indexes FollowSymLinks MultiViews
  80. AllowOverride All
  81. Order allow,deny
  82. allow from all
  83. </Directory>
  84. ErrorLog /var/log/apache2/error.log
  85. LogLevel warn
  86. CustomLog /var/log/apache2/access.log combined
  87. ServerSignature On
  88. </VirtualHost>
  89.  
  90.  
  91.  
  92. <VirtualHost *:80>
  93. ServerName serv1.marco-sagerer.de
  94. ServerAdmin m@marco-sagerer.de
  95. DocumentRoot /var/www/html/start
  96. <Directory /var/www/html/start>
  97. Options Indexes FollowSymLinks MultiViews
  98. AllowOverride All
  99. Order allow,deny
  100. allow from all
  101. </Directory>
  102. ErrorLog /var/log/apache2/error.log
  103. LogLevel warn
  104. CustomLog /var/log/apache2/access.log combined
  105. ServerSignature On
  106. </VirtualHost>
  107.  
  108. <VirtualHost monitor.sagerer.eu:80>
  109. ServerName monitor.sagerer.eu
  110. ServerAdmin m@marco-sagerer.de
  111. DocumentRoot /usr/share/zabbix
  112. Alias /zabbix /usr/share/zabbix
  113.  
  114. <Directory "/usr/share/zabbix">
  115. Options FollowSymLinks
  116. AllowOverride None
  117. Require all granted
  118.  
  119. <IfModule mod_php5.c>
  120. php_value max_execution_time 300
  121. php_value memory_limit 128M
  122. php_value post_max_size 16M
  123. php_value upload_max_filesize 2M
  124. php_value max_input_time 300
  125. php_value always_populate_raw_post_data -1
  126. php_value date.timezone Europe/Berlin
  127. </IfModule>
  128. </Directory>
  129.  
  130. <Directory "/usr/share/zabbix/conf">
  131. Require all denied
  132. </Directory>
  133.  
  134. <Directory "/usr/share/zabbix/app">
  135. Require all denied
  136. </Directory>
  137.  
  138. <Directory "/usr/share/zabbix/include">
  139. Require all denied
  140. </Directory>
  141.  
  142. <Directory "/usr/share/zabbix/local">
  143. Require all denied
  144. </Directory>
  145.  
  146. ServerSignature On
  147. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement