Skip to content

Commit 7be1ba9

Browse files
author
Jeff Arnold
committed
Legacy-ID: 1
0 parents  commit 7be1ba9

37 files changed

+3074
-0
lines changed

COPYRIGHT

+357
Large diffs are not rendered by default.

README

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
server:
2+
code needed to run a scripts.mit.edu server

server/README

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
common:
2+
distribution-independent code needed to run a scripts.mit.edu server
3+
4+
fedora:
5+
distribution-dependent code needed to run a fedora scripts.mit.edu server
6+
7+
debian:
8+
distribution-dependent code needed to run a debian scripts.mit.edu server
9+
10+
doc:
11+
documentation related to running a scripts.mit.edu server

server/common/config/httpd.conf

+274
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
1+
#ServerType standalone
2+
ServerRoot /etc/httpd
3+
#LockFile /var/lock/apache.lock
4+
PidFile run/httpd.pid
5+
#ScoreBoardFile /var/run/apache.scoreboard
6+
Timeout 300
7+
KeepAlive On
8+
MaxKeepAliveRequests 100
9+
KeepAliveTimeout 15
10+
MinSpareServers 5
11+
MaxSpareServers 20
12+
StartServers 8
13+
MaxClients 256
14+
MaxRequestsPerChild 4000
15+
16+
LoadModule auth_basic_module modules/mod_auth_basic.so
17+
LoadModule auth_digest_module modules/mod_auth_digest.so
18+
LoadModule authn_file_module modules/mod_authn_file.so
19+
LoadModule authn_alias_module modules/mod_authn_alias.so
20+
LoadModule authn_anon_module modules/mod_authn_anon.so
21+
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
22+
LoadModule authn_default_module modules/mod_authn_default.so
23+
LoadModule authz_host_module modules/mod_authz_host.so
24+
LoadModule authz_user_module modules/mod_authz_user.so
25+
LoadModule authz_owner_module modules/mod_authz_owner.so
26+
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
27+
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
28+
LoadModule authz_default_module modules/mod_authz_default.so
29+
#LoadModule ldap_module modules/mod_ldap.so
30+
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
31+
LoadModule include_module modules/mod_include.so
32+
LoadModule log_config_module modules/mod_log_config.so
33+
LoadModule logio_module modules/mod_logio.so
34+
LoadModule env_module modules/mod_env.so
35+
LoadModule ext_filter_module modules/mod_ext_filter.so
36+
#LoadModule mime_magic_module modules/mod_mime_magic.so
37+
#LoadModule expires_module modules/mod_expires.so
38+
#LoadModule deflate_module modules/mod_deflate.so
39+
#LoadModule headers_module modules/mod_headers.so
40+
#LoadModule usertrack_module modules/mod_usertrack.so
41+
LoadModule setenvif_module modules/mod_setenvif.so
42+
LoadModule mime_module modules/mod_mime.so
43+
#LoadModule dav_module modules/mod_dav.so
44+
LoadModule status_module modules/mod_status.so
45+
LoadModule autoindex_module modules/mod_autoindex.so
46+
#LoadModule info_module modules/mod_info.so
47+
#LoadModule dav_fs_module modules/mod_dav_fs.so
48+
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
49+
LoadModule negotiation_module modules/mod_negotiation.so
50+
LoadModule dir_module modules/mod_dir.so
51+
LoadModule actions_module modules/mod_actions.so
52+
#LoadModule speling_module modules/mod_speling.so
53+
LoadModule userdir_module modules/mod_userdir.so
54+
LoadModule alias_module modules/mod_alias.so
55+
LoadModule rewrite_module modules/mod_rewrite.so
56+
#LoadModule proxy_module modules/mod_proxy.so
57+
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
58+
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
59+
#LoadModule proxy_http_module modules/mod_proxy_http.so
60+
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
61+
#LoadModule cache_module modules/mod_cache.so
62+
LoadModule suexec_module modules/mod_suexec.so
63+
#LoadModule disk_cache_module modules/mod_disk_cache.so
64+
#LoadModule file_cache_module modules/mod_file_cache.so
65+
#LoadModule mem_cache_module modules/mod_mem_cache.so
66+
LoadModule cgi_module modules/mod_cgi.so
67+
LoadModule ssl_module modules/mod_ssl.so
68+
69+
User apache
70+
Group apache
71+
72+
<Directory />
73+
Options Includes FollowSymLinks
74+
AllowOverride All
75+
</Directory>
76+
77+
UserDir web_scripts
78+
79+
<Directory /mit>
80+
AllowOverride None
81+
Options FollowSymLinks IncludesNoExec
82+
</Directory>
83+
84+
<Directory /mit/*>
85+
AllowOverride All
86+
Options FollowSymLinks IncludesNoExec
87+
</Directory>
88+
89+
<Directory /afs/athena.mit.edu/activity/*/*/web_scripts>
90+
AllowOverride All
91+
Options FollowSymLinks IncludesNoExec
92+
</Directory>
93+
94+
<Directory /afs/athena.mit.edu/course/*/*/web_scripts>
95+
AllowOverride All
96+
Options FollowSymLinks IncludesNoExec
97+
</Directory>
98+
99+
<Directory /afs/athena.mit.edu/org/*/*/web_scripts>
100+
AllowOverride All
101+
Options FollowSymLinks IncludesNoExec
102+
</Directory>
103+
104+
<Directory /afs/athena.mit.edu/user/*/*/*/web_scripts>
105+
AllowOverride All
106+
Options FollowSymLinks IncludesNoExec
107+
</Directory>
108+
109+
<IfModule mod_dir.c>
110+
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.py index.shtml
111+
</IfModule>
112+
113+
AccessFileName .htaccess
114+
115+
<Files ~ "^\.ht">
116+
Order Allow,Deny
117+
Deny from all
118+
</Files>
119+
120+
UseCanonicalName Off
121+
TypesConfig /etc/mime.types
122+
DefaultType text/plain
123+
124+
AddDefaultCharset on
125+
126+
HostnameLookups Off
127+
ErrorLog "/var/log/httpd/error_log"
128+
LogLevel warn
129+
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
130+
CustomLog /var/log/httpd/access_log combined
131+
ServerSignature Off
132+
ServerAdmin [email protected]
133+
ServerTokens Prod
134+
135+
<IfModule mod_autoindex.c>
136+
IndexOptions NameWidth=*
137+
138+
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
139+
140+
AddIconByType (TXT,/icons/text.gif) text/*
141+
AddIconByType (IMG,/icons/image2.gif) image/*
142+
AddIconByType (SND,/icons/sound2.gif) audio/*
143+
AddIconByType (VID,/icons/movie.gif) video/*
144+
145+
AddIcon /icons/binary.gif .bin .exe
146+
AddIcon /icons/binhex.gif .hqx
147+
AddIcon /icons/tar.gif .tar
148+
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
149+
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
150+
AddIcon /icons/a.gif .ps .ai .eps
151+
AddIcon /icons/layout.gif .html .shtml .htm .pdf
152+
AddIcon /icons/text.gif .txt
153+
AddIcon /icons/c.gif .c
154+
AddIcon /icons/p.gif .pl .py
155+
AddIcon /icons/f.gif .for
156+
AddIcon /icons/dvi.gif .dvi
157+
AddIcon /icons/uuencoded.gif .uu
158+
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
159+
AddIcon /icons/tex.gif .tex
160+
AddIcon /icons/bomb.gif core
161+
AddIcon /icons/deb.gif .deb
162+
163+
AddIcon /icons/back.gif ..
164+
AddIcon /icons/hand.right.gif README
165+
AddIcon /icons/folder.gif ^^DIRECTORY^^
166+
AddIcon /icons/blank.gif ^^BLANKICON^^
167+
168+
DefaultIcon /icons/unknown.gif
169+
170+
ReadmeName README
171+
HeaderName HEADER
172+
173+
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
174+
</IfModule>
175+
176+
<IfModule mod_mime.c>
177+
AddType application/xhtml+xml .xhtml
178+
AddType application/http-index-format .hti
179+
AddType text/html .html
180+
AddType text/css .css
181+
AddType text/xsl .xslt
182+
AddType application/x-javascript .js
183+
AddType application/xml .xml
184+
AddType image/svg+xml .svg
185+
AddType application/vnd.mozilla.xul+xml .xul
186+
AddType application/rdf+xml .rdf
187+
AddType application/x-xpinstall .xpi
188+
AddType text/xml .xsl
189+
#AddOutputFilterByType mod-xslt application/xml
190+
AddType text/html .shtml
191+
AddHandler server-parsed .shtml
192+
</IfModule>
193+
194+
<IfModule mod_mime.c>
195+
AddEncoding x-compress Z
196+
AddEncoding x-gzip gz tgz
197+
198+
AddLanguage da .dk
199+
AddLanguage nl .nl
200+
AddLanguage en .en
201+
AddLanguage et .ee
202+
AddLanguage fr .fr
203+
AddLanguage de .de
204+
AddLanguage el .el
205+
AddLanguage it .it
206+
AddLanguage ja .ja
207+
AddCharset ISO-2022-JP .jis
208+
AddLanguage pl .po
209+
AddCharset ISO-8859-2 .iso-pl
210+
AddLanguage pt .pt
211+
AddLanguage pt-br .pt-br
212+
AddLanguage ltz .lu
213+
AddLanguage ca .ca
214+
AddLanguage es .es
215+
AddLanguage sv .se
216+
AddLanguage cz .cz
217+
218+
<IfModule mod_negotiation.c>
219+
LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv
220+
</IfModule>
221+
222+
#AddType application/x-httpd-php .php
223+
#AddType application/x-httpd-php-source .phps
224+
225+
AddType application/x-tar .tgz
226+
AddType image/bmp .bmp
227+
228+
# hdml
229+
AddType text/x-hdml .hdml
230+
231+
#AddType text/html .shtml
232+
#AddHandler server-parsed .shtml
233+
</IfModule>
234+
235+
<IfModule mod_setenvif.c>
236+
BrowserMatch "Mozilla/2" nokeepalive
237+
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
238+
BrowserMatch "RealPlayer 4\.0" force-response-1.0
239+
BrowserMatch "Java/1\.0" force-response-1.0
240+
BrowserMatch "JDK/1\.0" force-response-1.0
241+
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
242+
</IfModule>
243+
244+
Listen 80
245+
246+
<IfModule mod_ssl.c>
247+
Listen 443
248+
249+
AddType application/x-x509-ca-cert .crt
250+
AddType application/x-pkcs7-crl .crl
251+
252+
SSLPassPhraseDialog builtin
253+
254+
SSLSessionCache dbm:/var/run/ssl_scache
255+
SSLSessionCacheTimeout 300
256+
SSLMutex file:/var/run/ssl_mutex
257+
SSLRandomSeed startup builtin
258+
SSLRandomSeed connect builtin
259+
</IfModule>
260+
261+
RLimitCPU 60 60
262+
RLimitMEM 268435456 268435456
263+
RLimitNPROC 1024 1024
264+
265+
SetEnv REDIRECT_STATUS CGI
266+
SetEnv PHPRC .
267+
268+
NameVirtualHost *:80
269+
NameVirtualHost *:443
270+
271+
ServerName localhost
272+
DocumentRoot /afs/athena.mit.edu/contrib/scripts/www
273+
Include /etc/httpd/conf.d/static.conf
274+
Include /afs/athena.mit.edu/contrib/scripts/vhosts/better-mousetrap.conf
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
CC = @CC@
2+
CFLAGS = @CFLAGS@
3+
4+
all-local: staticsys-cat update
5+
6+
staticsys-cat: update
7+
$(CC) $(CFLAGS) -o $@ staticsys-cat.c
8+
9+
update:
10+
@UPD_VARS@ perl upd-execsys
11+
12+
clean:
13+
rm -f staticsys-cat
14+
15+
preauto: clean
16+
rm -f configure config.* Makefile
17+
rm -rf auto*.cache
18+
19+
ready: preauto
20+
autoconf
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
AC_INIT(staticsys-cat.c.pre)
2+
3+
AC_PROG_CC
4+
5+
AC_ARG_WITH(syscat,
6+
[ --with-syscat[=DIR] staticsys-cat will be located in DIR],[
7+
if test "$withval" != "no" -a "$withval" != "yes"; then
8+
UPD_VARS="syscat_path=$withval/staticsys-cat $UPD_VARS"
9+
fi
10+
])
11+
12+
AC_ARG_WITH(afsagent,
13+
[ --with-afsagent[=UID] afsagent will have user id UID],[
14+
if test "$withval" != "no" -a "$withval" != "yes"; then
15+
CFLAGS="-DAFSAGENT_UID=$withval $CCFLAGS"
16+
fi
17+
])
18+
19+
AC_DEFUN(SUPPORT,[AC_ARG_WITH($1,
20+
[ --with-$1[=PATH]$2 associate .$1 with PATH],[
21+
if test "$withval" != "no" -a "$withval" != "yes"; then
22+
UPD_VARS="$1_path=$withval $UPD_VARS"
23+
fi
24+
])])
25+
26+
SUPPORT([pl], [ ])
27+
SUPPORT([php], [])
28+
SUPPORT([py], [ ])
29+
30+
AC_SUBST(UPD_VARS)
31+
AC_OUTPUT(Makefile)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
#
3+
# execsys-binfmt: test1
4+
#
5+
# chkconfig: 2345 2 99
6+
# description: test2
7+
#
8+
9+
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
10+
echo "-1" > /proc/sys/fs/binfmt_misc/status
11+
12+
# START-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE!
13+
# This section is populated by the script upd-execsys
14+
# END-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE!

0 commit comments

Comments
 (0)