Apache

Mod_rewrite : apache config settings for Mod_rewrite

Posted by on August 4, 2008 at 7:36 pm

Test script 1. Create a php file called “rewrite.php” with your text editor (notepad) 2. Copy and paste the following code into rewrite.php ————– <h2 align=center> <? // mod_rewrite Test Page // Copyright 2006 Webune.com if($_GET['link']==1){echo”You are not using mod_rewrite”;} elseif($_GET['link']==2){echo”Congratulations!! You are using Apache mod_rewrite”;} else{echo”Linux Apache mod_rewrte Test Tutorial”;} ?> </h2> <hr> <head> [...]

Apache: restrict access to folders -htacces -Directory browsing

Posted by on July 27, 2008 at 11:40 am

I found some good docs on the apache website in reference to this topic. http://httpd.apache.org/docs/2.0/mod/core.html Example of how to restrict access to a folder is &lt;Location /status&gt; SetHandler server-status Order Deny,Allow Deny from all Allow from .foo.com &lt;/Location&gt; ————- using .htaccess — the best information i could fine on the net about .htaccess –Thanks to [...]

HTACCESS: redirect domain to a subfolder

Posted by on July 13, 2008 at 3:20 pm

I found this walk through online and thought it was helpful .htaccess How to make a subfolder the main folder for your primary domain The primary domain on the hosting account uses the public_html folder for all of its Web site files. Any addon domains use subfolders inside the public_html folder. In order to also [...]

Apache – allow directory browsing

Posted by on February 8, 2008 at 10:45 pm

Options +Indexes Add the above directive to the host conf file

Apache Redirect/ Rewrite /alias

Posted by on December 6, 2007 at 1:24 pm

This invokes a php script that is five directories beneath Apache’s DocumentRoot. It then passes a variable, within the script, the value “blahblah”. With url redirection, you could configure Apache to redirect the following url to the one above: http://www.website.com/stuff Even with this simple example of redirection, this improves the integrity of the website in [...]