Subversion Repositories wimsdev

Rev

Rev 12205 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12205 Rev 15350
Line 148... Line 148...
148
echo " => HTTPd major version found : $vmajor"
148
echo " => HTTPd major version found : $vmajor"
149
 
149
 
150
# Apache version == 1.2
150
# Apache version == 1.2
151
if [ "$vmajor" = "12" ]; then
151
if [ "$vmajor" = "12" ]; then
152
  cat >>$tmpfile <<@
152
  cat >>$tmpfile <<@
153
  ScriptAlias /wims/wims.cgi $wimshome/public_html/wims.cgi
153
  ScriptAlias /wims/wims.cgi "$wimshome/public_html/wims.cgi"
154
  ScriptAlias /wims/wims.html $wimshome/public_html/wims.cgi
154
  ScriptAlias /wims/wims.html "$wimshome/public_html/wims.cgi"
155
  ScriptAlias /wims/index.html $wimshome/public_html/wims.cgi
155
  ScriptAlias /wims/index.html "$wimshome/public_html/wims.cgi"
156
  ScriptAlias /wims/wims.gif $wimshome/public_html/wims.cgi
156
  ScriptAlias /wims/wims.gif "$wimshome/public_html/wims.cgi"
157
  ScriptAlias /wims/wims.png $wimshome/public_html/wims.cgi
157
  ScriptAlias /wims/wims.png "$wimshome/public_html/wims.cgi"
158
  ScriptAlias /wims/wims.jpeg $wimshome/public_html/wims.cgi
158
  ScriptAlias /wims/wims.jpeg "$wimshome/public_html/wims.cgi"
159
  ScriptAlias /wims/wims.jpg $wimshome/public_html/wims.cgi
159
  ScriptAlias /wims/wims.jpg "$wimshome/public_html/wims.cgi"
160
  ScriptAlias /wims/wims.mp3 $wimshome/public_html/wims.cgi
160
  ScriptAlias /wims/wims.mp3 "$wimshome/public_html/wims.cgi"
161
  ScriptAlias /wims/wims.ogg $wimshome/public_html/wims.cgi
161
  ScriptAlias /wims/wims.ogg "$wimshome/public_html/wims.cgi"
162
@
162
@
163
# newer versions of Apache
163
# newer versions of Apache
164
else
164
else
165
  cat >>$tmpfile <<@
165
  cat >>$tmpfile <<@
166
  ScriptAliasMatch ^/~wims/wims\.(.*) $wimshome/public_html/wims.cgi
166
  ScriptAliasMatch ^/~wims/wims\.(.*) "$wimshome/public_html/wims.cgi"
167
  ScriptAliasMatch ^/wims/wims\.(.*) $wimshome/public_html/wims.cgi
167
  ScriptAliasMatch ^/wims/wims\.(.*) "$wimshome/public_html/wims.cgi"
168
  ScriptAliasMatch ^/~wims/index\.(.*) $wimshome/public_html/wims.cgi
168
  ScriptAliasMatch ^/~wims/index\.(.*) "$wimshome/public_html/wims.cgi"
169
  ScriptAliasMatch ^/wims/index\.(.*) $wimshome/public_html/wims.cgi
169
  ScriptAliasMatch ^/wims/index\.(.*) "$wimshome/public_html/wims.cgi"
170
  ScriptAliasMatch ^/~wims/.._(.*).html $wimshome/public_html/wims.cgi
170
  ScriptAliasMatch ^/~wims/.._(.*).html "$wimshome/public_html/wims.cgi"
171
  ScriptAliasMatch ^/wims/.._(.*).html $wimshome/public_html/wims.cgi
171
  ScriptAliasMatch ^/wims/.._(.*).html "$wimshome/public_html/wims.cgi"
172
  ScriptAliasMatch ^/~wims/getfile/(.*) $wimshome/public_html/wims.cgi
172
  ScriptAliasMatch ^/~wims/getfile/(.*) "$wimshome/public_html/wims.cgi"
173
  ScriptAliasMatch ^/wims/getfile/(.*) $wimshome/public_html/wims.cgi
173
  ScriptAliasMatch ^/wims/getfile/(.*) "$wimshome/public_html/wims.cgi"
174
  ScriptAlias /wims/....\.cgi $wimshome/public_html/wims.cgi
174
  ScriptAlias /wims/....\.cgi "$wimshome/public_html/wims.cgi"
175
@
175
@
176
fi
176
fi
177
 
177
 
178
# Apache version >= 2.4
178
# Apache version >= 2.4
179
if [ "$vmajor" -ge "24" ]; then
179
if [ "$vmajor" -ge "24" ]; then
Line 182... Line 182...
182
else
182
else
183
  require_line="allow from all"
183
  require_line="allow from all"
184
fi
184
fi
185
 
185
 
186
cat >>$tmpfile <<@
186
cat >>$tmpfile <<@
187
  Alias /wims $wimshome/public_html
187
  Alias /wims "$wimshome/public_html"
188
  Alias /~wims $wimshome/public_html
188
  Alias /~wims "$wimshome/public_html"
189
 
189
 
190
  <Directory $wimshome/public_html>
190
  <Directory "$wimshome/public_html">
191
    Options +FollowSymLinks +ExecCGI -Indexes
191
    Options +FollowSymLinks +ExecCGI -Indexes
192
    AllowOverride All
192
    AllowOverride All
193
    $require_line
193
    $require_line
194
  </Directory>
194
  </Directory>
195
  <Directory $wimshome/public_html/modules>
195
  <Directory "$wimshome/public_html/modules">
196
    Options FollowSymLinks
196
    Options FollowSymLinks
197
    AllowOverride Limit
197
    AllowOverride Limit
198
  </Directory>
198
  </Directory>
199
 
199
 
200
###### $endl! ######
200
###### $endl! ######
Line 209... Line 209...
209
initscript=$initdir/httpd
209
initscript=$initdir/httpd
210
[ -f $initscript ] || initscript=$initdir/apache
210
[ -f $initscript ] || initscript=$initdir/apache
211
if [ -f $initscript ]; then
211
if [ -f $initscript ]; then
212
 $initscript restart
212
 $initscript restart
213
else
213
else
214
 echo
214
  echo
215
 echo Now you must restart your httpd to make the new configuration
215
  echo Now you must restart your httpd to make the new configuration
216
 echo take effect.
216
  echo take effect.
217
 echo If you don\'t know how to do so: just shut down the system then
217
  echo If you don\'t know how to do so: just shut down the system then
218
 echo restart it.
218
  echo restart it.
219
 echo
219
  echo
220
fi
220
fi
221
 
-