haproxy: rewrite request aka prefix url

Today I had a task which sounded like this “Change for balancer urls for this VIP – vip:8080 -> server* 16081/int” Long story short: frontend my_vip     bind x.x.x.x:8080     mode http     maxconn 30000     default_backend my_backend backend my_backend     mode http     balance leastconn     acl int_prefix path_beg /int     reqrep ^([^\ :]*)\ … Continue reading haproxy: rewrite request aka prefix url

(openssl) verify that a private key matches a certificate

A while ago I had to renew the SSL certificate for a website I’m taking care of. How do I verify that a private key matches a certificate? [codesyntax lang=”bash”] openssl x509 -noout -modulus -in server.crt | openssl md5 openssl rsa -noout -modulus -in server.key | openssl md5 [/codesyntax] How do I verify that a … Continue reading (openssl) verify that a private key matches a certificate

Enable LDAP authentication in Apache

Assuming you have a LDAP server somewhere and you don’t want to authenticate users via htpasswd file anymore… I mean, having all your users in one place is a good thing – it’s debatable, but in general is a good thing, right? Now, the technical part… My LDAP structure is like this: – groups: cn=group,ou=groups,dc=example,dc=com … Continue reading Enable LDAP authentication in Apache