Guest User

Untitled

a guest
Mar 17th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. ServerRoot "/usr/local/opt/httpd"
  2.  
  3. Listen 80
  4.  
  5. LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
  6. LoadModule authn_file_module lib/httpd/modules/mod_authn_file.so
  7. LoadModule authn_core_module lib/httpd/modules/mod_authn_core.so
  8. LoadModule authz_host_module lib/httpd/modules/mod_authz_host.so
  9. LoadModule authz_groupfile_module lib/httpd/modules/mod_authz_groupfile.so
  10. LoadModule authz_user_module lib/httpd/modules/mod_authz_user.so
  11. LoadModule authz_core_module lib/httpd/modules/mod_authz_core.so
  12. LoadModule access_compat_module lib/httpd/modules/mod_access_compat.so
  13. LoadModule auth_basic_module lib/httpd/modules/mod_auth_basic.so
  14. LoadModule reqtimeout_module lib/httpd/modules/mod_reqtimeout.so
  15. LoadModule filter_module lib/httpd/modules/mod_filter.so
  16. LoadModule mime_module lib/httpd/modules/mod_mime.so
  17. LoadModule log_config_module lib/httpd/modules/mod_log_config.so
  18. LoadModule env_module lib/httpd/modules/mod_env.so
  19. LoadModule headers_module lib/httpd/modules/mod_headers.so
  20. LoadModule setenvif_module lib/httpd/modules/mod_setenvif.so
  21. LoadModule version_module lib/httpd/modules/mod_version.so
  22. LoadModule ssl_module lib/httpd/modules/mod_ssl.so
  23. LoadModule unixd_module lib/httpd/modules/mod_unixd.so
  24. LoadModule status_module lib/httpd/modules/mod_status.so
  25. LoadModule autoindex_module lib/httpd/modules/mod_autoindex.so
  26. LoadModule vhost_alias_module lib/httpd/modules/mod_vhost_alias.so
  27. LoadModule dir_module lib/httpd/modules/mod_dir.so
  28. LoadModule alias_module lib/httpd/modules/mod_alias.so
  29.  
  30. <IfModule unixd_module>
  31. #User _www
  32. #Group _www
  33. User alan
  34. Group staff
  35. </IfModule>
  36.  
  37. ServerAdmin you@example.com
  38. <Directory />
  39. AllowOverride none
  40. Require all denied
  41. </Directory>
  42.  
  43. DocumentRoot "/usr/local/var/www"
  44. <Directory "/usr/local/var/www">
  45. Options Indexes FollowSymLinks
  46. AllowOverride None
  47. Require all granted
  48. </Directory>
  49.  
  50. <IfModule dir_module>
  51. DirectoryIndex index.html
  52. </IfModule>
  53.  
  54. <Files ".ht*">
  55. Require all denied
  56. </Files>
  57.  
  58. ErrorLog "/usr/local/var/log/httpd/error_log"
  59.  
  60. LogLevel warn
  61.  
  62. <IfModule log_config_module>
  63. LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
  64. LogFormat "%h %l %u %t "%r" %>s %b" common
  65.  
  66. <IfModule logio_module>
  67. LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
  68. </IfModule>
  69.  
  70. CustomLog "/usr/local/var/log/httpd/access_log" common
  71. </IfModule>
  72.  
  73. <IfModule alias_module>
  74. ScriptAlias /cgi-bin/ "/usr/local/var/www/cgi-bin/"
  75. </IfModule>
  76.  
  77. <IfModule cgid_module>
  78. </IfModule>
  79.  
  80. <Directory "/usr/local/var/www/cgi-bin">
  81. AllowOverride None
  82. Options None
  83. Require all granted
  84. </Directory>
  85.  
  86. <IfModule headers_module>
  87. RequestHeader unset Proxy early
  88. </IfModule>
  89.  
  90. <IfModule mime_module>
  91. TypesConfig /usr/local/etc/httpd/mime.types
  92. AddType application/x-compress .Z
  93. AddType application/x-gzip .gz .tgz
  94. </IfModule>
  95.  
  96. Include /usr/local/etc/httpd/extra/httpd-vhosts.conf
  97. <IfModule proxy_html_module>
  98. Include /usr/local/etc/httpd/extra/proxy-html.conf
  99. </IfModule>
  100.  
  101. <IfModule ssl_module>
  102. SSLRandomSeed startup builtin
  103. SSLRandomSeed connect builtin
  104. </IfModule>
  105.  
  106. <VirtualHost *:80>
  107. ServerName www.mysite.test
  108. ServerAlias mysite.test
  109. DocumentRoot /var/www/mysite.test/dist
  110. ErrorLog /var/www/mysite.test/error.log
  111.  
  112. <Directory />
  113. Options FollowSymLinks
  114. AllowOverride All
  115. Require all granted
  116. </Directory>
  117. </VirtualHost>
  118.  
  119. [Sun Nov 26 22:08:41.069343 2017] [mpm_prefork:notice] [pid 86] AH00169: caught SIGTERM, shutting down
  120. AH00557: httpd: apr_sockaddr_info_get() failed for Alans-MacBook-Pro.local
  121. AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
  122. [Sun Nov 26 22:08:56.872361 2017] [ssl:warn] [pid 86] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
  123. [Sun Nov 26 22:08:56.900975 2017] [mpm_prefork:notice] [pid 86] AH00163: Apache/2.4.29 (Unix) OpenSSL/1.0.2m configured -- resuming normal operations
  124. [Sun Nov 26 22:08:56.901060 2017] [core:notice] [pid 86] AH00094: Command line: '/usr/local/opt/httpd/bin/httpd -D FOREGROUND'
  125.  
  126. LoadModule php5_module /PATH/TO/libphp5.so
  127.  
  128. <IfModule mod_php5.c>
  129. # If php is turned on, we respect .php and .phps files.
  130. AddType application/x-httpd-php .php
  131. AddType application/x-httpd-php-source .phps
  132.  
  133. # Since most users will want index.php to work we
  134. # also automatically enable index.php
  135. <IfModule mod_dir.c>
  136. DirectoryIndex index.html index.php
  137. </IfModule>
  138.  
  139. /etc/apache2/httpd.conf
  140.  
  141. apachectl restart
Add Comment
Please, Sign In to add comment