Quantcast
Channel: http – MrBrown blob
Browsing latest articles
Browse All 11 View Live

Image may be NSFW.
Clik here to view.

Fix nginx increase server_names_hash_bucket_size error

When adding new virtual hosts in your nginx configuration file, you can experience this error message: # nginx -t 2008/11/13 09:37:03 [emerg] 12299#0: could not build the server_names_hash, you should...

View Article


Image may be NSFW.
Clik here to view.

Amazon is moving into CDN market

As read in Diamond Notes, Amazon is moving into CDN market with CloudFront. Some Content Delivery Network providers Akamaï Akamaï on Crunchbase BitGravity BitGravity on Crunchbase EdgeCast Networks...

View Article


Image may be NSFW.
Clik here to view.

Nginx and worker_connections are more than open file resource limit warning

If you encounter this warning message under Linux: 2009/03/09 21:23:19 [warn] 26827#0: 4096 worker_connections are more than open file resource limit: 1024 A solution is to use the command ulimit in...

View Article

Image may be NSFW.
Clik here to view.

Permanent redirect with nginx

server { server_name domain.com; rewrite ^(.*)$ http://www.domain.com$1 permanent; }

View Article

Image may be NSFW.
Clik here to view.

Permanent redirect with Apache and mod_rewrite

Redirect old url to a new url RewriteEngine On RewriteRule /oldurl /newurl [R=301,L] Canonical domain rewriting RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^(.*)$...

View Article


Image may be NSFW.
Clik here to view.

Apache: password proctect your staging instances but allow your office IP

A common (good) practice is to protect your staging/dev instances with a password. It can be annoying with old browsers that don’t store passwords. To allow your office IP to connect without entering a...

View Article

Image may be NSFW.
Clik here to view.

Add a C header include path to compile PECL extensions

I needed to use ImageMagick with PHP on Mac OS X. Using homebrew I added ImageMagick to my system as follow : $ brew install imagemagick And then, add the PHP extension with PECL : sudo pecl install...

View Article

Image may be NSFW.
Clik here to view.

Remove trailing slash with Apache

With Apache and mod_rewrite, to avoid urls like /page1 and /page1/ to respond with the same content, you can use mod_rewrite with the following syntax: # Remove trailing slash RewriteCond...

View Article


Image may be NSFW.
Clik here to view.

How to configure HTTPS/SSL under Apache and OSX

My setup : OSX : 10.8.5 Apache : # httpd -V Server version: Apache/2.2.26 (Unix) Server built: Dec 10 2013 22:06:35 Server's Module Magic Number: 20051115:33 Server loaded: APR 1.4.5, APR-Util 1.3.12...

View Article


Image may be NSFW.
Clik here to view.

Nginx: mass permanent redirects

When I say “mass”, I mean reasonable amount of redirects, like a couple of thousands. I had to migrate a blog to a new URL structure. This migration led to create about 600+ unique redirects without...

View Article
Browsing latest articles
Browse All 11 View Live