Next step: %IGStepNextText%Up: Configure the web server
Installing Foswiki: Using an Apache .htaccess file
In the root of the foswiki installation and in the
bin
directory, there are sample
.htaccess
files for various subdirectories in your installation. Each file has help text explaining how to modify it for your configuration. For more information, see
Foswiki:Support.SupplementalDocuments.
location and name of sample .htaccess file |
copy sample file to the following location |
foswiki/root-htaccess.txt |
foswiki/.htaccess |
foswiki/bin/.htaccess.txt |
foswiki/bin/.htaccess |
foswiki/pub-htaccess.txt |
foswiki/pub/.htaccess |
foswiki/subdir-htaccess.txt |
.htaccess in all other subdirectories below foswiki |
Ensure that web access is denied to all Foswiki subdirectories other than
bin
and
pub
. The sample
.htaccess
files show how to configure Apache appropriately.
Ensure that the
foswiki/bin/.htaccess
files contains the line
SetHandler cgi-script
so that all scripts in the
bin
directory will be executed by Apache.
Next step: %IGStepNextText%Up: Configure the web server
Customized versions of
InstallStepApacheHtaccessFile: