www.cs> ps -ax|grep http 446 ?? Ss 1:18.94 /usr/sbin/httpd 10091 ?? S 0:00.34 /usr/sbin/httpd 10092 ?? S 0:00.24 /usr/sbin/httpd 10094 ?? S 0:00.30 /usr/sbin/httpd 10095 ?? S 0:00.25 /usr/sbin/httpd 10096 ?? S 0:00.24 /usr/sbin/httpd 10363 ?? S 0:00.01 /usr/sbin/httpd 10380 ?? S 0:00.01 /usr/sbin/httpd 10381 ?? S 0:00.02 /usr/sbin/httpd 10382 ?? S 0:00.00 /usr/sbin/httpd 9940 p4 S+ 0:00.01 /usr/local/bin/less httpd.conf 10384 std R+ 0:00.00 grep http www.cs> ls -d /etc/http* /etc/httpd/ www.cs> cd /etc/httpd www.cs> ls ./ httpd.conf.02.10.19 magic ../ httpd.conf.1.35 magic.default access.conf httpd.conf.OSX2 mime.types access.conf.default httpd.conf.applesaved mime.types.default httpd.conf httpd.conf.bak srm.conf httpd.conf.02.06.18 httpd.conf.default srm.conf.default httpd.conf.02.06.23 httpd.conf.dist users/ www.cs> grep ScriptAlias httpd.conf # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # The same rules about trailing "/" apply to ScriptAlias directives as to ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/" # "/Library/WebServer/CGI-Executables" should be changed to whatever your ! # ScriptAliased directories, uncomment the following lines. www.cs> cd /Library/WebServer/CGI-Executables/ www.cs> ls ./ count-cgi* ip-cgi* printenv* ../ date-cgi* ipaddrs test-cgi*
#!/bin/sh # # CGI script that prints the date and time at which it was run # # Output the document header followed by a blank line echo Content-type: text/plain echo # Output the date echo echo echo echo echo echo Welcome to WWW.CS.CSUSTAN.EDU! echo echo The local date and time is: echo echo `date`