Ignore:
Timestamp:
11/19/08 01:37:09 (4 years ago)
Author:
KennethLavrsen
Message:

Item205: Continuing the TWiki. to %SYSTEMWEB% convertion.
(much easier now that I get less hits on TWiki.org)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release04x02/twiki_httpd_conf.txt

    r747 r790  
    1 # Example httpd.conf file for TWiki. 
     1# Example httpd.conf file for Foswiki 
    22# 
    33# You are recommended to take a copy of this file and edit 
    44# the paths to match your installation. Then add: 
    5 # include "/home/httpd/twiki/twiki_httpd.conf" 
     5# include "/home/httpd/foswiki/foswiki_httpd.conf" 
    66# to the end of your main httpd.conf file. 
    77# 
    8 # See also http://twiki.org/cgi-bin/view/TWiki.ApacheConfigGenerator 
     8# See also http://foswiki.org/Support/ApacheConfigGenerator 
    99# that helps you configure Apache 
    1010 
    1111# The first parameter will be part of the URL to your installation e.g. 
    12 # http://example.com/twiki/bin/view/... 
     12# http://example.com/foswiki/bin/view/... 
    1313# The second parameter must point to the physical path on your disk. Be 
    1414# careful not to lose any trailing /'s. 
    1515 
    1616#### Change the _second_ path to match your local installation 
    17 ScriptAlias /twiki/bin/ "/home/httpd/twiki/bin/" 
     17ScriptAlias /foswiki/bin/ "/home/httpd/foswiki/bin/" 
    1818 
    19 # This defines a url that points to the root of the twiki installation. It is 
     19# This defines a url that points to the root of the Foswiki installation. It is 
    2020# used to access files in the pub directory (attachments etc) 
    2121# It must come _after_ the ScriptAlias. 
    2222 
    2323#### Change the path to match your local installation 
    24 Alias /twiki/ "/home/httpd/twiki/" 
     24Alias /foswiki/ "/home/httpd/foswiki/" 
    2525 
    2626# Block access to typical spam related attachments (.htm and .html files) 
    27 # Except the TWiki directory which is read only and does have attached html files. 
    28 # You should uncomment the two lines below if the TWiki is on the public Internet 
    29 #SetEnvIf Request_URI "twiki/pub/.*\.[hH][tT][mM]?$" blockAccess 
    30 #SetEnvIf Request_URI "twiki/pub/TWiki/.*\.[hH][tT][mM]?$" !blockAccess 
     27# Except the System directory which is read only and does have attached html files. 
     28# You should uncomment the two lines below if the Foswiki is on the public Internet 
     29#SetEnvIf Request_URI "foswiki/pub/.*\.[hH][tT][mM]?$" blockAccess 
     30#SetEnvIf Request_URI "foswiki/pub/System/.*\.[hH][tT][mM]?$" !blockAccess 
    3131 
    3232# We set an environment variable called blockAccess. 
    3333# 
    34 # Setting a BrowserMatchNoCase to ^$ is important. It prevents TWiki from 
    35 # including its own topics as URLs and also prevents other TWikis from 
     34# Setting a BrowserMatchNoCase to ^$ is important. It prevents Foswiki from 
     35# including its own topics as URLs and also prevents other Foswikis from 
    3636# doing the same. This is important to prevent the most obvious 
    3737# Denial of Service attacks. 
    3838# 
    3939# You can expand this by adding more BrowserMatchNoCase statements to 
    40 # block evil browser agents trying the impossible task of mirroring a TWiki. 
    41 # http://twiki.org/cgi-bin/view/TWiki.ApacheConfigGenerator has a good list 
     40# block evil browser agents trying the impossible task of mirroring a Foswiki. 
     41# http://foswiki.org/Support/ApacheConfigGenerator has a good list 
    4242# of bad spiders to block. 
    4343# 
     
    4646BrowserMatchNoCase ^$ blockAccess 
    4747 
    48 # This specifies the options on the TWiki scripts directory. The ExecCGI 
     48# This specifies the options on the Foswiki scripts directory. The ExecCGI 
    4949# and SetHandler tell apache that it contains scripts. "Allow from all" 
    5050# lets any IP address access this URL. 
    5151 
    5252#### Change the path to match your local installation 
    53 <Directory "/home/httpd/twiki/bin"> 
     53<Directory "/home/httpd/foswiki/bin"> 
    5454        AllowOverride None 
    5555        Order Allow,Deny 
     
    6161 
    6262        # Password file for Wiki users 
    63         AuthUserFile /home/httpd/twiki/data/.htpasswd 
     63        AuthUserFile /home/httpd/foswiki/data/.htpasswd 
    6464        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.' 
    6565        AuthType Basic 
     
    6767        # File to return on access control error (e.g. wrong password) 
    6868        # By convention this is the UserRegistration page, that allows users 
    69         # to register with the TWiki. Apache requires this to be a *local* path. 
    70         # Comment this out if you setup TWiki to completely deny access to WikiGuest 
     69        # to register with the Foswiki. Apache requires this to be a *local* path. 
     70        # Comment this out if you setup Foswiki to completely deny access to WikiGuest 
    7171        # in all webs or change the path to a static html page. 
    72         ErrorDocument 401 /twiki/bin/view/TWiki/UserRegistration 
     72        ErrorDocument 401 /foswiki/bin/view/System/UserRegistration 
    7373        # Alternatively if your users are all known to be registered you may want 
    7474        # to redirect them to the ResetPassword page. 
    75         # ErrorDocument 401 /twiki/bin/view/TWiki/ResetPassword 
     75        # ErrorDocument 401 /foswiki/bin/view/System/ResetPassword 
    7676 
    7777# Limit access to configure to specific IP addresses and or users. 
     
    9090</FilesMatch> 
    9191 
    92 # When using Apache type login the following defines the TWiki scripts 
     92# When using Apache type login the following defines the Foswiki scripts 
    9393# that makes Apache ask the browser to authenticate. It is correct that 
    9494# scripts such as view, resetpasswd & passwd are not authenticated. 
     
    106106# Finally all execution of PHP and other scripts is disabled. 
    107107 
    108 # Note that files in pub are *not* protected by TWiki Access Controls, 
     108# Note that files in pub are *not* protected by Foswiki Access Controls, 
    109109# so if you want to control access to files attached to topics, you may 
    110110# need to add your own .htaccess files to subdirectories of pub. See the 
     
    112112 
    113113#### Change the path to match your local installation 
    114 <Directory "/home/httpd/twiki/pub"> 
     114<Directory "/home/httpd/foswiki/pub"> 
    115115    #if you are using an svn checkout an pseudo-install.pl, you will need to enable symlinks 
    116116    #Options FollowSymLinks 
     
    137137 
    138138#### Change the paths to match your local installation 
    139 <Directory "/home/httpd/twiki/data"> 
     139<Directory "/home/httpd/foswiki/data"> 
    140140        deny from all 
    141141</Directory> 
    142142 
    143 <Directory "/home/httpd/twiki/templates"> 
     143<Directory "/home/httpd/foswiki/templates"> 
    144144        deny from all 
    145145</Directory> 
    146146 
    147 <Directory "/home/httpd/twiki/lib"> 
     147<Directory "/home/httpd/foswiki/lib"> 
    148148        deny from all 
    149149</Directory> 
    150150 
    151 <Directory "/home/httpd/twiki/tools"> 
     151<Directory "/home/httpd/foswiki/tools"> 
    152152        deny from all 
    153153</Directory> 
    154154 
    155 <Directory "/home/httpd/twiki/locale"> 
     155<Directory "/home/httpd/foswiki/locale"> 
    156156        deny from all 
    157157</Directory> 
    158158 
    159 <Directory "/home/httpd/twiki/working"> 
     159<Directory "/home/httpd/foswiki/working"> 
    160160        deny from all 
    161161</Directory> 
Note: See TracChangeset for help on using the changeset viewer.