Apache服务器的设置文件位于/usr/local/apache/conf/目录下,传统上使用三个配置文件httpd.conf,access.conf和srm.conf,来配置Apache服务器的行为。 HTTP守护进程的运行参数 ServerType standalone ServerRoot "/usr/local"   #LockFile /var/run/httpd.lock   PidFile /var/run/httpd.pid   ScoreBoardFile /var/run/httpd.scoreboard   #ResourceConfig conf/srm.conf   #AccessConfig conf/access.conf   Timeout 300   KeepAlive On   MaxKeepAliveRequests 100   KeepAliveTimeout 15   MinSpareServers 5MaxSpareServers 10    StartServers 5   MaxClients 150   MaxRequestsPerChild 30   #Listen 3000   #Listen 12.34.56.78:80   #BindAddress *   #ExtendedStatus On   Port 80   User nobody   Group nogroup   ServerAdmin  you@your.address   #ServerName new.host.name   DocumentRoot "/www/"   Options FollowSymLinks    AllowOverride None   Options Indexes FollowSymLinks   AllowOverride None   Order allow,deny   Allow from all   UserDir public_html   DirectoryIndex index.html   AccessFileName .htaccess   Order allow,deny   Deny from all   #CacheNegotiatedDocs   UseCanonicalName On   TypesConfig /usr/local/apache/etc/mime.types   DefaultType text/plain   MIMEMagicFile /usr/local/apache/etc/magic   Alias /icons/ "/www/icons/"     ScriptAlias /cgi-bin/ "/www/cgi-bin/"     # Redirect old-URI new-URL   #AddType application/x-httpd-php .phtml  #AddType application/x-httpd-php-source .phps  #AddType text/html .shtml  #AddHandler server-parsed .shtml  #AddHandler send-as-is asis  #AddHandler imap-file map  #AddHandler type-map var  # Action media/type /cgi-script/location  # Action handler-name /cgi-script/location  Action windows-writer /bin/wri2txt  AddHandler windows-writer wri  #MetaDir .web  #MetaSuffix .meta   
 
 
  
运维网声明 
1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003运维网