Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScriptAlias /foswiki/bin/ "C:/Foswiki/bin/"
- Alias /foswiki/ "C:/Foswiki/"
- #rewrite url's for some of the less useful Foswiki url's
- RewriteEngine on
- RewriteRule ^/foswiki$ /foswiki/bin/view [R]
- RewriteRule ^/foswiki/$ /foswiki/bin/view [R]
- <Directory "C:/Foswiki/bin/">
- AllowOverride All
- Options ExecCGI
- SetHandler cgi-script
- Allow From All
- # Password file for configure users (windows apache uses crypt, foswiki is using md5 for portability)
- AuthUserFile "C:/Foswiki/configure.htpasswd"
- AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
- AuthType Basic
- <FilesMatch "^configure.*">
- SetHandler cgi-script
- Require user admin
- </FilesMatch>
- </Directory>
- <Directory "C:/Foswiki/pub/">
- AllowOverride All
- Allow From All
- #for TWikiCompatibility - or even to make 'attachment not found's more user friendly
- ErrorDocument 404 /foswiki/bin/viewfile
- </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement