Advertisement
Guest User

Untitled

a guest
Jul 29th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.73 KB | None | 0 0
  1. #
  2. # This is the main Apache HTTP server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned.
  12. #
  13. # Configuration and logfile names: If the filenames you specify for many
  14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  15. # server will use that explicit path. If the filenames do *not* begin
  16. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  17. # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
  18. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
  19. # will be interpreted as '/logs/access_log'.
  20.  
  21. #
  22. # ServerRoot: The top of the directory tree under which the server's
  23. # configuration, error, and log files are kept.
  24. #
  25. # Do not add a slash at the end of the directory path. If you point
  26. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  27. # Mutex directive, if file-based mutexes are used. If you wish to share the
  28. # same ServerRoot for multiple httpd daemons, you will need to change at
  29. # least PidFile.
  30. #
  31. ServerRoot "/opt/bitnami/apache2"
  32.  
  33. #
  34. # Mutex: Allows you to set the mutex mechanism and mutex file directory
  35. # for individual mutexes, or change the global defaults
  36. #
  37. # Uncomment and change the directory if mutexes are file-based and the default
  38. # mutex file directory is not on a local disk or is not appropriate for some
  39. # other reason.
  40. #
  41. # Mutex default:logs
  42.  
  43. #
  44. # Listen: Allows you to bind Apache to specific IP addresses and/or
  45. # ports, instead of the default. See also the <VirtualHost>
  46. # directive.
  47. #
  48. # Change this to Listen on specific IP addresses as shown below to
  49. # prevent Apache from glomming onto all bound IP addresses.
  50. #
  51. #Listen 12.34.56.78:80
  52.  
  53. Listen 80
  54.  
  55. LoadModule mpm_event_module modules/mod_mpm_event.so
  56. #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
  57. #LoadModule mpm_worker_module modules/mod_mpm_worker.so
  58. LoadModule authn_file_module modules/mod_authn_file.so
  59. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  60. #LoadModule authn_anon_module modules/mod_authn_anon.so
  61. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  62. #LoadModule authn_socache_module modules/mod_authn_socache.so
  63. LoadModule authn_core_module modules/mod_authn_core.so
  64. LoadModule authz_host_module modules/mod_authz_host.so
  65. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  66. LoadModule authz_user_module modules/mod_authz_user.so
  67. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  68. #LoadModule authz_owner_module modules/mod_authz_owner.so
  69. #LoadModule authz_dbd_module modules/mod_authz_dbd.so
  70. LoadModule authz_core_module modules/mod_authz_core.so
  71. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  72. LoadModule access_compat_module modules/mod_access_compat.so
  73. LoadModule auth_basic_module modules/mod_auth_basic.so
  74. #LoadModule auth_form_module modules/mod_auth_form.so
  75. #LoadModule auth_digest_module modules/mod_auth_digest.so
  76. #LoadModule allowmethods_module modules/mod_allowmethods.so
  77. #LoadModule file_cache_module modules/mod_file_cache.so
  78. #LoadModule cache_module modules/mod_cache.so
  79. #LoadModule cache_disk_module modules/mod_cache_disk.so
  80. #LoadModule cache_socache_module modules/mod_cache_socache.so
  81. LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  82. #LoadModule socache_dbm_module modules/mod_socache_dbm.so
  83. #LoadModule socache_memcache_module modules/mod_socache_memcache.so
  84. #LoadModule watchdog_module modules/mod_watchdog.so
  85. #LoadModule macro_module modules/mod_macro.so
  86. #LoadModule dbd_module modules/mod_dbd.so
  87. #LoadModule dumpio_module modules/mod_dumpio.so
  88. #LoadModule buffer_module modules/mod_buffer.so
  89. #LoadModule ratelimit_module modules/mod_ratelimit.so
  90. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  91. #LoadModule ext_filter_module modules/mod_ext_filter.so
  92. #LoadModule request_module modules/mod_request.so
  93. #LoadModule include_module modules/mod_include.so
  94. LoadModule filter_module modules/mod_filter.so
  95. #LoadModule substitute_module modules/mod_substitute.so
  96. #LoadModule sed_module modules/mod_sed.so
  97. LoadModule deflate_module modules/mod_deflate.so
  98. LoadModule mime_module modules/mod_mime.so
  99. #LoadModule ldap_module modules/mod_ldap.so
  100. LoadModule log_config_module modules/mod_log_config.so
  101. #LoadModule log_debug_module modules/mod_log_debug.so
  102. #LoadModule logio_module modules/mod_logio.so
  103. LoadModule env_module modules/mod_env.so
  104. #LoadModule expires_module modules/mod_expires.so
  105. LoadModule headers_module modules/mod_headers.so
  106. #LoadModule unique_id_module modules/mod_unique_id.so
  107. LoadModule setenvif_module modules/mod_setenvif.so
  108. LoadModule version_module modules/mod_version.so
  109. #LoadModule remoteip_module modules/mod_remoteip.so
  110. LoadModule proxy_module modules/mod_proxy.so
  111. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  112. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  113. LoadModule proxy_http_module modules/mod_proxy_http.so
  114. LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  115. LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  116. #LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
  117. #LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
  118. LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
  119. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  120. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  121. LoadModule proxy_express_module modules/mod_proxy_express.so
  122. #LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
  123. #LoadModule session_module modules/mod_session.so
  124. #LoadModule session_cookie_module modules/mod_session_cookie.so
  125. #LoadModule session_dbd_module modules/mod_session_dbd.so
  126. LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  127. LoadModule ssl_module modules/mod_ssl.so
  128. #LoadModule http2_module modules/mod_http2.so
  129. LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
  130. LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
  131. LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
  132. #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
  133. LoadModule unixd_module modules/mod_unixd.so
  134. #LoadModule dav_module modules/mod_dav.so
  135. LoadModule status_module modules/mod_status.so
  136. LoadModule autoindex_module modules/mod_autoindex.so
  137. #LoadModule info_module modules/mod_info.so
  138. #LoadModule cgid_module modules/mod_cgid.so
  139. #LoadModule dav_fs_module modules/mod_dav_fs.so
  140. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  141. LoadModule negotiation_module modules/mod_negotiation.so
  142. LoadModule dir_module modules/mod_dir.so
  143. LoadModule actions_module modules/mod_actions.so
  144. #LoadModule speling_module modules/mod_speling.so
  145. #LoadModule userdir_module modules/mod_userdir.so
  146. LoadModule alias_module modules/mod_alias.so
  147. LoadModule rewrite_module modules/mod_rewrite.so
  148. #LoadModule php7_module modules/libphp7.so
  149.  
  150. <IfModule unixd_module>
  151. #
  152. # If you wish httpd to run as a different user or group, you must run
  153. # httpd as root initially and it will switch.
  154. #
  155. # User/Group: The name (or #number) of the user/group to run httpd as.
  156. # It is usually good practice to create a dedicated user and group for
  157. # running httpd, as with most system services.
  158. #
  159. User daemon
  160. Group daemon
  161.  
  162. </IfModule>
  163.  
  164. # 'Main' server configuration
  165. #
  166. # The directives in this section set up the values used by the 'main'
  167. # server, which responds to any requests that aren't handled by a
  168. # <VirtualHost> definition. These values also provide defaults for
  169. # any <VirtualHost> containers you may define later in the file.
  170. #
  171. # All of these directives may appear inside <VirtualHost> containers,
  172. # in which case these default settings will be overridden for the
  173. # virtual host being defined.
  174. #
  175.  
  176. #
  177. # ServerAdmin: Your address, where problems with the server should be
  178. # e-mailed. This address appears on some server-generated pages, such
  179. # as error documents. e.g. admin@your-domain.com
  180. #
  181. ServerAdmin nateta98@gmail.com
  182.  
  183. #
  184. # ServerName gives the name and port that the server uses to identify itself.
  185. # This can often be determined automatically, but we recommend you specify
  186. # it explicitly to prevent problems during startup.
  187. #
  188. # If your host doesn't have a registered DNS name, enter its IP address here.
  189. #
  190. ServerName localhost:80
  191.  
  192. #
  193. # Deny access to the entirety of your server's filesystem. You must
  194. # explicitly permit access to web content directories in other
  195. # <Directory> blocks below.
  196. #
  197. <Directory />
  198. AllowOverride none
  199. Require all granted
  200. </Directory>
  201.  
  202.  
  203.  
  204. # A N D R E A C R A F T . C O M
  205. <VirtualHost *:80>
  206. ServerAdmin nateta98@gmail.com
  207. ServerName www.andreacraft.com
  208. ServerAlias andreacraft.com
  209. DocumentRoot "/home/bitnami/htdocs/andreacraft.com"
  210.  
  211. <Directory "/home/bitnami/htdocs/andreacraft.com">
  212. Require all granted
  213. AllowOverride All
  214. Allow from all
  215. </Directory>
  216. </VirtualHost>
  217. <VirtualHost *:443>
  218. ServerAdmin nateta98@gmail.com
  219. ServerName www.andreacraft.com
  220. ServerAlias andreacraft.com
  221. DocumentRoot "/home/bitnami/htdocs/andreacraft.com"
  222.  
  223. SSLEngine on
  224. SSLCertificateFile /home/bitnami/certs/certificates/www.andreacraft.com.crt
  225. SSLCertificateKeyFile /home/bitnami/certs/certificates/www.andreacraft.com.key
  226.  
  227. <Directory "/home/bitnami/htdocs/andreacraft.com">
  228. Require all granted
  229. AllowOverride All
  230. Allow from all
  231. </Directory>
  232. </VirtualHost>
  233.  
  234.  
  235. # P E N T A X S . C O M
  236. <VirtualHost *:80>
  237. ServerAdmin nateta98@gmail.com
  238. ServerName www.pentaxs.com
  239. ServerAlias pentaxs.com
  240. DocumentRoot "/home/bitnami/htdocs/pentaxs.com"
  241.  
  242. <Directory "/home/bitnami/htdocs/pentaxs.com">
  243. Require all granted
  244. AllowOverride All
  245. Allow from all
  246. </Directory>
  247. </VirtualHost>
  248. <VirtualHost *:443>
  249. ServerAdmin nateta98@gmail.com
  250. ServerName www.pentaxs.com
  251. ServerAlias pentaxs.com
  252. DocumentRoot "/home/bitnami/htdocs/pentaxs.com"
  253.  
  254. SSLEngine on
  255. SSLCertificateFile /home/bitnami/certs/certificates/www.pentaxs.com.crt
  256. SSLCertificateKeyFile /home/bitnami/certs/certificates/www.pentaxs.com.key
  257.  
  258. <Directory "/home/bitnami/htdocs/andreacraft.com">
  259. Require all granted
  260. AllowOverride All
  261. Allow from all
  262. </Directory>
  263. </VirtualHost>
  264.  
  265.  
  266.  
  267.  
  268. # J A P R O B U I L D I N T E R I O R S . C O M
  269. <VirtualHost *:80>
  270. ServerAdmin nateta98@gmail.com
  271. ServerName www.japrobuildinteriors.com
  272. ServerAlias japrobuildinteriors.com
  273. DocumentRoot "/home/bitnami/htdocs/japrobuilders.com"
  274.  
  275. <Directory "/home/bitnami/htdocs/japrobuilders.com">
  276. Require all granted
  277. AllowOverride All
  278. Allow from all
  279. </Directory>
  280. </VirtualHost>
  281. <VirtualHost *:443>
  282. ServerAdmin nateta98@gmail.com
  283. ServerName www.japrobuildinteriors.com
  284. ServerAlias japrobuildinteriors.com
  285. DocumentRoot "/home/bitnami/htdocs/japrobuilders.com"
  286.  
  287. SSLEngine on
  288. SSLCertificateFile /home/bitnami/certs/certificates/japrobuilders.com.crt
  289. SSLCertificateKeyFile /home/bitnami/certs/certificates/japrobuilders.com.key
  290.  
  291. <Directory "/home/bitnami/htdocs/japrobuilders.com">
  292. Require all granted
  293. AllowOverride All
  294. Allow from all
  295. </Directory>
  296. </VirtualHost>
  297.  
  298. #
  299. # Note that from this point forward you must specifically allow
  300. # particular features to be enabled - so if something's not working as
  301. # you might expect, make sure that you have specifically enabled it
  302. # below.
  303. #
  304.  
  305. #
  306. # DocumentRoot: The directory out of which you will serve your
  307. # documents. By default, all requests are taken from this directory, but
  308. # symbolic links and aliases may be used to point to other locations.
  309. #
  310. DocumentRoot "/opt/bitnami/apache2/htdocs"
  311. <Directory "/opt/bitnami/apache2/htdocs">
  312. #
  313. # Possible values for the Options directive are "None", "All",
  314. # or any combination of:
  315. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  316. #
  317. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  318. # doesn't give it to you.
  319. #
  320. # The Options directive is both complicated and important. Please see
  321. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  322. # for more information.
  323. #
  324. Options Indexes FollowSymLinks
  325.  
  326. #
  327. # AllowOverride controls what directives may be placed in .htaccess files.
  328. # It can be "All", "None", or any combination of the keywords:
  329. # AllowOverride FileInfo AuthConfig Limit
  330. #
  331. AllowOverride None
  332.  
  333. #
  334. # Controls who can get stuff from this server.
  335. #
  336. Require all granted
  337. </Directory>
  338.  
  339. #
  340. # DirectoryIndex: sets the file that Apache will serve if a directory
  341. # is requested.
  342. #
  343. <IfModule dir_module>
  344. DirectoryIndex index.html index.php
  345. </IfModule>
  346.  
  347. #
  348. # The following lines prevent .htaccess and .htpasswd files from being
  349. # viewed by Web clients.
  350. #
  351. <Files ".ht*">
  352. Require all denied
  353. </Files>
  354.  
  355. #
  356. # ErrorLog: The location of the error log file.
  357. # If you do not specify an ErrorLog directive within a <VirtualHost>
  358. # container, error messages relating to that virtual host will be
  359. # logged here. If you *do* define an error logfile for a <VirtualHost>
  360. # container, that host's errors will be logged there and not here.
  361. #
  362. ErrorLog "logs/error_log"
  363.  
  364. #
  365. # LogLevel: Control the number of messages logged to the error_log.
  366. # Possible values include: debug, info, notice, warn, error, crit,
  367. # alert, emerg.
  368. #
  369. LogLevel warn
  370.  
  371. <IfModule log_config_module>
  372. #
  373. # The following directives define some format nicknames for use with
  374. # a CustomLog directive (see below).
  375. #
  376. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  377. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  378.  
  379. <IfModule logio_module>
  380. # You need to enable mod_logio.c to use %I and %O
  381. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  382. </IfModule>
  383.  
  384. #
  385. # The location and format of the access logfile (Common Logfile Format).
  386. # If you do not define any access logfiles within a <VirtualHost>
  387. # container, they will be logged here. Contrariwise, if you *do*
  388. # define per-<VirtualHost> access logfiles, transactions will be
  389. # logged therein and *not* in this file.
  390. #
  391. CustomLog "logs/access_log" common
  392.  
  393. #
  394. # If you prefer a logfile with access, agent, and referer information
  395. # (Combined Logfile Format) you can use the following directive.
  396. #
  397. #CustomLog "logs/access_log" combined
  398. </IfModule>
  399.  
  400. <IfModule alias_module>
  401. #
  402. # Redirect: Allows you to tell clients about documents that used to
  403. # exist in your server's namespace, but do not anymore. The client
  404. # will make a new request for the document at its new location.
  405. # Example:
  406. # Redirect permanent /foo http://www.example.com/bar
  407.  
  408. #
  409. # Alias: Maps web paths into filesystem paths and is used to
  410. # access content that does not live under the DocumentRoot.
  411. # Example:
  412. # Alias /webpath /full/filesystem/path
  413. #
  414. # If you include a trailing / on /webpath then the server will
  415. # require it to be present in the URL. You will also likely
  416. # need to provide a <Directory> section to allow access to
  417. # the filesystem path.
  418.  
  419. #
  420. # ScriptAlias: This controls which directories contain server scripts.
  421. # ScriptAliases are essentially the same as Aliases, except that
  422. # documents in the target directory are treated as applications and
  423. # run by the server when requested rather than as documents sent to the
  424. # client. The same rules about trailing "/" apply to ScriptAlias
  425. # directives as to Alias.
  426. #
  427. ScriptAlias /cgi-bin/ "/opt/bitnami/apache2/cgi-bin/"
  428.  
  429. </IfModule>
  430.  
  431. <IfModule cgid_module>
  432. #
  433. # ScriptSock: On threaded servers, designate the path to the UNIX
  434. # socket used to communicate with the CGI daemon of mod_cgid.
  435. #
  436. #Scriptsock cgisock
  437. </IfModule>
  438.  
  439. #
  440. # "/opt/bitnami/apache2/cgi-bin" should be changed to whatever your ScriptAliased
  441. # CGI directory exists, if you have that configured.
  442. #
  443. <Directory "/opt/bitnami/apache2/cgi-bin">
  444. AllowOverride None
  445. Options None
  446. Require all granted
  447. </Directory>
  448.  
  449. <IfModule headers_module>
  450. #
  451. # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  452. # backend servers which have lingering "httpoxy" defects.
  453. # 'Proxy' request header is undefined by the IETF, not listed by IANA
  454. #
  455. RequestHeader unset Proxy early
  456. </IfModule>
  457.  
  458. <IfModule mime_module>
  459. #
  460. # TypesConfig points to the file containing the list of mappings from
  461. # filename extension to MIME-type.
  462. #
  463. TypesConfig conf/mime.types
  464.  
  465. #
  466. # AddType allows you to add to or override the MIME configuration
  467. # file specified in TypesConfig for specific file types.
  468. #
  469. #AddType application/x-gzip .tgz
  470. #
  471. # AddEncoding allows you to have certain browsers uncompress
  472. # information on the fly. Note: Not all browsers support this.
  473. #
  474. #AddEncoding x-compress .Z
  475. #AddEncoding x-gzip .gz .tgz
  476. #
  477. # If the AddEncoding directives above are commented-out, then you
  478. # probably should define those extensions to indicate media types:
  479. #
  480. AddType application/x-compress .Z
  481. AddType application/x-gzip .gz .tgz
  482.  
  483. #
  484. # AddHandler allows you to map certain file extensions to "handlers":
  485. # actions unrelated to filetype. These can be either built into the server
  486. # or added with the Action directive (see below)
  487. #
  488. # To use CGI scripts outside of ScriptAliased directories:
  489. # (You will also need to add "ExecCGI" to the "Options" directive.)
  490. #
  491. #AddHandler cgi-script .cgi
  492.  
  493. # For type maps (negotiated resources):
  494. #AddHandler type-map var
  495.  
  496. #
  497. # Filters allow you to process content before it is sent to the client.
  498. #
  499. # To parse .shtml files for server-side includes (SSI):
  500. # (You will also need to add "Includes" to the "Options" directive.)
  501. #
  502. #AddType text/html .shtml
  503. #AddOutputFilter INCLUDES .shtml
  504. </IfModule>
  505.  
  506. #
  507. # The mod_mime_magic module allows the server to use various hints from the
  508. # contents of the file itself to determine its type. The MIMEMagicFile
  509. # directive tells the module where the hint definitions are located.
  510. #
  511. #MIMEMagicFile conf/magic
  512.  
  513. #
  514. # Customizable error responses come in three flavors:
  515. # 1) plain text 2) local redirects 3) external redirects
  516. #
  517. # Some examples:
  518. #ErrorDocument 500 "The server made a boo boo."
  519. #ErrorDocument 404 /missing.html
  520. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  521. #ErrorDocument 402 http://www.example.com/subscription_info.html
  522. #
  523.  
  524. #
  525. # MaxRanges: Maximum number of Ranges in a request before
  526. # returning the entire resource, or one of the special
  527. # values 'default', 'none' or 'unlimited'.
  528. # Default setting is to accept 200 Ranges.
  529. #MaxRanges unlimited
  530.  
  531. #
  532. # EnableMMAP and EnableSendfile: On systems that support it,
  533. # memory-mapping or the sendfile syscall may be used to deliver
  534. # files. This usually improves server performance, but must
  535. # be turned off when serving from networked-mounted
  536. # filesystems or if support for these functions is otherwise
  537. # broken on your system.
  538. # Defaults: EnableMMAP On, EnableSendfile Off
  539. #
  540. #EnableMMAP off
  541. #EnableSendfile on
  542.  
  543. # Supplemental configuration
  544. #
  545. # The configuration files in the conf/extra/ directory can be
  546. # included to add extra features or to modify the default configuration of
  547. # the server, or you may simply copy their contents here and change as
  548. # necessary.
  549.  
  550. # Server-pool management (MPM specific)
  551. #Include conf/extra/httpd-mpm.conf
  552.  
  553. # Multi-language error messages
  554. #Include conf/extra/httpd-multilang-errordoc.conf
  555.  
  556. # Fancy directory listings
  557. #Include conf/extra/httpd-autoindex.conf
  558.  
  559. # Language settings
  560. #Include conf/extra/httpd-languages.conf
  561.  
  562. # User home directories
  563. #Include conf/extra/httpd-userdir.conf
  564.  
  565. # Real-time info on requests and configuration
  566. #Include conf/extra/httpd-info.conf
  567.  
  568. # Virtual hosts
  569. #Include conf/extra/httpd-vhosts.conf
  570.  
  571. # Local access to the Apache HTTP Server Manual
  572. #Include conf/extra/httpd-manual.conf
  573.  
  574. # Distributed authoring and versioning (WebDAV)
  575. #Include conf/extra/httpd-dav.conf
  576.  
  577. # Various default settings
  578. #Include conf/extra/httpd-default.conf
  579.  
  580. # Configure mod_proxy_html to understand HTML4/XHTML1
  581. <IfModule proxy_html_module>
  582. Include conf/extra/proxy-html.conf
  583. </IfModule>
  584.  
  585. # Secure (SSL/TLS) connections
  586. #Include conf/extra/httpd-ssl.conf
  587. #
  588. # Note: The following must must be present to support
  589. # starting without SSL on platforms with no /dev/random equivalent
  590. # but a statically compiled-in mod_ssl.
  591. #
  592. <IfModule ssl_module>
  593. SSLRandomSeed startup builtin
  594. SSLRandomSeed connect builtin
  595. </IfModule>
  596.  
  597. Include "conf/deflate.conf"
  598. Include conf/pagespeed.conf
  599. Include conf/pagespeed_libraries.conf
  600.  
  601. AddType application/x-httpd-php .php .phtml
  602.  
  603. # This enables using PHP-FPM when mod_php is disabled
  604. <IfModule !php7_module>
  605. #https://docs.bitnami.com/general/components/php-fpm/#php-fpm-did-not-handle-the-connection-error
  606. Action application/x-httpd-php "/bitnami-error-php-fpm-did-not-handle-the-connection"
  607. Define USE_PHP_FPM
  608. Include "conf/php-fpm-apache.conf"
  609. </IfModule>
  610.  
  611. <IfModule headers_module>
  612. <IfVersion >= 2.4.7 >
  613. Header always setifempty X-Frame-Options SAMEORIGIN
  614. </IfVersion>
  615. <IfVersion < 2.4.7 >
  616. Header always merge X-Frame-Options SAMEORIGIN
  617. </IfVersion>
  618. RequestHeader unset Proxy
  619. </IfModule>
  620.  
  621. # The following lines prevent .user.ini PHP settings files from being viewed by Web clients.
  622. <Files ".user.ini">
  623.  
  624. <IfVersion < 2.3 >
  625. Order allow,deny
  626. Deny from all
  627. </IfVersion>
  628. <IfVersion >= 2.3>
  629. Require all denied
  630. </IfVersion>
  631.  
  632. </Files>
  633.  
  634. # Security
  635. ServerSignature Off
  636. ServerTokens Prod
  637. TraceEnable Off
  638.  
  639. Include "/opt/bitnami/apache2/conf/ssi.conf"
  640. AddType application/x-httpd-php .php
  641. <IfModule php7_module>
  642. PHPIniDir "/opt/bitnami/php/etc"
  643. </IfModule>
  644.  
  645. Include "/opt/bitnami/apache2/conf/bitnami/bitnami.conf"
  646.  
  647. Include "/opt/bitnami/apache2/conf/bitnami/httpd.conf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement