Changeset 938
- Timestamp:
- 11/25/08 10:26:39 (3 years ago)
- File:
-
- 1 edited
-
trunk/core/foswiki_httpd_conf.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/foswiki_httpd_conf.txt
r877 r938 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 # … … 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 27 # Except the Foswiki directory which is read only and does have attached html files. 28 28 # You should uncomment the two lines below if the Foswiki is on the public Internet 29 #SetEnvIf Request_URI " twiki/pub/.*\.[hH][tT][mM]?$" blockAccess30 #SetEnvIf Request_URI " twiki/pub/Foswiki/.*\.[hH][tT][mM]?$" !blockAccess29 #SetEnvIf Request_URI "foswiki/pub/.*\.[hH][tT][mM]?$" blockAccess 30 #SetEnvIf Request_URI "foswiki/pub/Foswiki/.*\.[hH][tT][mM]?$" !blockAccess 31 31 32 32 # We set an environment variable called blockAccess. … … 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 Foswiki 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 … … 70 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/Foswiki/UserRegistration72 ErrorDocument 401 /foswiki/bin/view/Foswiki/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/Foswiki/ResetPassword75 # ErrorDocument 401 /foswiki/bin/view/Foswiki/ResetPassword 76 76 77 77 # Limit access to configure to specific IP addresses and or users. … … 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.
