Displaying posts tagged: apache

Link: Nginx Hacking Tips

No Comments

This is a good overview of common configurations comparing nginx's syntax to apache's.  Once you get used to it, I think nginx syntax is easier to understand, and it reads more like an actual script or program.  I've been using nginx to host SoccerBlogs.net for 3 months now and its been very solid.  In fact, it ...

Using RewriteMap for many URL redirects.

No Comments

Migrating platforms can lead to broken links on your website.  If you've cultivated links from other sites or if search engines send a lot of visitors your way, you'll want to redirect users from the old links to the new.  Many content management systems have facilities for manually maintaining redirects, but you can also do this ...

Thinking of switch to PHP w/Fast CGI?

No Comments

If you're contemplating switching to running PHP5 under FastCGI, to take advantage of apache's threaded worker model and improve your server's performance, think again.  If you're used to setting and overriding php values via .htaccess files or using php_value/php_flag in your virtual host directory, this is not supported with FastCGI.  You'll have to figure out how ...

Don't abuse PHP's header function for redirects

2 Comments

PHP's Header function can come in quite handy when you're building your next greate web application.  Its powerful, but as a result, its tempting to misuse it to do even the simplest things, like permanent redirects.  Usually, its done like this:
// redirect /publications (this page) to real page (/documents)Header("Location: /documents/");
One line of code, time to ...

Fixing Subversion Propfind 403 errors

2 Comments

I've been using Subversion heavily lately to keep my live and development sites synchronized and its been a huge productivity booster.  I had to move some code over to a lite site for work this evening and it was such a pain, because I had to go through and figure out the files I needed to ...