Skip to content

Instantly share code, notes, and snippets.

[client folder]
listen = 127.0.0.1:9003
listen.allowed_clients = 127.0.0.1
user = username
group = group
listen.mode = 0660
@benhartwich
benhartwich / apache-autoconfig
Last active December 12, 2023 20:31
Autoconfig / Autodiscover
<VirtualHost *:80>
ServerAdmin mail@benjaminhartwich.de
ServerName autoconfig.nichteinschalten.de
ServerAlias autoconfig.nichteinschalten.de
DocumentRoot "/var/www/autoconfig/"
<Directory "/var/www/autoconfig/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
@benhartwich
benhartwich / wordpress-auth.conf
Last active May 15, 2018 14:27
WordPress Login Auth Nginx
location ~* /wp-login.php {
satisfy any;
allow 62.218.34.128/28;
deny all;
auth_basic "Please Login";
auth_basic_user_file ssl/.htpasswd;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
try_files $uri =404;
@benhartwich
benhartwich / multisite-mu-domain-mapping.conf
Last active August 29, 2015 14:11
WordPress nginx.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name test.de www.test.de;
root /var/www/httpdocs;
index index.php;
client_max_body_size 30m;
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
@benhartwich
benhartwich / nginx.conf
Last active May 8, 2018 07:37
nginx.conf
user www-data;
worker_processes auto;
thread_pool default threads=32 max_queue=65536;
pid /var/run/nginx.pid;
events {
worker_connections 1024; # Abfrage mittels ulimit -n
multi_accept on;
use epoll;