Category: Apache

Apache Web servers Configuration,tips and tricks

New Apache : Authz_core:error Client Denied by Server Configuration

New Apache : Authz_core:error Client Denied by Server Configuration

The newer version of apache 2.4.6 that comes with Centos 7, seems to require some additional statement. If you are using htaccess , then you have to add the following keyword in order to...

Apache – Disable script execution upload directory

Apache – Disable script execution upload directory

For Apache: <Directory /path/to/directory>  php_flag engine off </Directory> For Nginx : location  /path/to/directory/ { location ~ .*\.(php)?$ {   deny all; } }

Permission denied: proxy: HTTP

Permission denied: proxy: HTTP

Permission denied:proxy: HTTP  :: This error is caused when you try to use proxy balancer when seLinux is enabled.  The value for httpd_can_network_connect is turned off by default. You can work around this problem ...

Apache rewrite sample rules

Apache rewrite sample rules

Example Rules domain.com permanently moved to domain2.com RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L] domain.com/page.html moved to domain.com/new_page.html temporarily RewriteRule ^page.html$ new_page.html [R,NC,L] Nice looking URLs (no querstring)                                                                                                                                                        eg. domain.com/category-name-1/ to domain.com/categories.php?name=category-name-1 RewriteRule...

Apache Rewrite Cheat Sheet

Apache Rewrite Cheat Sheet

Regular Expression Syntax  ^ Start of string $ End of string . Any single character (a|b) a or b (…) Group section [abc] Item in range (a or b or c) [^abc] Not in...

Apache rewrite tutorials

Apache rewrite tutorials

Apache Rewrites can be handy in various scenarios. In order to use apache  rewrite you have to have the mod_rewrite enabled. Syntax:  RewriteRule  <pattern to match> <substitution> [Optional Flags] <Directory /var/www/html/sample/> RewriteEngine On RewriteRule...

Apache Security

Apache Security

Trace Back : Testing if Trace back is enabled : telnet localhost 80 TRACE / HTTP / 1.0 If you get any response back trace is enabled. Disabling Trace Back : vi /etc/httpd/conf/httpd.conf TraceEnable...