Advertisement
auzmosis

Config so far

Jan 27th, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.29 KB | None | 0 0
  1. #
  2. # This is the main Apache HTTP server configuration file.
  3.  
  4. #
  5. # ServerRoot: The top of the directory tree under which the server's
  6. # configuration, error, and log files are kept.
  7. #
  8. Define SRVROOT "C:/Apache24"
  9.  
  10. ServerRoot "${SRVROOT}"
  11.  
  12. #
  13. # Listen: Allows you to bind Apache to specific IP addresses and/or
  14. # ports, instead of the default. See also the <VirtualHost>
  15. # directive.
  16. #
  17. # Change this to Listen on specific IP addresses as shown below to
  18. # prevent Apache from glomming onto all bound IP addresses.
  19. #
  20. #Listen 12.34.56.78:80
  21. Listen 80
  22.  
  23. #
  24. # Dynamic Shared Object (DSO) Support
  25. #
  26. # To be able to use the functionality of a module which was built as a DSO you
  27. # have to place corresponding `LoadModule' lines at this location so the
  28. # directives contained in it are actually available _before_ they are used.
  29. # Statically compiled modules (those listed by `httpd -l') do not need
  30. # to be loaded here.
  31. #
  32. # Example:
  33. # LoadModule foo_module modules/mod_foo.so
  34. #
  35. #LoadModule access_compat_module modules/mod_access_compat.so
  36. LoadModule actions_module modules/mod_actions.so
  37. LoadModule alias_module modules/mod_alias.so
  38. LoadModule allowmethods_module modules/mod_allowmethods.so
  39. LoadModule asis_module modules/mod_asis.so
  40. LoadModule auth_basic_module modules/mod_auth_basic.so
  41. #LoadModule auth_digest_module modules/mod_auth_digest.so
  42. #LoadModule auth_form_module modules/mod_auth_form.so
  43. #LoadModule authn_anon_module modules/mod_authn_anon.so
  44. LoadModule authn_core_module modules/mod_authn_core.so
  45. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  46. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  47. LoadModule authn_file_module modules/mod_authn_file.so
  48. #LoadModule authn_socache_module modules/mod_authn_socache.so
  49. #LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
  50. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  51. LoadModule authz_core_module modules/mod_authz_core.so
  52. #LoadModule authz_dbd_module modules/mod_authz_dbd.so
  53. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  54. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  55. LoadModule authz_host_module modules/mod_authz_host.so
  56. #LoadModule authz_owner_module modules/mod_authz_owner.so
  57. LoadModule authz_user_module modules/mod_authz_user.so
  58. LoadModule autoindex_module modules/mod_autoindex.so
  59. #LoadModule brotli_module modules/mod_brotli.so
  60. #LoadModule buffer_module modules/mod_buffer.so
  61. #LoadModule cache_module modules/mod_cache.so
  62. #LoadModule cache_disk_module modules/mod_cache_disk.so
  63. #LoadModule cache_socache_module modules/mod_cache_socache.so
  64. #LoadModule cern_meta_module modules/mod_cern_meta.so
  65. LoadModule cgi_module modules/mod_cgi.so
  66. #LoadModule charset_lite_module modules/mod_charset_lite.so
  67. #LoadModule data_module modules/mod_data.so
  68. #LoadModule dav_module modules/mod_dav.so
  69. #LoadModule dav_fs_module modules/mod_dav_fs.so
  70. #LoadModule dav_lock_module modules/mod_dav_lock.so
  71. #LoadModule dbd_module modules/mod_dbd.so
  72. #LoadModule deflate_module modules/mod_deflate.so
  73. LoadModule dir_module modules/mod_dir.so
  74. #LoadModule dumpio_module modules/mod_dumpio.so
  75. LoadModule env_module modules/mod_env.so
  76. #LoadModule expires_module modules/mod_expires.so
  77. #LoadModule ext_filter_module modules/mod_ext_filter.so
  78. #LoadModule file_cache_module modules/mod_file_cache.so
  79. #LoadModule filter_module modules/mod_filter.so
  80. #LoadModule http2_module modules/mod_http2.so
  81. LoadModule headers_module modules/mod_headers.so
  82. #LoadModule heartbeat_module modules/mod_heartbeat.so
  83. #LoadModule heartmonitor_module modules/mod_heartmonitor.so
  84. #LoadModule ident_module modules/mod_ident.so
  85. #LoadModule imagemap_module modules/mod_imagemap.so
  86. LoadModule include_module modules/mod_include.so
  87. #LoadModule info_module modules/mod_info.so
  88. LoadModule isapi_module modules/mod_isapi.so
  89. #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
  90. #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
  91. #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
  92. #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
  93. #LoadModule ldap_module modules/mod_ldap.so
  94. #LoadModule logio_module modules/mod_logio.so
  95. LoadModule log_config_module modules/mod_log_config.so
  96. #LoadModule log_debug_module modules/mod_log_debug.so
  97. #LoadModule log_forensic_module modules/mod_log_forensic.so
  98. #LoadModule lua_module modules/mod_lua.so
  99. #LoadModule macro_module modules/mod_macro.so
  100. #LoadModule md_module modules/mod_md.so
  101. LoadModule mime_module modules/mod_mime.so
  102. #LoadModule mime_magic_module modules/mod_mime_magic.so
  103. LoadModule negotiation_module modules/mod_negotiation.so
  104. LoadModule proxy_module modules/mod_proxy.so
  105. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  106. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  107. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  108. LoadModule proxy_express_module modules/mod_proxy_express.so
  109. LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  110. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  111. LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
  112. LoadModule proxy_html_module modules/mod_proxy_html.so
  113. LoadModule proxy_http_module modules/mod_proxy_http.so
  114. LoadModule proxy_http2_module modules/mod_proxy_http2.so
  115. LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  116. LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
  117. LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
  118. #LoadModule ratelimit_module modules/mod_ratelimit.so
  119. #LoadModule reflector_module modules/mod_reflector.so
  120. #LoadModule remoteip_module modules/mod_remoteip.so
  121. #LoadModule request_module modules/mod_request.so
  122. #LoadModule reqtimeout_module modules/mod_reqtimeout.so
  123. LoadModule rewrite_module modules/mod_rewrite.so
  124. #LoadModule sed_module modules/mod_sed.so
  125. #LoadModule session_module modules/mod_session.so
  126. #LoadModule session_cookie_module modules/mod_session_cookie.so
  127. #LoadModule session_crypto_module modules/mod_session_crypto.so
  128. #LoadModule session_dbd_module modules/mod_session_dbd.so
  129. LoadModule setenvif_module modules/mod_setenvif.so
  130. LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
  131. LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  132. LoadModule socache_dbm_module modules/mod_socache_dbm.so
  133. LoadModule socache_memcache_module modules/mod_socache_memcache.so
  134. LoadModule socache_redis_module modules/mod_socache_redis.so
  135. LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  136. #LoadModule speling_module modules/mod_speling.so
  137. LoadModule ssl_module modules/mod_ssl.so
  138. #LoadModule status_module modules/mod_status.so
  139. #LoadModule substitute_module modules/mod_substitute.so
  140. #LoadModule unique_id_module modules/mod_unique_id.so
  141. #LoadModule userdir_module modules/mod_userdir.so
  142. #LoadModule usertrack_module modules/mod_usertrack.so
  143. #LoadModule version_module modules/mod_version.so
  144. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  145. LoadModule watchdog_module modules/mod_watchdog.so
  146. LoadModule xml2enc_module modules/mod_xml2enc.so
  147.  
  148. <IfModule unixd_module>
  149. #
  150. # If you wish httpd to run as a different user or group, you must run
  151. # httpd as root initially and it will switch.
  152. #
  153. # User/Group: The name (or #number) of the user/group to run httpd as.
  154. # It is usually good practice to create a dedicated user and group for
  155. # running httpd, as with most system services.
  156. #
  157. User daemon
  158. Group daemon
  159.  
  160. </IfModule>
  161.  
  162. # 'Main' server configuration
  163. #
  164. # ServerAdmin: Your address, where problems with the server should be
  165. # e-mailed. This address appears on some server-generated pages, such
  166. # as error documents. e.g. [email protected]
  167. #
  168. ServerAdmin [email protected]
  169.  
  170. #
  171. # ServerName gives the name and port that the server uses to identify itself.
  172. # This can often be determined automatically, but we recommend you specify
  173. # it explicitly to prevent problems during startup.
  174. #
  175. # If your host doesn't have a registered DNS name, enter its IP address here.
  176. #
  177. ServerName tardismedia.ca:80
  178.  
  179. #
  180. # Deny access to the entirety of your server's filesystem. You must
  181. # explicitly permit access to web content directories in other
  182. # <Directory> blocks below.
  183. #
  184. <Directory />
  185. AllowOverride none
  186. Require all denied
  187. </Directory>
  188.  
  189. #
  190. # DocumentRoot: The directory out of which you will serve your
  191. # documents. By default, all requests are taken from this directory, but
  192. # symbolic links and aliases may be used to point to other locations.
  193. #
  194. DocumentRoot "${SRVROOT}/htdocs"
  195. <Directory "${SRVROOT}/htdocs">
  196. #
  197. # Possible values for the Options directive are "None", "All",
  198. # or any combination of:
  199. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  200. #
  201. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  202. # doesn't give it to you.
  203. #
  204. # The Options directive is both complicated and important. Please see
  205. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  206. # for more information.
  207. #
  208. Options Indexes FollowSymLinks
  209.  
  210. #
  211. # AllowOverride controls what directives may be placed in .htaccess files.
  212. # It can be "All", "None", or any combination of the keywords:
  213. # AllowOverride FileInfo AuthConfig Limit
  214. #
  215. AllowOverride None
  216.  
  217. #
  218. # Controls who can get stuff from this server.
  219. #
  220. Require all granted
  221. </Directory>
  222.  
  223. #
  224. # DirectoryIndex: sets the file that Apache will serve if a directory
  225. # is requested.
  226. #
  227. <IfModule dir_module>
  228. DirectoryIndex index.html
  229. </IfModule>
  230.  
  231. #
  232. # The following lines prevent .htaccess and .htpasswd files from being
  233. # viewed by Web clients.
  234. #
  235. <Files ".ht*">
  236. Require all denied
  237. </Files>
  238.  
  239. #
  240. # ErrorLog: The location of the error log file.
  241. # If you do not specify an ErrorLog directive within a <VirtualHost>
  242. # container, error messages relating to that virtual host will be
  243. # logged here. If you *do* define an error logfile for a <VirtualHost>
  244. # container, that host's errors will be logged there and not here.
  245. #
  246. ErrorLog "logs/error.log"
  247.  
  248. #
  249. # LogLevel: Control the number of messages logged to the error_log.
  250. # Possible values include: debug, info, notice, warn, error, crit,
  251. # alert, emerg.
  252. #
  253. LogLevel warn
  254.  
  255. <IfModule log_config_module>
  256. #
  257. # The following directives define some format nicknames for use with
  258. # a CustomLog directive (see below).
  259. #
  260. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  261. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  262.  
  263. <IfModule logio_module>
  264. # You need to enable mod_logio.c to use %I and %O
  265. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  266. </IfModule>
  267.  
  268. #
  269. # The location and format of the access logfile (Common Logfile Format).
  270. # If you do not define any access logfiles within a <VirtualHost>
  271. # container, they will be logged here. Contrariwise, if you *do*
  272. # define per-<VirtualHost> access logfiles, transactions will be
  273. # logged therein and *not* in this file.
  274. #
  275. CustomLog "logs/access.log" common
  276.  
  277. #
  278. # If you prefer a logfile with access, agent, and referer information
  279. # (Combined Logfile Format) you can use the following directive.
  280. #
  281. #CustomLog "logs/access.log" combined
  282. </IfModule>
  283.  
  284. <IfModule alias_module>
  285. #
  286. #
  287. # ScriptAlias: This controls which directories contain server scripts.
  288. # ScriptAliases are essentially the same as Aliases, except that
  289. # documents in the target directory are treated as applications and
  290. # run by the server when requested rather than as documents sent to the
  291. # client. The same rules about trailing "/" apply to ScriptAlias
  292. # directives as to Alias.
  293. #
  294. ScriptAlias /cgi-bin/ "${SRVROOT}/cgi-bin/"
  295.  
  296. </IfModule>
  297.  
  298. <IfModule cgid_module>
  299. #
  300. # ScriptSock: On threaded servers, designate the path to the UNIX
  301. # socket used to communicate with the CGI daemon of mod_cgid.
  302. #
  303. #Scriptsock cgisock
  304. </IfModule>
  305.  
  306. #
  307. # "${SRVROOT}/cgi-bin" should be changed to whatever your ScriptAliased
  308. # CGI directory exists, if you have that configured.
  309. #
  310. <Directory "${SRVROOT}/cgi-bin">
  311. AllowOverride None
  312. Options None
  313. Require all granted
  314. </Directory>
  315.  
  316. <IfModule headers_module>
  317. #
  318. # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  319. # backend servers which have lingering "httpoxy" defects.
  320. # 'Proxy' request header is undefined by the IETF, not listed by IANA
  321. #
  322. RequestHeader unset Proxy early
  323. </IfModule>
  324.  
  325. <IfModule mime_module>
  326. #
  327. # TypesConfig points to the file containing the list of mappings from
  328. # filename extension to MIME-type.
  329. #
  330. TypesConfig conf/mime.types
  331. AddType application/x-compress .Z
  332. AddType application/x-gzip .gz .tgz
  333.  
  334. </IfModule>
  335.  
  336. #
  337. # Supplemental configuration
  338. #
  339. # The configuration files in the conf/extra/ directory can be
  340. # included to add extra features or to modify the default configuration of
  341. # the server, or you may simply copy their contents here and change as
  342. # necessary.
  343.  
  344. # Server-pool management (MPM specific)
  345. Include conf/extra/httpd-mpm.conf
  346.  
  347. # Virtual hosts
  348. Include conf/extra/httpd-vhosts.conf
  349.  
  350. <VirtualHost *:80>
  351. # This first-listed virtual host is also the default for *:80
  352. ServerName www.tardismedia.ca
  353. ServerAlias tardismedia.ca
  354. DocumentRoot "C:\Apache24\htdocs"
  355. </VirtualHost>
  356.  
  357. <VirtualHost *:80>
  358. ServerName doctorwho.ca
  359. DocumentRoot "C:\Apache24\htdocs\doctorwho.ca"
  360. </VirtualHost>
  361.  
  362. # Configure mod_proxy_html to understand HTML4/XHTML1
  363. <IfModule proxy_html_module>
  364. Include conf/extra/proxy-html.conf
  365. </IfModule>
  366.  
  367. #This include was written by the apache gui program
  368. Include "C:/Apache24/conf/apachegui.conf"
  369.  
  370. <MDomain tardismedia.ca>
  371.  
  372. <VirtualHost *:443>
  373. ServerName tardismedia.ca
  374. DocumentRoot htdocs/a
  375.  
  376. SSLEngine on
  377. # no certificates specification
  378. Protocols h2 http/1.1 acme-tls/1
  379. MDChallengeDns01 /bin/acme-setup-dns /bin/acme-setup-dns setup tardismedia.ca challenge-data
  380. MDChallengeDns01 /usr/bin/acme-setup-dns /bin/acme-setup-dns teardown
  381.  
  382. # this needs to remove all existing DNS TXT records for
  383. # _acme-challenge.mydomain.com and create a new one with
  384. # content "challenge-data"
  385. <Location "/md-status">
  386. SetHandler md-status
  387. </Location>
  388. MDStapling on
  389. </MDomain>
  390. `</VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement