This question about Installation of Foswiki: Task closed

Need help on configuring the .htaccess files

I'm trying to edit the paths in one of the .htaccess files. One line, for example, says

# Replace {DefaultUrlHost} with the value from configure

(actually in the .htaccess file, the word "configure" is bracketed with equal signs)

but I can't find anything anywhere which tells me what configure is, nor what DefaultUrlHost should be. The same applies to ScriptUrlPath.

I've gone around and around the Foswiki site looking for answers, without success. I'm really stuck until I get an answer to this one.


The "equal signs" are vestige of wiki markup that should probably not be there - the configure is the word configure in a fixed font, and would refer to the Foswiki configuration tool accessed at the http://yoursite.com/foswiki/bin/configure url - but there is a chicken/egg issue here - as you can't run configure until the .htaccess files are set.

In this case, {DefaultUrlHost} would be the URL of your site - for example http://wiki.mysite.com (It's the host portion, so no trailing slash). What the instructions want you to do is do a "Change All" using your editor {DefaultUrlHost} to http://yoursite.com

{ScriptUrlPath} is the part following the host in the URL. So if you are using the default foswiki install, it would be /foswiki/bin - also without the trailing slash.

Note that these parameters are what you also will be configuring in the initial setup using bin/configure.

I'm working on a new version of the ApacheConfigGenerator that will also generate the .htaccess files - but it's not working yet.

-- GeorgeClark - 07 Aug 2010


Thanks for this - exactly what I was looking for. Might I suggest that the comments in the prototype .htaccess files be clarified, until the new ApacheConfigGenerator is ready?

-- PeterPayzant - 07 Aug 2010

I've committed changes against Tasks.Item9441 - the files will be updated in 1.0.10 and 1.1. You can see the changes at http://trac.foswiki.org/changeset/8440

-- GeorgeClark - 09 Aug 2010

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.0.9
Status Task closed
Topic revision: r5 - 09 Aug 2010, GeorgeClark - This page was cached on 16 Jun 2019 - 20:30.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy