apache
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| apache [2010/03/21 04:37] – k2patel | apache [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Apache Related Quick Help ====== | ====== Apache Related Quick Help ====== | ||
| * [[ mod_evasive | * [[ mod_evasive | ||
| + | * [[ Error Codes | HTTP Error Codes ]] | ||
| + | * [[ mod_proxy_ajp | Jboss Load Balancing ]] | ||
| ==== Compile apache from source ==== | ==== Compile apache from source ==== | ||
| Line 34: | Line 36: | ||
| <code bash> | <code bash> | ||
| / | / | ||
| + | </ | ||
| + | |||
| + | Following Error is showing up when you install it with \\ | ||
| + | |||
| + | <code bash> | ||
| + | mod_auth_mysql.c: | ||
| + | </ | ||
| + | |||
| + | <code patch> | ||
| + | http:// | ||
| </ | </ | ||
| Line 75: | Line 87: | ||
| RewriteEngine | RewriteEngine | ||
| RewriteCond | RewriteCond | ||
| - | RewriteCond | + | RewriteCond |
| - | RewriteCond | + | RewriteCond |
| - | RewriteCond | + | RewriteCond |
| - | RewriteRule | + | RewriteRule |
| </ | </ | ||
| Line 157: | Line 169: | ||
| SetEnvIfNoCase User-Agent " | SetEnvIfNoCase User-Agent " | ||
| SetEnvIfNoCase User-Agent " | SetEnvIfNoCase User-Agent " | ||
| + | SetEnvIfNoCase User-Agent " | ||
| Order Allow,Deny | Order Allow,Deny | ||
| Line 171: | Line 184: | ||
| RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] | RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] | ||
| RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] | RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] | ||
| + | RewriteCond %{HTTP_USER_AGENT} ^Mozilla/ | ||
| RewriteRule ^.* - [F,L] | RewriteRule ^.* - [F,L] | ||
| </ | </ | ||
| Line 222: | Line 236: | ||
| OR | OR | ||
| Check link [[lightttpd]] | Check link [[lightttpd]] | ||
| - | |||
| - | |||
| ==== Redirect you can use with apache / lighttpd to content ==== | ==== Redirect you can use with apache / lighttpd to content ==== | ||
| Line 231: | Line 243: | ||
| </ | </ | ||
| + | ==== Redirect mobile browser ==== | ||
| + | |||
| + | This will help to redirect all mobile devices to specific page. | ||
| + | |||
| + | <code apache> | ||
| + | RewriteEngine On | ||
| + | RewriteCond %{HTTP_USER_AGENT} (mobile|android|blackberry|brew|htc|j2me|lg|midp|mot|motorola|netfront|nokia|obigo|openweb|opera.mini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|vodafone|wap|webos|windows.ce) [NC] | ||
| + | RewriteRule ^(.*)$ http:// | ||
| + | </ | ||
| + | |||
| + | Why 303 : | ||
| + | The response to the request can be found under another URI using a GET method. When received in response to a PUT,\\ | ||
| + | it should be assumed that the server has received the data and the redirect should be issued with a separate GET message. | ||
| + | |||
| + | |||
| + | ==== Disable Trace / track ==== | ||
| + | |||
| + | Mostly trace / track is risk to apache server.\\ | ||
| + | |||
| + | <code apache> | ||
| + | RewriteEngine on | ||
| + | RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) | ||
| + | RewriteRule .* - [F] | ||
| + | </ | ||
apache.1269146239.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
