linux 中http.conf配置出错,忙烦帮我看下是什么问题!

#1 jvfu

DocumentRoot "/var/www/html"




    Options FollowSymLinks
    AllowOverride None




    Order allow,deny
    Allow from all




UserDir: The name of the directory that is appended onto a user's home
directory if a ~user request is received.

The path to the end user account 'public_html' directory must be
accessible to the webserver userid.  This usually means that ~userid
must have permissions of 711, ~userid/public_html must have permissions
of 755, and documents contained therein must be world-readable.
Otherwise, the client will only receive a "403 Forbidden" message.

See also: http://httpd.apache.org/docs/misc/FAQ.htmlforbidden


    UserDir disable






Control access to UserDir directories.  The following is an example
for a site where these directories are restricted to read-only.


    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
   
        Order allow,deny
        Allow from all
   

   
        Order deny,allow
        Deny from all
   




DirectoryIndex: sets the file that Apache will serve if a directory
is requested.

The index.html.var file (a type-map) is used to deliver content-
negotiated documents.  The MultiViews Option can be used for the
same purpose, but it is much slower.

DirectoryIndex index.html index.html.var


AccessFileName .htaccess


    Order allow,deny
    Deny from all



TypesConfig describes where the mime.types file (or equivalent) is
to be found.

TypesConfig /etc/mime.types



DefaultType text/plain


   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic



HostnameLookups: Log the names of clients or just their IP addresses
e.g., www.apache.org (on) or 204.62.129.132 (off).
The default is off because it'd be overall better for the net if people
had to knowingly turn this feature on, since enabling it means that
each client request will result in AT LEAST one lookup request to the
nameserver.

HostnameLookups Off


EnableMMAP: Control whether memory-mapping is used to deliver
files (assuming that the underlying OS supports it).
The default is on; turn this off if you serve from NFS-mounted
filesystems.  On some systems, turning it off (regardless of
filesystem) can improve performance; for details, please see
http://httpd.apache.org/docs/2.2/mod/core.htmlenablemmap

EnableMMAP off


EnableSendfile: Control whether the sendfile kernel support is
used to deliver files (assuming that the OS supports it).
The default is on; turn this off if you serve from NFS-mounted
filesystems.  Please see
http://httpd.apache.org/docs/2.2/mod/core.htmlenablesendfile

EnableSendfile off


ErrorLog: The location of the error log file.
If you do not specify an ErrorLog directive within a
container, error messages relating to that virtual host will be
logged here.  If you *do* define an error logfile for a
container, that host's errors will be logged there and not here.

ErrorLog logs/error_log


LogLevel: Control the number of messages logged to the error_log.
Possible values include: debug, info, notice, warn, error, crit,
alert, emerg.

LogLevel warn


The following directives define some format nicknames for use with
a CustomLog directive (see below).

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

"combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
requires the mod_logio module to be loaded.
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio


The location and format of the access logfile (Common Logfile Format).
If you do not define any access logfiles within a
container, they will be logged here.  Contrariwise, if you *do*
define per- access logfiles, transactions will be
logged therein and *not* in this file.

CustomLog logs/access_log common


If you would like to have separate agent and referer logfiles, uncomment
the following directives.

CustomLog logs/referer_log referer
CustomLog logs/agent_log agent


For a single logfile with access, agent, and referer information
(Combined Logfile Format), use the following directive:

CustomLog logs/access_log combined


Optionally add a line containing the server version and virtual host
name to server-generated pages (internal error documents, FTP directory
listings, mod_status and mod_info output etc., but not CGI generated
documents or custom error documents).
Set to "EMail" to also include a mailto: link to the ServerAdmin.
Set to one of:  On | Off | EMail

ServerSignature On


Aliases: Add here as many aliases as you need (with no limit). The format is
Alias fakename realname

Note that if you include a trailing / on fakename then the server will
require it to be present in the URL.  So "/icons" isn't aliased in this
example, only "/icons/".  If the fakename is slash-terminated, then the
realname must also be slash terminated, and if the fakename omits the
trailing slash, the realname must also omit it.

We include the /icons/ alias for FancyIndexed directory listings.  If you
do not use FancyIndexing, you may comment this out.

Alias /icons/ "/var/www/icons/"


    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all



WebDAV module configuration section.


    Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb


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^^

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw



Alias /error/ "/var/www/error/"



   
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
   






The following directives modify normal HTTP response behavior to
handle known problems with browser implementations.

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

NameVirtualHost 61.242.169.1


    ServerAdmin [email]webmaster@siheal.com[/email]
     DocumentRoot /var/www/html/www.siheal.com
     ServerName www.siheal.com
  
ErrorLog var/www/html/www.siheal.com.log
    CustomLog logs/dummy-host.example.com-access_log common



    ServerAdmin [email]webmaster@hbztbio.com[/email]
     DocumentRoot /var/www/zt/www.hbztbio.com
     ServerName www.hbztbio.com
  
ErrorLog var/www/zt/www.hbztbio.com.log
    CustomLog logs/dummy-host.example.com-access_log common

2010-12-10 11:11:31

#2 jake

出错提示是什么?

日志怎么说?

2010-12-10 11:20:13

#3 azwl

推荐用xampp1.73 for linux ,   很绿色的软件

2010-12-10 14:50:52

#4 syber

把apache日志贴出来看看,

2010-12-10 17:16:03