221 reputation
38
bio website
location Delaware
age 25
visits member for 4 years, 3 months
seen Nov 24 at 19:01

When I'm not working or moderating Stack Apps, I have a tendency to meddle in bug reports on Meta or take part in writing userscripts for the Stack Exchange network which add features that sometimes get implemented natively. Here's a few you may be interested in:

I've also been known to occasionally break (and sometimes fix!) the Data Explorer, and to busy myself with maintaining the Election Statistics page.


Jun
15
comment .htaccess doesn't redirect to www-prefixed page properly
Did you compile Apache yourself, or? It should be impossible for the Location header to differ from what's in the page since they're taken from the same variable in this case, so that's pretty odd. I assume that the requests are passed directly to Apache, right, there's no other server sitting inbetween?
Sep
11
comment How to strip www for all hosts in apache?
@MariaKeys - Ah, I see, that could be. I'm not 100% sure how you have your various hosts setup as far as directory roots, etc., so that does come into play. Consider what I've described here in that case, which is similar to this scenario (<Directory> is equivalent to .htaccess in this scenario)...and hopefully I can get a more clear description before I say anything overly incorrect about it.
Sep
11
comment How to strip www for all hosts in apache?
@MarialKeys - Hmm, well, I had originally thought it should work automatically if you didn't have anything related to mod_rewrite in the virtual host, but I tried it on my local test server and it wasn't importing the main configuration's rule set without the explicit inherit. If it works for you without it, good stuff. Otherwise, what I had put will force it to pull in the rules from the main configuration. I need to review the source code again to see exactly what goes on there, since my answer may be a bit misleading about what you can and can't expect to happen automatically.
Sep
11
comment How to strip www for all hosts in apache?
@spender - General mod_rewrite questions are appropriate for Stack Overflow. Depending on exactly what's being asked, this might be considered more of an Apache question, but it doesn't stray so far that I'm inclined to vote to move, personally. :)
Sep
11
comment How to strip www for all hosts in apache?
@MarialKeys - Are you looking for a solution that avoids touching the <VirtualHost>s at all, or?