How do I make Apache forward the user to a page/script when they just request the site URL?

This works way better than an auto-refresh, but I somehow thing I'm still not getting this totally right. Still, it works...

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Redirect permanent /index.html http://www.mattwalsh.com/bin/view/Main/WebHome
</Directory>

Why can't Apache see this directory?

Apache uses the 'other' set of permission flags to determine whether a file is read/write/execute -able. This 'other' flag must also be set for Apache to see directories.

E.g., chmod o+x someDirectory/

Installation Tip!

When installing the pre-compiled binary distribution of Apache, don't forget to run the install-bindist.sh script. Otherwise, Apache will seem to run ok but you'll get incongruous errors relating to parsing the .conf files.

Getting started with CGI

To play with CGI scripts out of the box, you can run the test-cgi script. But funny how they don't set the 'other' execution and read flags out-of-the-box! So you must do chmod o+rx test-cgi. Then you can see the script run by requesting /cgi-bin/test-cgi

What does AllowOverride mean?

When set to None, Apache will ignore the per-directory .htaccess override file, which can contain the same directives as the apache conf files

-- TWikiGuest - 07 Dec 2001

Topic revision: r2 - 05 Aug 2002 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback