This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CHARSET | |
AddDefaultCharset utf-8 | |
# DEFLATE | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html text/plain text/css | |
AddOutputFilterByType DEFLATE application/javascript application/json | |
AddOutputFilterByType DEFLATE text/xml application/xml | |
AddOutputFilterByType DEFLATE application/rss+xml application/atom+xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Admin absichern | |
<Files wp-login.php> | |
AuthName "Admin-Bereich" | |
AuthType Basic | |
AuthUserFile /var/www/pfad/.htpasswd | |
require valid-user | |
</Files> | |
# Zugriff verweigern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
## INIT | |
listen 80 default_server; | |
server_name helpdesk.wpseo.de; | |
## ROOT | |
root /var/www/helpdesk.wpseo.de; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## GZIP | |
gzip_static on; | |
## CHARSET | |
charset utf-8; | |
## INDEX LOCATION | |
location / { | |
error_page 404 405 = @nocache; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modern browsers | |
ssl_prefer_server_ciphers on; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers kEECDH+AESGCM+AES128:kEECDH+AES128:kRSA+AESGCM+AES128:kRSA+AES128:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2; | |
# Modern browsers + IE8 on XP | |
ssl_prefer_server_ciphers on; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers kEECDH+AESGCM+AES128:kEECDH+AES128:kRSA+AESGCM+AES128:kRSA+AES128:kRSA+3DES:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#box { | |
width: 400px; | |
height: 200px; | |
background: gray; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener( | |
'scroll', | |
function() { | |
var i, | |
img, | |
rect, | |
images = document.querySelectorAll('[lazyload-src]'); | |
if ( ! images.length ) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Load plugins */ | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
watch = require('gulp-watch'), | |
jshint = require('gulp-jshint'), | |
notify = require('gulp-notify'), | |
uncss = require('gulp-uncss'), | |
zopfli = require("gulp-zopfli"), | |
connect = require('gulp-connect'), | |
minifyhtml = require('gulp-minify-html'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
ssl_stapling on; | |
ssl_stapling_verify on; | |
ssl_trusted_certificate /usr/share/ssl/cert/rapidssl.pem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## GZIP | |
gzip_static on; | |
## CHARSET | |
charset utf-8; | |
## INDEX LOCATION | |
location / { | |
if ( $query_string ) { | |
return 405; |