I just recovered this server from a really hideous .htaccess failure. Since I’m hosting multiple domains on this one virtual server, I had constructed a whole bunch of .htaccess Rewrites to redirect requests to the proper subdirectories. During maintenance yesterday, the .htaccess file got corrupted, and my multidomain housr of cards fell flat–just before I had to leave the office to go visit my wife and son at sleep-away camp (a long story for a different blog).
I couldn’t figure out why the file had gone bad. On inspection, it looked intact; to be sure, I renamed the old file and saved a backup copy to the server in its place. No joy, the site was still sending everything to the root page. Fsk.
Tech support for my host, Powweb, was no help either. “We don’t support .htaccess,” they said. I said that the config had been working for literally years before the failure, and I thought that maybe there was a glitch in the server configuration or there was something wrong with the file system. They “elevated” the call — a fancy way of saying that they would eventually look at it.
So, rather than wait for them, I went back and beat on the server some more in an attempt to evict whatever demon had infested .htaccess. It took about 10 deletions and renames and reloads before I finally got a backup .htaccess file to take properly (or maybe someone rolled back a change they made in server configuration at my hosting company…I’ll never know). So at midnight tonight, I finally had everything where it should be. Sort of.
This entry was posted
on Thursday, March 23rd, 2006 at 9:17 pm and is filed under globals, Web Dev, Open Source, dot-communism.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
I just recovered this server from a really hideous .htaccess failure. Since I’m hosting multiple domains on this one virtual server, I had constructed a whole bunch of .htaccess Rewrites to redirect requests to the proper subdirectories. During maintenance yesterday, the .htaccess file got corrupted, and my multidomain housr of cards fell flat–just before I had to leave the office to go visit my wife and son at sleep-away camp (a long story for a different blog).
I couldn’t figure out why the file had gone bad. On inspection, it looked intact; to be sure, I renamed the old file and saved a backup copy to the server in its place. No joy, the site was still sending everything to the root page. Fsk.
Tech support for my host, Powweb, was no help either. “We don’t support .htaccess,” they said. I said that the config had been working for literally years before the failure, and I thought that maybe there was a glitch in the server configuration or there was something wrong with the file system. They “elevated” the call — a fancy way of saying that they would eventually look at it.
So, rather than wait for them, I went back and beat on the server some more in an attempt to evict whatever demon had infested .htaccess. It took about 10 deletions and renames and reloads before I finally got a backup .htaccess file to take properly (or maybe someone rolled back a change they made in server configuration at my hosting company…I’ll never know). So at midnight tonight, I finally had everything where it should be. Sort of.
This entry was posted
on Thursday, March 23rd, 2006 at 9:17 pm and is filed under globals, Web Dev, Open Source, dot-communism.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.