FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


middleware:httpd:centos_httpd2.4.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
middleware:httpd:centos_httpd2.4.html [2017/11/14 00:20]
kurihara
middleware:httpd:centos_httpd2.4.html [2020/02/26 01:35]
kurihara
Line 1: Line 1:
-[[conf:httpd:index.html|]] +[[middleware:httpd:index.html]] 
-====== httpd.conf for Apache httpd 2.4 ======+====== Apache httpd 2.4 Configuration for RHEL/CentOS ======
  
-===== /etc/httpd/conf =====+ 
 +===== /etc/httpd/conf/httpd.conf =====
  
 <sxh apache toolbar:false gutter:false> <sxh apache toolbar:false gutter:false>
-###############################################################+#===============================================================================
 # /etc/httpd/conf/httpd.conf # /etc/httpd/conf/httpd.conf
 #    -rw-r--r-- root root #    -rw-r--r-- root root
 # #
-###############################################################+#===============================================================================
 ServerRoot "/etc/httpd" ServerRoot "/etc/httpd"
 Listen 80 Listen 80
Line 31: Line 32:
 <Directory "/var/www/html"> <Directory "/var/www/html">
     Options -Indexes FollowSymLinks     Options -Indexes FollowSymLinks
 +    # AllowOverride controls what directives may be placed in .htaccess files.
 +    # It can be "All", "None", or any combination of the keywords:
     AllowOverride All     AllowOverride All
     Require all granted     Require all granted
Line 43: Line 46:
 </Files> </Files>
  
 +<Location /server-status>
 +    #Permit Private IP
 +    Require ip 127.0.0.1 192.168.0.0/16 172.16.0.0/12 10.0.0.0/16
 +</Location>
 +
 +#-------------------------------------------------------------------------------
 +# log
 +#-------------------------------------------------------------------------------
 ErrorLog "logs/error_log" ErrorLog "logs/error_log"
 LogLevel warn LogLevel warn
Line 54: Line 65:
     CustomLog "logs/access_log" combined     CustomLog "logs/access_log" combined
 </IfModule> </IfModule>
- 
-<IfModule alias_module> 
-    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" 
-</IfModule> 
- 
-<Directory "/var/www/cgi-bin"> 
-    AllowOverride None 
-    Options None 
-    Require all granted 
-</Directory> 
  
 <IfModule mime_module> <IfModule mime_module>
Line 78: Line 79:
     MIMEMagicFile conf/magic     MIMEMagicFile conf/magic
 </IfModule> </IfModule>
 +
  
 EnableSendfile on EnableSendfile on
Line 83: Line 85:
  
  
-#Security 
-ServerTokens Prod 
-ServerSignature Off 
-TraceEnable Off 
-</sxh> 
  
 +#-------------------------------------------------------------------------------
 +# Security
 +#-------------------------------------------------------------------------------
 +ServerTokens Prod    # Prod=Product Minimize HTTP reply header
 +ServerSignature Off  # Suppress error page footer
 +TraceEnable Off      # Disable Trace Medhod
  
 +</sxh>
  
 +
 +\\
 \\ \\
 +<WRAP box 90%>
 +<catlist -noAddPageButton -smallHead -sortAscending>
 +</WRAP>
 \\ \\
-[[conf:httpd:index.html|]]+[[middleware:httpd:index.html]]


middleware/httpd/centos_httpd2.4.html.txt · Last modified: 2020/02/26 01:35 by kurihara