#--------------------------------------------------------- # Super power performance settings #--------------------------------------------------------- ServerType standalone ServerName localhost ServerRoot "C:/Apache" #--------------------------------------------------------- # Set the port to something different from the # default 80. So, Apache can be accessed from # the local machine as: # # http://localhost:8081 #--------------------------------------------------------- Port 8081 PidFile logs/httpd.pid ScoreBoardFile logs/apache_status Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MaxRequestsPerChild 0 ThreadsPerChild 50 MaxClients 15 # Assume no memory leaks at all MaxRequestsPerChild 0 ServerAdmin admin@shanx.com DocumentRoot "C:/Apache/htdocs" Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all #--------------------------------------------------------- # User rights #--------------------------------------------------------- DirectoryIndex index.htm default.html index.html AccessFileName .htaccess Order allow,deny allow from all TypesConfig conf/mime.types DefaultType text/plain MIMEMagicFile conf/magic HostnameLookups Off ErrorLog logs/error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog logs/access.log common CustomLog logs/referer.log referer CustomLog logs/agent.log agent CustomLog logs/access.log combined ServerSignature Email Alias /icons/ "C:/Apache/icons/" Alias /images/ "C:/Apache/images/" #--------------------------------------------------------- # THE CGI DIRECTORY STUFF #--------------------------------------------------------- ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/" AllowOverride None Options ExecCGI # To use CGI scripts: AddHandler cgi-script .cgi AddHandler cgi-script .pl #--------------------------------------------------------- # THE PHP DIRECTORY STUFF #--------------------------------------------------------- LoadModule php4_module modules/mod_php4/sapi/php4apache.dll AddType application/x-httpd-php .php4 .php .xp .phtml AddType application/x-httpd-php-source .phps # REDIRECTION ENTRY # Redirect old-URI new-URL IndexOptions FancyIndexing AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif AddDescription "GZIP compressed document" .gz AddDescription "tar archive" .tar AddDescription "GZIP compressed tar archive" .tgz ReadmeName README HeaderName HEADER IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t AddEncoding x-compress Z AddEncoding x-gzip gz AddLanguage en .en LanguagePriority en AddType text/html .shtml #______________________E R R O R M E S S A G E S_________________ ErrorDocument 500 "The server is confused and made a boo boo. ErrorDocument 404 "The server made a boo boo: File is absconding. BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 SetHandler server-info Order deny,allow Deny from all Allow from shanx.com