Sep
24
Apache virtual hosts
September 24, 2010 | Leave a Comment
Good post Vikram!! To add to it, a single computer using apache web server can serve as multiple websites as if they are on separate hosts using the same concept. There are two ways to do it.
1. Creating a name-based virtual host
2. Creating an ip based virtual host
What you just created was a namebased virtual [...]
May
12
htaccess cheatsheet
May 12, 2010 | Leave a Comment
Enable Directory Browsing
Options +Indexes
## block a few types of files from showing
IndexIgnore *.wmv *.mp4 *.avi
Disable Directory Browsing
Options All -Indexes
Customize Error Messages
ErrorDocument 403 /forbidden.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /servererror.html
Get SSI working with HTML/SHTML
AddType text/html .html
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
# AddHandler server-parsed .htm
Change Default Page (order is followed!)
DirectoryIndex myhome.htm index.htm index.php
Block Users from accessing the site
<limit GET [...]
Sep
26
Setup a vanilla project with versioning on Subversion & Trac
September 26, 2009 | Leave a Comment
Lets create a new project say newproject
#svnadmin create /svnrepo/newproject
Create a trac interface for the newproject repository
#trac-admin /trac/newproject initenv
This will take you through a series of following questions
1. Name of the Project: New Project
2. Type of Repository: svn
3. Path to repository: /svnrepo/newproject
4. Type of database(sqlite) : press enter
Now a trac interface for newproject is created in [...]