Quantcast
Channel:
Browsing latest articles
Browse All 4 View Live

Deny access to .svn directories with Apache2 / lighttpd / nginx

If you’re using SVN to control your web application, like I do, your certainly need to deny access to .svn sub-directories. With Apache2 <DirectoryMatch "^/.*/.svn/"> Order allow,deny Deny from...

View Article


How to log the user’s IP, not the proxy’s, in Lighttpd access log

When you run a webserver behind a reverse proxy or HTTP accelerator like Squid or Varnish, or as I do HAProxy, the webserver access logs will display the IP of the proxy (generally the proxy IP)...

View Article


haproxy, keepalived and IPv6 workarround

The scenario: High-availability setup with 2 HAProxy/Keepalived load-balancers on a dualstack IPv4/IPv6 setup. The problem: HAProxy won’t start (cannot bind socket) because the virtual IPv6 address is...

View Article

Image may be NSFW.
Clik here to view.

Nginx config for www to non-www and non-www to www redirection

There are many ways to force Nginx to use either WWW version or non-WWW version of URLs for your site. I use the following code for my websites. Redirect non-www to WWW server { server_name...

View Article
Browsing latest articles
Browse All 4 View Live