Need to allow encoded slashes on Apache

I kept coming across this post for another issue. Let me just explain real quick. I had the same style URL and was also trying to proxy it. Example: Proxy requests from /example/ to another server. /example/http:%2F%2Fwww.someurl.com/ Issue 1: Apache believes that’s an invalid url Solution: AllowEncodedSlashes On in httpd.conf Issue 2: Apache decodes the … Read more

Best way to log POST data in Apache?

Use Apache’s mod_dumpio. Be careful for obvious reasons. Note that mod_dumpio stops logging binary payloads at the first null character. For example a multipart/form-data upload of a gzip’d file will probably only show the first few bytes with mod_dumpio. Also note that Apache might not mention this module in httpd.conf even when it’s present in … Read more

.htaccess ErrorDocument 404 not showing up

First, note that restarting httpd is not necessary for .htaccess files. .htaccess files are specifically for people who don’t have root – ie, don’t have access to the httpd server config file, and can’t restart the server. As you’re able to restart the server, you don’t need .htaccess files and can use the main server … Read more

index.php not loading by default

Apache needs to be configured to recognize index.php as an index file. The simplest way to accomplish this.. Create a .htaccess file in your web root. Add the line… DirectoryIndex index.php Here is a resource regarding the matter… http://www.twsc.biz/twsc_hosting_htaccess.php Edit: I’m assuming apache is configured to allow .htaccess files. If it isn’t, you’ll have to … Read more