Also check out .htaccess files. You use the same directives that Wiedmann linked you to and they're really easy to use. Google tutorials on .htaccess files if you haven't already checked them out, because they're extremely useful and will also help you do what you're trying to do.
I recently discovered their potential after researching it for a tutorial I was writing on it.
For great video and written tutorials and guides on creating your own web server and installing things such as forums, blogs, etc., visit http://myownhomeserver.com