Skip to content

Instantly share code, notes, and snippets.

@tanweernoor
Created November 8, 2013 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanweernoor/7365106 to your computer and use it in GitHub Desktop.
Save tanweernoor/7365106 to your computer and use it in GitHub Desktop.
# Security
ServerTokens OS
ServerSignature On
TraceEnable Off
ServerName "xx.xx.xx.xx"
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
User apache
Group apache
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy all
</Files>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
DefaultType none
HostnameLookups Off
ErrorLog /var/log/httpd/error_log
LogLevel warn
#Listen 80
Include /etc/httpd/conf.d/*.load
Include /etc/httpd/conf/ports.conf
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Include /etc/httpd/conf.d/*.conf
#Listen 0.0.0.0:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment