Apache Config Generator
This page creates an Apache configuration file
foswiki.conf for your installation. Fill out the form, and then press the
[Update Config File] button. Copy and paste the generated configuration into your Apache configuration file.
For setting up Foswiki on Linux or Unix, see also
SettingFileAccessRightsLinuxUnix.
Caution: If you used the Debian packages to install Foswiki, do not use the
ApacheConfigGenerator. Use the configuration files included in the .deb packages..
Windows Users: enter all file paths using linux forward-slash style.
C:/www/foswiki. Don't use Windows style back-slash in the paths.
default foswiki.conf
Press the "Update config file" button to generate your custom config
By pressing the button below you select all the text in the textarea. Then you just need to copy the text to the clipboard and paste it into the
foswiki.conf file.
Comments
History
- Originally crafted and regularly maintained by KennethLavrsen
- removed the handy W3C? tools from the blocked list. -- WillNorris - 18 Feb 2009
- ending % was missing for a %PATHURL in a ScriptAlias? declaration -- ColasNahaboo - 23 Feb 2009
- Noted can't use a configure user as an editing wiki user -- MartinCleaver - 23 Mar 2009
- Remove /bin/view from the ErrorDocument? strings if shorturls enabled - otherwise Apache fails to prompt for password - 5 Apr 2009
- Disabled TinyMCE? plugin as it messes up with the layout -- OlivierRaginel - 06 Apr 2009
- Reorganized, added support for protecting attachments, FollowSymLinks? -- GeorgeClark - 11 Apr 2009
- Simplified viewfile regex - should fix compile failure on Apache startup.
- Allow any wiki topic to be specified as the not-authorized page
- Allow location of .htpasswd to be overridden
- Add an optional port # for the Virtual host. So you can specify :80, :443, or whatever on the statement.
- Fixed htpasswd to default to data directory if left blank, otherwise overrides path - 3 Sept 2009
- Added (commented out) rules for serving pre-compressed .js and .css -- MichaelTempest - 22 Sep 2009
- Moved LocationMatch for fcgi outside of the directory.
- Add an Alias statement for robots.txt when short URLs are enabled
- Add or/and configuration of access control to
bin/configure command -- TobiasVonDerKrone - 11 Dec 2009
- Fixed the urlpath element so that it roundtrips without adding a bogus leading space -- MartinCleaver - 11 Feb 2010
- Added
ErrorDocument 401 default for bin/configure, so it doesn't rewrite to the bin/view and cause other errors - 9 July 2010
- Added NO_FOSWIKI_SESSION for protection against hungry spiders - AndrewJones - 14 July 2010
- Improve regex for Expires header - match jpeg as well as jpg. ( WillNorris ) And match the gz compressed versions of css and js -- GeorgeClark - 30 Sep 2010
- default Foswiki version to 1.1 -- WillNorris - 09 Nov 2010
- changed default config mode to AND. Foswiki:Tasks/Item10018
- Added more quotes on file system paths to deal with spaces. -- GeorgeClark - 26 Oct 2011
Wanted improvements.
- For ShortURLs? , I had to (at least for what I'm doing at SSLForNonViewScriptsOnly), add
Alias /error/ "/usr/share/apache2/error/" above Alias / "/srv/www/vhosts/wiki.trin.org.au/foswiki/bin/view/"
- Handle modules needed for LDAP library inclusions -- MartinCleaver - 11 Feb 2010
- Template Login should be enable by default on "Choose your Login Manager".
- There should be a really basic configuration file ready to download and explained for newbies - there is the httpd.conf.txt at the root of the release
- Shouldn't we change the
FilesMatch "(attach|edit|manage|rename|save|upload|mail|logon|rest|.*auth......" to simply be something like FilesMatch "(?<!view)$" ?
- Clarify why enabling Short URLs creates RewriteRules as well as Aliases, when ShorterUrlCookbook claims that only one or the other is necessary. -- HeathRaftery - 9 Feb 2012