![]() Which will allow you to see the whole file, starting at the bottom ("more" will start you at the top). Or, you can run: $ less /var/log/apache/error_log Open up a terminal and run the above command and watch as new requests come in. Perhaps the easiest way to read a log file is just to tail it: $ tail -f /var/log/apache/error_log Testing for Syntax Errors $ apachectl configtest For now, I will link to two articles:Īpache does have docs on debugging, but I will highlight a few things from experience. SSL with Apache deserves its own section at the very least. To strip off the query string add a '?' to the destination URL. Note: RedirectMatch statements ignore the query string. RedirectMatch is the same as Redirect only it gives you the ability to match with a regular expression: RedirectMatch /incoming-path/*.html$ Note: Redirect statements ignore the query string. Redirect is the simplest: Redirect /incoming-path/file.html Mod_alias has two main directives for redirecting: Redirect and RedirectMatch. mod_alias is preferred for performance, though in most options you don't have a choice and must use mod_rewrite. ![]() The two main modules are mod_alias and mod_rewrite. Very often you will want to modify inbound requests by either actually rewriting the request or redirecting to another URL or both.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |