Advertisement
Guest User

Apache Config

a guest
Jan 20th, 2018
848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 20.63 KB | None | 0 0
  1. # Start of /etc/apache2/apache2.conf
  2.  
  3. Mutex file:${APACHE_LOCK_DIR} default
  4.  
  5. PidFile ${APACHE_PID_FILE}
  6.  
  7. Timeout 300
  8.  
  9. KeepAlive On
  10.  
  11. MaxKeepAliveRequests 100
  12.  
  13. KeepAliveTimeout 5
  14.  
  15. User ${APACHE_RUN_USER}
  16. Group ${APACHE_RUN_GROUP}
  17.  
  18. HostnameLookups Off
  19.  
  20. ErrorLog ${APACHE_LOG_DIR}/error.log
  21.  
  22. LogLevel debug
  23.  
  24. # Start of /etc/apache2/mods-enabled/env.load
  25. LoadModule env_module /usr/lib/apache2/modules/mod_env.so
  26. # End of /etc/apache2/mods-enabled/env.load
  27.  
  28. # Start of /etc/apache2/mods-enabled/filter.load
  29. LoadModule filter_module /usr/lib/apache2/modules/mod_filter.so
  30. # End of /etc/apache2/mods-enabled/filter.load
  31.  
  32. # Start of /etc/apache2/mods-enabled/setenvif.load
  33. LoadModule setenvif_module /usr/lib/apache2/modules/mod_setenvif.so
  34. # End of /etc/apache2/mods-enabled/setenvif.load
  35.  
  36. # Start of /etc/apache2/mods-enabled/socache_shmcb.load
  37. LoadModule socache_shmcb_module /usr/lib/apache2/modules/mod_socache_shmcb.so
  38. # End of /etc/apache2/mods-enabled/socache_shmcb.load
  39.  
  40. # Start of /etc/apache2/mods-enabled/negotiation.load
  41. LoadModule negotiation_module /usr/lib/apache2/modules/mod_negotiation.so
  42. # End of /etc/apache2/mods-enabled/negotiation.load
  43.  
  44. # Start of /etc/apache2/mods-enabled/authz_host.load
  45. LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so
  46. # End of /etc/apache2/mods-enabled/authz_host.load
  47.  
  48. # Start of /etc/apache2/mods-enabled/proxy_http.load
  49. LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
  50. # End of /etc/apache2/mods-enabled/proxy_http.load
  51.  
  52. # Start of /etc/apache2/mods-enabled/authn_file.load
  53. LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so
  54. # End of /etc/apache2/mods-enabled/authn_file.load
  55.  
  56. # Start of /etc/apache2/mods-enabled/proxy.load
  57. LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
  58. # End of /etc/apache2/mods-enabled/proxy.load
  59.  
  60. # Start of /etc/apache2/mods-enabled/authn_core.load
  61. LoadModule authn_core_module /usr/lib/apache2/modules/mod_authn_core.so
  62. # End of /etc/apache2/mods-enabled/authn_core.load
  63.  
  64. # Start of /etc/apache2/mods-enabled/proxy_html.load
  65. LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so
  66. # End of /etc/apache2/mods-enabled/proxy_html.load
  67.  
  68. # Start of /etc/apache2/mods-enabled/rewrite.load
  69. LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
  70. # End of /etc/apache2/mods-enabled/rewrite.load
  71.  
  72. # Start of /etc/apache2/mods-enabled/autoindex.load
  73. LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so
  74. # End of /etc/apache2/mods-enabled/autoindex.load
  75.  
  76. # Start of /etc/apache2/mods-enabled/dir.load
  77. LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
  78. # End of /etc/apache2/mods-enabled/dir.load
  79.  
  80. # Start of /etc/apache2/mods-enabled/mime.load
  81. LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
  82. # End of /etc/apache2/mods-enabled/mime.load
  83.  
  84. # Start of /etc/apache2/mods-enabled/access_compat.load
  85. LoadModule access_compat_module /usr/lib/apache2/modules/mod_access_compat.so
  86. # End of /etc/apache2/mods-enabled/access_compat.load
  87.  
  88. # Start of /etc/apache2/mods-enabled/authz_user.load
  89. LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so
  90. # End of /etc/apache2/mods-enabled/authz_user.load
  91.  
  92. # Start of /etc/apache2/mods-enabled/alias.load
  93. LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
  94. # End of /etc/apache2/mods-enabled/alias.load
  95.  
  96. # Start of /etc/apache2/mods-enabled/deflate.load
  97. LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
  98. # End of /etc/apache2/mods-enabled/deflate.load
  99.  
  100. # Start of /etc/apache2/mods-enabled/status.load
  101. LoadModule status_module /usr/lib/apache2/modules/mod_status.so
  102. # End of /etc/apache2/mods-enabled/status.load
  103.  
  104. # Start of /etc/apache2/mods-enabled/auth_basic.load
  105. LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so
  106. # End of /etc/apache2/mods-enabled/auth_basic.load
  107.  
  108. # Start of /etc/apache2/mods-enabled/authz_core.load
  109. LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
  110. # End of /etc/apache2/mods-enabled/authz_core.load
  111.  
  112. # Start of /etc/apache2/mods-enabled/ssl.load
  113. LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
  114. # End of /etc/apache2/mods-enabled/ssl.load
  115.  
  116. # Start of /etc/apache2/mods-enabled/mpm_event.load
  117. LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
  118. # End of /etc/apache2/mods-enabled/mpm_event.load
  119.  
  120. # Start of /etc/apache2/mods-enabled/proxy.conf
  121. <IfModule mod_proxy.c>
  122.  
  123. </IfModule>
  124.  
  125. # End of /etc/apache2/mods-enabled/proxy.conf
  126.  
  127. # Start of /etc/apache2/mods-enabled/negotiation.conf
  128. <IfModule mod_negotiation.c>
  129.  
  130.     LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
  131.  
  132.     ForceLanguagePriority Prefer Fallback
  133.  
  134. </IfModule>
  135.  
  136. # End of /etc/apache2/mods-enabled/negotiation.conf
  137.  
  138. # Start of /etc/apache2/mods-enabled/status.conf
  139. <IfModule mod_status.c>
  140.  
  141.     <Location /server-status>
  142.         SetHandler server-status
  143.         Require local
  144.     </Location>
  145.  
  146.     ExtendedStatus On
  147.  
  148.     <IfModule mod_proxy.c>
  149.         ProxyStatus On
  150.     </IfModule>
  151.  
  152. </IfModule>
  153.  
  154. # End of /etc/apache2/mods-enabled/status.conf
  155.  
  156. # Start of /etc/apache2/mods-enabled/proxy_html.conf
  157.  
  158. ProxyHTMLLinks  a       href
  159. ProxyHTMLLinks  area        href
  160. ProxyHTMLLinks  link        href
  161. ProxyHTMLLinks  img     src longdesc usemap
  162. ProxyHTMLLinks  object      classid codebase data usemap
  163. ProxyHTMLLinks  q       cite
  164. ProxyHTMLLinks  blockquote  cite
  165. ProxyHTMLLinks  ins     cite
  166. ProxyHTMLLinks  del     cite
  167. ProxyHTMLLinks  form        action
  168. ProxyHTMLLinks  input       src usemap
  169. ProxyHTMLLinks  head        profile
  170. ProxyHTMLLinks  base        href
  171. ProxyHTMLLinks  script      src for
  172.  
  173. ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
  174.         onmouseover onmousemove onmouseout onkeypress \
  175.         onkeydown onkeyup onfocus onblur onload \
  176.         onunload onsubmit onreset onselect onchange
  177.  
  178. # End of /etc/apache2/mods-enabled/proxy_html.conf
  179.  
  180. # Start of /etc/apache2/mods-enabled/ssl.conf
  181. <IfModule mod_ssl.c>
  182.  
  183.     SSLRandomSeed startup builtin
  184.     SSLRandomSeed startup file:/dev/urandom 512
  185.     SSLRandomSeed connect builtin
  186.     SSLRandomSeed connect file:/dev/urandom 512
  187.  
  188.     AddType application/x-x509-ca-cert .crt
  189.     AddType application/x-pkcs7-crl .crl
  190.  
  191.     SSLPassPhraseDialog  exec:/usr/share/apache2/ask-for-passphrase
  192.  
  193.     SSLSessionCache     shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
  194.     SSLSessionCacheTimeout  300
  195.  
  196.     SSLCipherSuite HIGH:!aNULL
  197.  
  198.     SSLProtocol all -SSLv3
  199.  
  200. </IfModule>
  201.  
  202. # End of /etc/apache2/mods-enabled/ssl.conf
  203.  
  204. # Start of /etc/apache2/mods-enabled/autoindex.conf
  205. <IfModule mod_autoindex.c>
  206.  
  207.     IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=* Charset=UTF-8
  208.  
  209.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip x-bzip2
  210.  
  211.     AddIconByType (TXT,/icons/text.gif) text/*
  212.     AddIconByType (IMG,/icons/image2.gif) image/*
  213.     AddIconByType (SND,/icons/sound2.gif) audio/*
  214.     AddIconByType (VID,/icons/movie.gif) video/*
  215.  
  216.     AddIcon /icons/binary.gif .bin .exe
  217.     AddIcon /icons/binhex.gif .hqx
  218.     AddIcon /icons/tar.gif .tar
  219.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  220.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  221.     AddIcon /icons/a.gif .ps .ai .eps
  222.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  223.     AddIcon /icons/text.gif .txt
  224.     AddIcon /icons/c.gif .c
  225.     AddIcon /icons/p.gif .pl .py
  226.     AddIcon /icons/f.gif .for
  227.     AddIcon /icons/dvi.gif .dvi
  228.     AddIcon /icons/uuencoded.gif .uu
  229.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  230.     AddIcon /icons/tex.gif .tex
  231.     AddIcon /icons/bomb.gif /core
  232.     AddIcon (SND,/icons/sound2.gif) .ogg
  233.     AddIcon (VID,/icons/movie.gif) .ogm
  234.  
  235.     AddIcon /icons/back.gif ..
  236.     AddIcon /icons/hand.right.gif README
  237.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  238.     AddIcon /icons/blank.gif ^^BLANKICON^^
  239.  
  240.     AddIcon /icons/odf6odt-20x22.png .odt
  241.     AddIcon /icons/odf6ods-20x22.png .ods
  242.     AddIcon /icons/odf6odp-20x22.png .odp
  243.     AddIcon /icons/odf6odg-20x22.png .odg
  244.     AddIcon /icons/odf6odc-20x22.png .odc
  245.     AddIcon /icons/odf6odf-20x22.png .odf
  246.     AddIcon /icons/odf6odb-20x22.png .odb
  247.     AddIcon /icons/odf6odi-20x22.png .odi
  248.     AddIcon /icons/odf6odm-20x22.png .odm
  249.  
  250.     AddIcon /icons/odf6ott-20x22.png .ott
  251.     AddIcon /icons/odf6ots-20x22.png .ots
  252.     AddIcon /icons/odf6otp-20x22.png .otp
  253.     AddIcon /icons/odf6otg-20x22.png .otg
  254.     AddIcon /icons/odf6otc-20x22.png .otc
  255.     AddIcon /icons/odf6otf-20x22.png .otf
  256.     AddIcon /icons/odf6oti-20x22.png .oti
  257.     AddIcon /icons/odf6oth-20x22.png .oth
  258.  
  259.     DefaultIcon /icons/unknown.gif
  260.  
  261.     ReadmeName README.html
  262.     HeaderName HEADER.html
  263.  
  264.     IndexIgnore .??* *~ *# RCS CVS *,v *,t
  265.  
  266. </IfModule>
  267.  
  268. # End of /etc/apache2/mods-enabled/autoindex.conf
  269.  
  270. # Start of /etc/apache2/mods-enabled/deflate.conf
  271. <IfModule mod_deflate.c>
  272.     <IfModule mod_filter.c>
  273.         AddOutputFilterByType DEFLATE text/html text/plain text/xml
  274.  
  275.         AddOutputFilterByType DEFLATE text/css
  276.         AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
  277.         AddOutputFilterByType DEFLATE application/rss+xml
  278.         AddOutputFilterByType DEFLATE application/xml
  279.     </IfModule>
  280. </IfModule>
  281.  
  282. # End of /etc/apache2/mods-enabled/deflate.conf
  283.  
  284. # Start of /etc/apache2/mods-enabled/mpm_event.conf
  285. <IfModule mpm_event_module>
  286.     StartServers             2
  287.     MinSpareThreads      25
  288.     MaxSpareThreads      75
  289.     ThreadLimit          64
  290.     ThreadsPerChild      25
  291.     MaxRequestWorkers     150
  292.     MaxConnectionsPerChild   0
  293. </IfModule>
  294.  
  295. # End of /etc/apache2/mods-enabled/mpm_event.conf
  296.  
  297. # Start of /etc/apache2/mods-enabled/mime.conf
  298. <IfModule mod_mime.c>
  299.  
  300.     TypesConfig /etc/mime.types
  301.  
  302.     AddType application/x-compress .Z
  303.     AddType application/x-gzip .gz .tgz
  304.     AddType application/x-bzip2 .bz2
  305.  
  306.     AddLanguage am .amh
  307.     AddLanguage ar .ara
  308.     AddLanguage be .be
  309.     AddLanguage bg .bg
  310.     AddLanguage bn .bn
  311.     AddLanguage br .br
  312.     AddLanguage bs .bs
  313.     AddLanguage ca .ca
  314.     AddLanguage cs .cz .cs
  315.     AddLanguage cy .cy
  316.     AddLanguage da .dk
  317.     AddLanguage de .de
  318.     AddLanguage dz .dz
  319.     AddLanguage el .el
  320.     AddLanguage en .en
  321.     AddLanguage eo .eo
  322.     RemoveType  es
  323.     AddLanguage es .es
  324.     AddLanguage et .et
  325.     AddLanguage eu .eu
  326.     AddLanguage fa .fa
  327.     AddLanguage fi .fi
  328.     AddLanguage fr .fr
  329.     AddLanguage ga .ga
  330.     AddLanguage gl .glg
  331.     AddLanguage gu .gu
  332.     AddLanguage he .he
  333.     AddLanguage hi .hi
  334.     AddLanguage hr .hr
  335.     AddLanguage hu .hu
  336.     AddLanguage hy .hy
  337.     AddLanguage id .id
  338.     AddLanguage is .is
  339.     AddLanguage it .it
  340.     AddLanguage ja .ja
  341.     AddLanguage ka .ka
  342.     AddLanguage kk .kk
  343.     AddLanguage km .km
  344.     AddLanguage kn .kn
  345.     AddLanguage ko .ko
  346.     AddLanguage ku .ku
  347.     AddLanguage lo .lo
  348.     AddLanguage lt .lt
  349.     AddLanguage ltz .ltz
  350.     AddLanguage lv .lv
  351.     AddLanguage mg .mg
  352.     AddLanguage mk .mk
  353.     AddLanguage ml .ml
  354.     AddLanguage mr .mr
  355.     AddLanguage ms .msa
  356.     AddLanguage nb .nob
  357.     AddLanguage ne .ne
  358.     AddLanguage nl .nl
  359.     AddLanguage nn .nn
  360.     AddLanguage no .no
  361.     AddLanguage pa .pa
  362.     AddLanguage pl .po
  363.     AddLanguage pt-BR .pt-br
  364.     AddLanguage pt .pt
  365.     AddLanguage ro .ro
  366.     AddLanguage ru .ru
  367.     AddLanguage sa .sa
  368.     AddLanguage se .se
  369.     AddLanguage si .si
  370.     AddLanguage sk .sk
  371.     AddLanguage sl .sl
  372.     AddLanguage sq .sq
  373.     AddLanguage sr .sr
  374.     AddLanguage sv .sv
  375.     AddLanguage ta .ta
  376.     AddLanguage te .te
  377.     AddLanguage th .th
  378.     AddLanguage tl .tl
  379.     RemoveType  tr
  380.     AddLanguage tr .tr
  381.     AddLanguage uk .uk
  382.     AddLanguage ur .ur
  383.     AddLanguage vi .vi
  384.     AddLanguage wo .wo
  385.     AddLanguage xh .xh
  386.     AddLanguage zh-CN .zh-cn
  387.     AddLanguage zh-TW .zh-tw
  388.  
  389.     AddCharset us-ascii .ascii .us-ascii
  390.     AddCharset ISO-8859-1  .iso8859-1  .latin1
  391.     AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
  392.     AddCharset ISO-8859-3  .iso8859-3  .latin3
  393.     AddCharset ISO-8859-4  .iso8859-4  .latin4
  394.     AddCharset ISO-8859-5  .iso8859-5  .cyr .iso-ru
  395.     AddCharset ISO-8859-6  .iso8859-6  .arb .arabic
  396.     AddCharset ISO-8859-7  .iso8859-7  .grk .greek
  397.     AddCharset ISO-8859-8  .iso8859-8  .heb .hebrew
  398.     AddCharset ISO-8859-9  .iso8859-9  .latin5 .trk
  399.     AddCharset ISO-8859-10  .iso8859-10  .latin6
  400.     AddCharset ISO-8859-13  .iso8859-13
  401.     AddCharset ISO-8859-14  .iso8859-14  .latin8
  402.     AddCharset ISO-8859-15  .iso8859-15  .latin9
  403.     AddCharset ISO-8859-16  .iso8859-16  .latin10
  404.     AddCharset ISO-2022-JP .iso2022-jp .jis
  405.     AddCharset ISO-2022-KR .iso2022-kr .kis
  406.     AddCharset ISO-2022-CN .iso2022-cn .cis
  407.     AddCharset Big5     .Big5      .big5 .b5
  408.     AddCharset cn-Big5   .cn-big5
  409.     AddCharset WINDOWS-1251 .cp-1251   .win-1251
  410.     AddCharset CP866       .cp866
  411.     AddCharset KOI8   .koi8
  412.     AddCharset KOI8-E     .koi8-e
  413.     AddCharset KOI8-r     .koi8-r .koi8-ru
  414.     AddCharset KOI8-U     .koi8-u
  415.     AddCharset KOI8-ru   .koi8-uk .ua
  416.     AddCharset ISO-10646-UCS-2 .ucs2
  417.     AddCharset ISO-10646-UCS-4 .ucs4
  418.     AddCharset UTF-7       .utf7
  419.     AddCharset UTF-8       .utf8
  420.     AddCharset UTF-16     .utf16
  421.     AddCharset UTF-16BE .utf16be
  422.     AddCharset UTF-16LE .utf16le
  423.     AddCharset UTF-32     .utf32
  424.     AddCharset UTF-32BE .utf32be
  425.     AddCharset UTF-32LE .utf32le
  426.     AddCharset euc-cn     .euc-cn
  427.     AddCharset euc-gb     .euc-gb
  428.     AddCharset euc-jp     .euc-jp
  429.     AddCharset euc-kr     .euc-kr
  430.     AddCharset EUC-TW     .euc-tw
  431.     AddCharset gb2312     .gb2312 .gb
  432.     AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
  433.     AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
  434.     AddCharset shift_jis   .shift_jis .sjis
  435.     AddCharset BRF       .brf
  436.  
  437.     AddHandler type-map var
  438.  
  439.     AddType text/html .shtml
  440.     AddOutputFilter INCLUDES .shtml
  441.  
  442. </IfModule>
  443.  
  444. # End of /etc/apache2/mods-enabled/mime.conf
  445.  
  446. # Start of /etc/apache2/mods-enabled/alias.conf
  447. <IfModule alias_module>
  448.  
  449.     Alias /icons/ "/usr/share/apache2/icons/"
  450.  
  451.     <Directory "/usr/share/apache2/icons">
  452.         Options FollowSymlinks
  453.         AllowOverride None
  454.         Require all granted
  455.     </Directory>
  456.  
  457. </IfModule>
  458.  
  459. # End of /etc/apache2/mods-enabled/alias.conf
  460.  
  461. # Start of /etc/apache2/mods-enabled/setenvif.conf
  462. <IfModule mod_setenvif.c>
  463.  
  464.     BrowserMatch "Mozilla/2" nokeepalive
  465.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  466.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  467.     BrowserMatch "Java/1\.0" force-response-1.0
  468.     BrowserMatch "JDK/1\.0" force-response-1.0
  469.  
  470.     BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  471.     BrowserMatch "MS FrontPage" redirect-carefully
  472.     BrowserMatch "^WebDrive" redirect-carefully
  473.     BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  474.     BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  475.     BrowserMatch "^gvfs/1" redirect-carefully
  476.     BrowserMatch "^XML Spy" redirect-carefully
  477.     BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  478.     BrowserMatch " Konqueror/4" redirect-carefully
  479.  
  480. </IfModule>
  481.  
  482. # End of /etc/apache2/mods-enabled/setenvif.conf
  483.  
  484. # Start of /etc/apache2/mods-enabled/dir.conf
  485. <IfModule mod_dir.c>
  486.     DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
  487. </IfModule>
  488.  
  489. # End of /etc/apache2/mods-enabled/dir.conf
  490.  
  491. # Start of /etc/apache2/ports.conf
  492.  
  493. Listen 80
  494.  
  495. <IfModule ssl_module>
  496.     Listen 443
  497. </IfModule>
  498.  
  499. <IfModule mod_gnutls.c>
  500.     Listen 443
  501. </IfModule>
  502.  
  503. # End of /etc/apache2/ports.conf
  504.  
  505. <Directory />
  506.     Options FollowSymLinks
  507.     AllowOverride None
  508.     Require all denied
  509. </Directory>
  510.  
  511. <Directory /usr/share>
  512.     AllowOverride None
  513.     Require all granted
  514. </Directory>
  515.  
  516. <Directory /var/www/>
  517.     Options Indexes FollowSymLinks
  518.     AllowOverride None
  519.     Require all granted
  520. </Directory>
  521.  
  522. AccessFileName .htaccess
  523.  
  524. <FilesMatch "^\.ht">
  525.     Require all denied
  526. </FilesMatch>
  527.  
  528. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  529. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  530. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  531. LogFormat "%{Referer}i -> %U" referer
  532. LogFormat "%{User-agent}i" agent
  533.  
  534. # Start of /etc/apache2/conf-enabled/security.conf
  535.  
  536. ServerTokens OS
  537.  
  538. ServerSignature On
  539.  
  540. TraceEnable Off
  541.  
  542. # End of /etc/apache2/conf-enabled/security.conf
  543.  
  544. # Start of /etc/apache2/conf-enabled/charset.conf
  545.  
  546. # End of /etc/apache2/conf-enabled/charset.conf
  547.  
  548. # Start of /etc/apache2/conf-enabled/localized-error-pages.conf
  549.  
  550. # End of /etc/apache2/conf-enabled/localized-error-pages.conf
  551.  
  552. # Start of /etc/apache2/conf-enabled/serve-cgi-bin.conf
  553. <IfModule mod_alias.c>
  554.     <IfModule mod_cgi.c>
  555.         Define ENABLE_USR_LIB_CGI_BIN
  556.     </IfModule>
  557.  
  558.     <IfModule mod_cgid.c>
  559.         Define ENABLE_USR_LIB_CGI_BIN
  560.     </IfModule>
  561.  
  562.     <IfDefine ENABLE_USR_LIB_CGI_BIN>
  563.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  564.         <Directory "/usr/lib/cgi-bin">
  565.             AllowOverride None
  566.             Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  567.             Require all granted
  568.         </Directory>
  569.     </IfDefine>
  570. </IfModule>
  571.  
  572. # End of /etc/apache2/conf-enabled/serve-cgi-bin.conf
  573.  
  574. # Start of /etc/apache2/conf-enabled/other-vhosts-access-log.conf
  575. CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
  576.  
  577. # End of /etc/apache2/conf-enabled/other-vhosts-access-log.conf
  578.  
  579. # Start of /etc/apache2/sites-enabled/000-default-le-ssl.conf
  580. <IfModule mod_ssl.c>
  581. <VirtualHost *:443>
  582.  
  583.     ServerAdmin webmaster@localhost
  584.     DocumentRoot /var/www/html
  585.  
  586.     ErrorLog ${APACHE_LOG_DIR}/error.log
  587.     CustomLog ${APACHE_LOG_DIR}/access.log combined
  588.  
  589. ServerName fqdn
  590. SSLCertificateFile /etc/letsencrypt/live/fqdn/fullchain.pem
  591. SSLCertificateKeyFile /etc/letsencrypt/live/fqdn/privkey.pem
  592. # Start of /etc/letsencrypt/options-ssl-apache.conf
  593.  
  594. SSLEngine on
  595.  
  596. SSLProtocol             all -SSLv2 -SSLv3
  597. SSLCipherSuite          ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDFE-ECDAA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+ADGRCM:ECDHE-RSA-AES128-SHA256:ECSDFE-ECSFEA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDSE-RSA-AES256-SHA384:ECDHE-ESDSA-AES256-SHA384:ECGHE-RSA-AES256-SHA:ECEHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMFRLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KAB5-DES-CCC3-SHA
  598. SSLHonorCipherOrder     on
  599. SSLCompression          off
  600.  
  601. SSLOptions +StrictRequire
  602.  
  603. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
  604. LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
  605.  
  606. # End of /etc/letsencrypt/options-ssl-apache.conf
  607.  
  608. </VirtualHost>
  609. </IfModule>
  610. # End of /etc/apache2/sites-enabled/000-default-le-ssl.conf
  611.  
  612. # Start of /etc/apache2/sites-enabled/fqdn.conf
  613. <IfModule mod_ssl.c>
  614. <VirtualHost *:443>
  615.     ServerName fqdn
  616. ServerAdmin e-mail@adresse.de
  617.     DocumentRoot /var/www/html
  618. ErrorLog ${APACHE_LOG_DIR}/fqdn.error.log
  619.     CustomLog ${APACHE_LOG_DIR}/fqdn.access.log combined
  620. SSLCertificateFile /etc/letsencrypt/live/fqdn/fullchain.pem
  621.     SSLCertificateKeyFile /etc/letsencrypt/live/fqdn/privkey.pem
  622. # Start of /etc/letsencrypt/options-ssl-apache.conf
  623.  
  624. SSLEngine on
  625.  
  626. SSLProtocol             all -SSLv2 -SSLv3
  627. SSLCipherSuite          ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
  628. SSLHonorCipherOrder     on
  629. SSLCompression          off
  630.  
  631. SSLOptions +StrictRequire
  632.  
  633. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
  634. LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
  635.  
  636. # End of /etc/letsencrypt/options-ssl-apache.conf
  637.  
  638. ProxyRequests Off
  639.     ProxyVia Off
  640.     ProxyPreserveHost On
  641. <Location /fhem>
  642.         ProxyPass http://localhost:8083/fhem
  643.         ProxyPassReverse http://localhost:8083/fhem
  644.     </Location>
  645. <Directory />
  646.         RedirectPermanent / /fhem
  647.     </Directory>
  648. <Proxy *>
  649.         AuthType Basic
  650.         AuthName "Password for FHEM Required"
  651.         AuthUserFile /etc/fhem-htpasswd
  652.         Require valid-user
  653.         Order deny,allow
  654.         Allow from all
  655.     </Proxy>
  656. </VirtualHost>
  657. </IfModule>
  658.  
  659. # End of /etc/apache2/sites-enabled/fqdn.conf
  660.  
  661. # Start of /etc/apache2/sites-enabled/000-default.conf
  662. <VirtualHost *:80>
  663.  
  664.     ServerAdmin webmaster@localhost
  665.     DocumentRoot /var/www/html
  666.  
  667.     ErrorLog ${APACHE_LOG_DIR}/error.log
  668.     CustomLog ${APACHE_LOG_DIR}/access.log combined
  669.  
  670. RewriteEngine on
  671. RewriteCond %{SERVER_NAME} =fqdn
  672. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  673. </VirtualHost>
  674.  
  675. # End of /etc/apache2/sites-enabled/000-default.conf
  676.  
  677. # End of /etc/apache2/apache2.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement