Archive for the ‘apache’ Category
Wednesday, April 22nd, 2009
Just a quickie - throw this in your apache config if you need error logging for mod_rewrite. Useful in a dev environment, not so much in production.
RewriteLog /var/log/httpd/rewrite.log
RewriteLogLevel 9
Posted in apache | No Comments »
Wednesday, January 21st, 2009
In our dev environment, we use VirtualDocumentRoot to avoid configuring new environments when we get a new developer. It's awesome.
However, if you try to use mod_rewrite, you'll find that your rewrite rules will prepend whatever you have defined as the document root in the config file. To get ...
Posted in apache | No Comments »
Thursday, June 19th, 2008
I got an error while compiling Apache today:
"./configure" \
"--enable-auth-digest" \
"--enable-deflate" \
"--enable-rewrite" \
"--enable-so" \
"--enable-vhost-alias" \
"--disable-userdir" \
"--enable-mime-magic" \
configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
I fixed this by installing zlib from source.
Posted in apache | No Comments »
Tuesday, November 13th, 2007
If you have a URL like the following, and you're using multiviews:
/login/15/return_page%2F50
it won't work. FYI, the last part is a return page. In this instance, lets just pretend it's a return page that's supposed to get hit after a successful login.
Using Apache 2.2.3.
Posted in apache | No Comments »
Friday, November 9th, 2007
In trying to get a site working on cell phones, I got a "406 Not acceptable" only on the Motorola RAZR. The site loaded fine on my Treo 755 and every Blackberry I've tried.
It seems that the RAZR doesn't handle Multiviews very well, or at all for that matter. ...
Posted in apache, mobile, php | No Comments »
Tuesday, July 24th, 2007
I got this while recompiling apache (2.2.4).
configure: error: Cannot use an external APR-util with the bundled APR
After searching around for a while, I found a tip here to include this in my configure:
--with-included-apr
Built on MacOS X 10.4.
Posted in apache, linux | No Comments »
Friday, February 23rd, 2007
Barebones list for the things you should be looking for when developing a web app in PHP. Some of it applies to all web apps, not just PHP.
Use HTML_Safe (or a similar javascript stripping library) to check for and remove javascript when you're accepting data that will be output ...
Posted in apache, php, tips | 1 Comment »
Tuesday, February 13th, 2007
Every now and then, we find that we will have a sudden increase in the number of apache processes, load average will spike up, and then go back down to normal. In rare cases, we will see the same thing happen, and the load avg spike WAY up, all ...
Posted in apache, linux, mysql, php | 2 Comments »
Thursday, October 12th, 2006
I saw a post on digg.com about how it's nice to have "pretty urls" that are easy to tell people. While i'm not sure anyone would remember rustyrazorblade.com slash some ridiculous post name, it's nice to have for search engines. Unfortunately, it didn't really go into detail about ...
Posted in apache, php, tips | 10 Comments »