Changeset 790 for branches/Release04x02/twiki_httpd_conf.txt
- Timestamp:
- 11/19/08 01:37:09 (4 years ago)
- File:
-
- 1 edited
-
branches/Release04x02/twiki_httpd_conf.txt (modified) (8 diffs)
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 2 2 # 3 3 # You are recommended to take a copy of this file and edit 4 4 # the paths to match your installation. Then add: 5 # include "/home/httpd/ twiki/twiki_httpd.conf"5 # include "/home/httpd/foswiki/foswiki_httpd.conf" 6 6 # to the end of your main httpd.conf file. 7 7 # 8 # See also http:// twiki.org/cgi-bin/view/TWiki.ApacheConfigGenerator8 # See also http://foswiki.org/Support/ApacheConfigGenerator 9 9 # that helps you configure Apache 10 10 11 11 # 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/... 13 13 # The second parameter must point to the physical path on your disk. Be 14 14 # careful not to lose any trailing /'s. 15 15 16 16 #### Change the _second_ path to match your local installation 17 ScriptAlias / twiki/bin/ "/home/httpd/twiki/bin/"17 ScriptAlias /foswiki/bin/ "/home/httpd/foswiki/bin/" 18 18 19 # This defines a url that points to the root of the twiki installation. It is19 # This defines a url that points to the root of the Foswiki installation. It is 20 20 # used to access files in the pub directory (attachments etc) 21 21 # It must come _after_ the ScriptAlias. 22 22 23 23 #### Change the path to match your local installation 24 Alias / twiki/ "/home/httpd/twiki/"24 Alias /foswiki/ "/home/httpd/foswiki/" 25 25 26 26 # Block access to typical spam related attachments (.htm and .html files) 27 # Except the TWikidirectory 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 Internet29 #SetEnvIf Request_URI " twiki/pub/.*\.[hH][tT][mM]?$" blockAccess30 #SetEnvIf Request_URI " twiki/pub/TWiki/.*\.[hH][tT][mM]?$" !blockAccess27 # 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 31 31 32 32 # We set an environment variable called blockAccess. 33 33 # 34 # Setting a BrowserMatchNoCase to ^$ is important. It prevents TWiki from35 # including its own topics as URLs and also prevents other TWikis from34 # Setting a BrowserMatchNoCase to ^$ is important. It prevents Foswiki from 35 # including its own topics as URLs and also prevents other Foswikis from 36 36 # doing the same. This is important to prevent the most obvious 37 37 # Denial of Service attacks. 38 38 # 39 39 # 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 list40 # block evil browser agents trying the impossible task of mirroring a Foswiki. 41 # http://foswiki.org/Support/ApacheConfigGenerator has a good list 42 42 # of bad spiders to block. 43 43 # … … 46 46 BrowserMatchNoCase ^$ blockAccess 47 47 48 # This specifies the options on the TWiki scripts directory. The ExecCGI48 # This specifies the options on the Foswiki scripts directory. The ExecCGI 49 49 # and SetHandler tell apache that it contains scripts. "Allow from all" 50 50 # lets any IP address access this URL. 51 51 52 52 #### Change the path to match your local installation 53 <Directory "/home/httpd/ twiki/bin">53 <Directory "/home/httpd/foswiki/bin"> 54 54 AllowOverride None 55 55 Order Allow,Deny … … 61 61 62 62 # Password file for Wiki users 63 AuthUserFile /home/httpd/ twiki/data/.htpasswd63 AuthUserFile /home/httpd/foswiki/data/.htpasswd 64 64 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.' 65 65 AuthType Basic … … 67 67 # File to return on access control error (e.g. wrong password) 68 68 # 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 WikiGuest69 # 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 71 71 # in all webs or change the path to a static html page. 72 ErrorDocument 401 / twiki/bin/view/TWiki/UserRegistration72 ErrorDocument 401 /foswiki/bin/view/System/UserRegistration 73 73 # Alternatively if your users are all known to be registered you may want 74 74 # to redirect them to the ResetPassword page. 75 # ErrorDocument 401 / twiki/bin/view/TWiki/ResetPassword75 # ErrorDocument 401 /foswiki/bin/view/System/ResetPassword 76 76 77 77 # Limit access to configure to specific IP addresses and or users. … … 90 90 </FilesMatch> 91 91 92 # When using Apache type login the following defines the TWiki scripts92 # When using Apache type login the following defines the Foswiki scripts 93 93 # that makes Apache ask the browser to authenticate. It is correct that 94 94 # scripts such as view, resetpasswd & passwd are not authenticated. … … 106 106 # Finally all execution of PHP and other scripts is disabled. 107 107 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, 109 109 # so if you want to control access to files attached to topics, you may 110 110 # need to add your own .htaccess files to subdirectories of pub. See the … … 112 112 113 113 #### Change the path to match your local installation 114 <Directory "/home/httpd/ twiki/pub">114 <Directory "/home/httpd/foswiki/pub"> 115 115 #if you are using an svn checkout an pseudo-install.pl, you will need to enable symlinks 116 116 #Options FollowSymLinks … … 137 137 138 138 #### Change the paths to match your local installation 139 <Directory "/home/httpd/ twiki/data">139 <Directory "/home/httpd/foswiki/data"> 140 140 deny from all 141 141 </Directory> 142 142 143 <Directory "/home/httpd/ twiki/templates">143 <Directory "/home/httpd/foswiki/templates"> 144 144 deny from all 145 145 </Directory> 146 146 147 <Directory "/home/httpd/ twiki/lib">147 <Directory "/home/httpd/foswiki/lib"> 148 148 deny from all 149 149 </Directory> 150 150 151 <Directory "/home/httpd/ twiki/tools">151 <Directory "/home/httpd/foswiki/tools"> 152 152 deny from all 153 153 </Directory> 154 154 155 <Directory "/home/httpd/ twiki/locale">155 <Directory "/home/httpd/foswiki/locale"> 156 156 deny from all 157 157 </Directory> 158 158 159 <Directory "/home/httpd/ twiki/working">159 <Directory "/home/httpd/foswiki/working"> 160 160 deny from all 161 161 </Directory>
Note: See TracChangeset
for help on using the changeset viewer.
