Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServerName localhost
- ServerSignature Off
- ServerTokens Prod
- HostnameLookups Off
- DirectoryIndex /index.php index.php
- LogFormat "%a %l %u %t \"%m %{Host}i%U%q %H\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{ms}T" mycombined
- RedirectMatch 404 /\\.svn(/|$)
- <Files wp-login.php>
- RewriteCond %{HTTP:MIO} !=3232
- RewriteRule ^ - [G]
- </Files>
- <Location /server-status>
- SetHandler server-status
- </Location>
- <IfModule mod_proxy_fcgi.c>
- # Run php-fpm via proxy_fcgi
- <FilesMatch \.php$>
- SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost"
- </FilesMatch>
- </IfModule>
- <Directory /var/www >
- Options -Indexes +FollowSymLinks -SymLinksIfOwnerMatch -MultiViews -Includes
- Require all denied
- Require ip 127.0.0.1
- Require local
- </Directory>
- <Files xmlrpc.php>
- Require all denied
- </Files>
- #Asi evitamos llamadas a la api tipo /wp-json/wp/v2/users
- <DirectoryMatch /wp-json/*>
- Require all denied
- </DirectoryMatch>
- <DirectoryMatch .*\.svn/.*>
- Require all denied
- </DirectoryMatch>
- <Files license.txt>
- Require all denied
- </Files>
- <Files wp-config-sample.php>
- Require all denied
- </Files>
- <Files readme.html>
- Require all denied
- </Files>
- <Files wp-config.php>
- Require all denied
- </Files>
- FilterDeclare COMPRESS
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/html'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/css'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/plain'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/xml'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/x-component'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/javascript'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/json'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/xml'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/xhtml+xml'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/rss+xml'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/atom+xml'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/vnd.ms-fontobject'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'image/svg+xml'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'image/x-icon'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/x-font-ttf'"
- FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'font/opentype'"
- FilterChain COMPRESS
- FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
- #Compress everything Except Images
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|ico|swf)$ no-gzip dont-vary
- Header append Vary User-Agent env=!dont-vary
- Header append Vary Accept-Encoding
- FileETag None
- Header unset ETag
- Header unset Pragma
- Header unset Cache-Control
- #Header unset Last-Modified
- # default cache 1 year = 31556926 s
- #Header set Cache-Control "max-age=31556926, public, no-transform, must-revalidate"
- <FilesMatch "\.(htm|html|json|rss|txt|xhtml|xml)$">
- # cache markup for 1 second
- Header set Cache-Control "max-age=1, public, no-transform, must-revalidate"
- </FilesMatch>
- <FilesMatch "\.(js|css)$">
- # cache for 1 hour = 3600 seconds
- # cache for 1 day = 86400 seconds
- # cache for 1 week = 604800 seconds
- # cache for 1 month = 2629800 seconds
- Header set Cache-Control "max-age=604800, public, no-transform, must-revalidate"
- RequestHeader unset Cookie
- Header unset Set-Cookie
- </FilesMatch>
- <FilesMatch "\.(gif|jpe|jpeg|jpg|png|ico)$">
- # cache for 1 week = 604800 seconds
- Header set Cache-Control "max-age=604800, public, no-transform, must-revalidate"
- RequestHeader unset Cookie
- Header unset Set-Cookie
- </FilesMatch>
- <FilesMatch "\.(doc|eot|flv|mp4|ogg|pdf|svg|swf|ttf|woff)$">
- # cache fonts and media files for 1 month = 2629744 seconds
- Header set Cache-Control "max-age=2629744, public, no-transform, must-revalidate"
- RequestHeader unset Cookie
- Header unset Set-Cookie
- </FilesMatch>
- #Header set X-XSS-Protection "1; mode=block"
- #Header always append X-Frame-Options SAMEORIGIN
- #Header set X-Content-Type-Options nosniff
- EnableMMAP On
- KeepAlive On
- Timeout 100
- MaxKeepAliveRequests 100
- KeepAliveTimeout 15
- <IfModule mpm_prefork_module>
- StartServers 20
- MinSpareServers 20
- MaxSpareServers 40
- ServerLimit 150
- # MaxClients 256
- MaxRequestsPerChild 10000
- </IfModule>
- <IfModule mpm_worker_module>
- StartServers 10
- MinSpareThreads 20
- MaxSpareThreads 40
- ThreadLimit 64
- ThreadsPerChild 25
- MaxClients 150
- MaxRequestsPerChild 10000
- MaxClients 150
- </IfModule>
- # event MPM
- # StartServers: initial number of server processes to start
- # MinSpareThreads: minimum number of worker threads which are kept spare
- # MaxSpareThreads: maximum number of worker threads which are kept spare
- # ThreadsPerChild: constant number of worker threads in each server process
- # MaxRequestWorkers: maximum number of worker threads
- # MaxConnectionsPerChild: maximum number of requests a server process serves
- <IfModule mpm_event_module>
- StartServers 2
- MinSpareThreads 15
- MaxSpareThreads 50
- ThreadLimit 64
- ThreadsPerChild 25
- #ServerLimit x ThreadsPerChild
- MaxRequestWorkers 30
- MaxConnectionsPerChild 3000
- MaxClients 150
- </IfModule>
- #Temas SSL
- SSLProtocol +TLSv1.2 +TLSv1.1 +TLSv1
- SSLCompression off
- SSLHonorCipherOrder on
- SSLCipherSuite "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA"
- SSLStrictSNIVHostCheck on
- SSLSessionTickets off
- SSLUseStapling on
- SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
- Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
- Header always set X-Content-Type-Options nosniff
Advertisement
Add Comment
Please, Sign In to add comment