Tags:
create new tag
view all tags

Question

This is in htaccess, good thing I had an old one to get site working...

# Controls access to TWiki scripts - to make Apache use it, rename this # file to '.htaccess' and REPLACE THE FOLLOWING STRINGS WITH PATHS # SPECIFIC TO YOUR INSTALLATION. Most required values can be seen in the # Path Settings section of configure. #

# {DataDir}

# Get the value from configure

Now, I have worked with twiki for several years. This is completely unclear. Do I delete the line # {DataDir} right there and replace with path as in config???? Or do I delete {DataDir} including the brackets in the rest of the file??? Add the path after {DataDir} /path/goes here

Or what?

Then this:

#for htdigest password suport uncomment the following

{DefaultUrlHost}{ScriptUrlPath}/viewauth {DefaultUrlHost}{ScriptUrlPath}/edit {DefaultUrlHost}{ScriptUrlPath}/preview {DefaultUrlHost}{ScriptUrlPath}/save {DefaultUrlHost}{ScriptUrlPath}/attach {DefaultUrlHost}{ScriptUrlPath}/upload {DefaultUrlHost}{ScriptUrlPath}/rename {DefaultUrlHost}{ScriptUrlPath}/manage {DefaultUrlHost}{ScriptUrlPath}/installpasswd {DefaultUrlHost}{ScriptUrlPath}/passwd {DataDir}/.htdigest

Replace all the above {stuff here} by deleting and inserting paths? Uncomment the following, and it isn't commented out, so I comment it out or replace with paths???

Is what??? Sorry, but this is not clear in the least to me, and I've been online and doing stuff for ten years and do web development. Imagine a new user! What is one supposed to do with this? If someone could make this clear here, not only for me but for new users that would be great.

We aren't all programmers and not all the best guessers as to what you mean.

Otherwise looks great so far.

Environment

TWiki version:  
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- BruceRProchnau - 07 Mar 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Ow. {DataDir} refers to the value of {DataDir} as shown by configure.

I guess that file didn't receive the TLC some other parts of TWiki did.

Now that you've worked out what it does, how about contributing back version with better documentation? I'd be happy to patch it in for you....

-- CrawfordCurrie - 12 Mar 2006

BTW. The svn file tools/pseudo-install-twiki.pl will automate the edit you need to do by replacing the {Settings} with values accepted from the command line.

-- MartinCleaver - 12 Mar 2006

... though it is not shipped with a TWiki release, Martin!

-- CrawfordCurrie - 13 Mar 2006

I sure wish I could find a sample .htaccess file somewhere. That sure would be nice ... I thought this was my promised land ...

-- JohnDolan - 06 Apr 2006

TWikiRelease04x00x02 (and previous versions) include several examples of .htaccess files; have you checked there?

-rw-r--r--  1 twikibuilder twikibuilder  817 Mar 31 12:14 pub-htaccess.txt
-rw-r--r--  1 twikibuilder twikibuilder  554 Mar 31 12:14 root-htaccess.txt
-rw-r--r--  1 twikibuilder twikibuilder  526 Mar 31 12:14 subdir-htaccess.txt
-rw-r--r--  1 twikibuilder twikibuilder 2993 Mar 31 12:14 twiki_httpd_conf.txt

-- WillNorris - 06 Apr 2006

Hey Will, you could be far more helpful than you realize. I'm trying to get a TWiki set-up and can't get the user authentication working. That's been the one area I've struggled to find documentation. I'm going to download that release and see if I can track down those files. Thanks!

-- JohnDolan - 06 Apr 2006

you can also view and download the files directly at http://svn.twiki.org:8181/svn/twiki/branches/TWikiRelease04x00/

-- WillNorris - 06 Apr 2006

TWiki 01-Sep-2004 had step-by-step instructions to get authentication to work. The installation instructions of TWiki 4 are much more condensed and assume webmaster skills. You can try to the previosi version's TWikiInstallationGuide and the TWikiUserAuthenticationSupplement.

Please ask very specific questions so that we can help you out.

-- PeterThoeny - 06 Apr 2006

TWiki-4.0.4 contains file pub-htaccess.txt with instructions for creating a .htaccess file for the /pub subdirectory. These instructions are flawed and this file is NOT necessary. Flaw is "Options None" which I could not find in Apache docs and kept attachments from displaying for me (Apache 2). More correct statement is "Options -Indexes" which can/should be placed in the twiki/.htaccess file so that it applies to all directories. If you want to disable PHP, this can also be done at the twiki/.htaccess level.

-- ChuckEhrlich - 22 Aug 2006

I have noticed that sadly, this is still a problem in v4.0.5 - pub-htaccess.txt still has the line "Options None". I have found that this is allowed in .conf files, so I guess someone transferred it without checking the documentation.

However, in 4.0.5, "Options -Indexes" now comes in the root-htaccess.txt file.

-- EricWoods - 5 Feb, 2007

Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2007-02-04 - EricWoods
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.