LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1274|回复: 5

为什么我的redhat as4建立的http服务器自己能访问,别人不能访问啊?

[复制链接]
发表于 2005-4-2 17:39:28 | 显示全部楼层 |阅读模式
用httpd ,mysql+php建立的服务器,自己可以访问的,但是别人没法访问
vsftpd也是这样的,不知道怎么回事?
已经chmod -R 777 /var/www/html  文件夹了
问题依旧.兄弟们帮忙啊 :help  :help
下面是/etc/httpd/conf/httpd.conf文件
  1.   
  2.    
  3.       
  4.       
  5.       
  6.    
  7.       
  8.         
  9.         
  10.         
  11.       
  12.         
  13.          
  14.          
  15.          
  16.         
  17.          
  18.             
  19.             
  20.             
  21.          
  22.             
  23.               
  24.               
  25.               
  26.             
  27.               
  28.                
  29.                
  30.                
  31.               
  32.                
  33.                   
  34.                   
  35.                   
  36.                
  37.                   
  38.                     
  39.                     
  40.                     
  41.                   
  42.                     
  43.                      
  44.                      
  45.                      
  46.                     
  47.                      
  48.                         
  49.                         
  50.                         
  51.                      
  52.                         
  53.                           
  54.                           
  55.                           
  56.                         
  57.                           
  58.                            
  59.                            
  60.                            
  61.                           
  62.                            
  63.                               
  64.                               
  65.                               
  66.                            
  67.                               
  68.                                 
  69.                                 
  70.                                 
  71.                               
  72.                                 
  73.                                  
  74.                                  
  75.                                  
  76.                                 
  77.                                  
  78.                                  
  79.                                  
  80.                                 
  81.                               
  82.                            
  83.                           
  84.                         
  85.                      
  86.                     
  87.                   
  88.                
  89.               
  90.             
  91.          
  92.         
  93.       
  94.    
  95.   
  96.    
  97.       
  98. #
  99. # Based upon the NCSA server configuration files originally by Rob McCool.
  100. #
  101. # This is the main Apache server configuration file.  It contains the
  102. # configuration directives that give the server its instructions.
  103. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about
  104. # the directives.
  105. #
  106. # Do NOT simply read the instructions in here without understanding
  107. # what they do.  They're here only as hints or reminders.  If you are unsure
  108. # consult the online docs. You have been warned.  
  109. #
  110. # The configuration directives are grouped into three basic sections:
  111. #  1. Directives that control the operation of the Apache server process as a
  112. #     whole (the 'global environment').
  113. #  2. Directives that define the parameters of the 'main' or 'default' server,
  114. #     which responds to requests that aren't handled by a virtual host.
  115. #     These directives also provide default values for the settings
  116. #     of all virtual hosts.
  117. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  118. #     different IP addresses or hostnames and have them handled by the
  119. #     same Apache server process.
  120. #
  121. # Configuration and logfile names: If the filenames you specify for many
  122. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  123. # server will use that explicit path.  If the filenames do *not* begin
  124. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  125. # with ServerRoot set to "/etc/httpd" will be interpreted by the
  126. # server as "/etc/httpd/logs/foo.log".
  127. #

  128. ### Section 1: Global Environment
  129. #
  130. # The directives in this section affect the overall operation of Apache,
  131. # such as the number of concurrent requests it can handle or where it
  132. # can find its configuration files.
  133. #

  134. #
  135. # Don't give away too much information about all the subcomponents
  136. # we are running.  Comment out this line if you don't mind remote sites
  137. # finding out what major optional modules you are running
  138. ServerTokens OS

  139. #
  140. # ServerRoot: The top of the directory tree under which the server's
  141. # configuration, error, and log files are kept.
  142. #
  143. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  144. # mounted filesystem then please read the LockFile documentation
  145. # (available at <URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
  146. # you will save yourself a lot of trouble.
  147. #
  148. # Do NOT add a slash at the end of the directory path.
  149. #
  150. ServerRoot "/etc/httpd"

  151. #
  152. # ScoreBoardFile: File used to store internal server process information.
  153. # If unspecified (the default), the scoreboard will be stored in an
  154. # anonymous shared memory segment, and will be unavailable to third-party
  155. # applications.
  156. # If specified, ensure that no two invocations of Apache share the same
  157. # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
  158. #
  159. #ScoreBoardFile run/httpd.scoreboard

  160. #
  161. # PidFile: The file in which the server should record its process
  162. # identification number when it starts.
  163. #
  164. PidFile "/var/run/httpd.pid"

  165. #
  166. # Timeout: The number of seconds before receives and sends time out.
  167. #
  168. TimeOut 300

  169. #
  170. # KeepAlive: Whether or not to allow persistent connections (more than
  171. # one request per connection). Set to "Off" to deactivate.
  172. #
  173. KeepAlive false

  174. #
  175. # MaxKeepAliveRequests: The maximum number of requests to allow
  176. # during a persistent connection. Set to 0 to allow an unlimited amount.
  177. # We recommend you leave this number high, for maximum performance.
  178. #
  179. MaxKeepAliveRequests 100

  180. #
  181. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  182. # same client on the same connection.
  183. #
  184. KeepAliveTimeout 15

  185. ##
  186. ## Server-Pool Size Regulation (MPM specific)
  187. ##

  188. # prefork MPM
  189. # StartServers: number of server processes to start
  190. # MinSpareServers: minimum number of server processes which are kept spare
  191. # MaxSpareServers: maximum number of server processes which are kept spare
  192. # MaxClients: maximum number of server processes allowed to start
  193. # MaxRequestsPerChild: maximum number of requests a server process serves
  194. <IfModule prefork.c>
  195. StartServers 8
  196. MinSpareServers 5
  197. MaxSpareServers 20
  198. MaxClients 150
  199. MaxRequestsPerChild 100
  200. </IfModule>

  201. # worker MPM
  202. # StartServers: initial number of server processes to start
  203. # MaxClients: maximum number of simultaneous client connections
  204. # MinSpareThreads: minimum number of worker threads which are kept spare
  205. # MaxSpareThreads: maximum number of worker threads which are kept spare
  206. # ThreadsPerChild: constant number of worker threads in each server process
  207. # MaxRequestsPerChild: maximum number of requests a server process serves
  208. <IfModule worker.c>
  209. StartServers         2
  210. MaxClients         150
  211. MinSpareThreads     25
  212. MaxSpareThreads     75
  213. ThreadsPerChild     25
  214. MaxRequestsPerChild  0
  215. </IfModule>

  216. #
  217. # Listen: Allows you to bind Apache to specific IP addresses and/or
  218. # ports, in addition to the default. See also the <VirtualHost>
  219. # directive.
  220. #
  221. # Change this to Listen on specific IP addresses as shown below to
  222. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  223. #
  224. #Listen 12.34.56.78:80
  225. Listen 218.193.14.35:80


  226. #
  227. # Dynamic Shared Object (DSO) Support
  228. #
  229. # To be able to use the functionality of a module which was built as a DSO you
  230. # have to place corresponding `LoadModule' lines at this location so the
  231. # directives contained in it are actually available _before_ they are used.
  232. # Statically compiled modules (those listed by `httpd -l') do not need
  233. # to be loaded here.
  234. #
  235. # Example:
  236. # LoadModule foo_module modules/mod_foo.so
  237. #
  238. LoadModule access_module modules/mod_access.so
  239. LoadModule auth_module modules/mod_auth.so
  240. LoadModule auth_anon_module modules/mod_auth_anon.so
  241. LoadModule auth_dbm_module modules/mod_auth_dbm.so
  242. LoadModule auth_digest_module modules/mod_auth_digest.so
  243. LoadModule ldap_module modules/mod_ldap.so
  244. LoadModule auth_ldap_module modules/mod_auth_ldap.so
  245. LoadModule include_module modules/mod_include.so
  246. LoadModule log_config_module modules/mod_log_config.so
  247. LoadModule env_module modules/mod_env.so
  248. LoadModule mime_magic_module modules/mod_mime_magic.so
  249. LoadModule cern_meta_module modules/mod_cern_meta.so
  250. LoadModule expires_module modules/mod_expires.so
  251. LoadModule deflate_module modules/mod_deflate.so
  252. LoadModule headers_module modules/mod_headers.so
  253. LoadModule usertrack_module modules/mod_usertrack.so
  254. LoadModule unique_id_module modules/mod_unique_id.so
  255. LoadModule setenvif_module modules/mod_setenvif.so
  256. LoadModule mime_module modules/mod_mime.so
  257. LoadModule dav_module modules/mod_dav.so
  258. LoadModule status_module modules/mod_status.so
  259. LoadModule autoindex_module modules/mod_autoindex.so
  260. LoadModule asis_module modules/mod_asis.so
  261. LoadModule info_module modules/mod_info.so
  262. LoadModule dav_fs_module modules/mod_dav_fs.so
  263. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  264. LoadModule negotiation_module modules/mod_negotiation.so
  265. LoadModule dir_module modules/mod_dir.so
  266. LoadModule imap_module modules/mod_imap.so
  267. LoadModule actions_module modules/mod_actions.so
  268. LoadModule speling_module modules/mod_speling.so
  269. LoadModule userdir_module modules/mod_userdir.so
  270. LoadModule alias_module modules/mod_alias.so
  271. LoadModule rewrite_module modules/mod_rewrite.so
  272. LoadModule proxy_module modules/mod_proxy.so
  273. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  274. LoadModule proxy_http_module modules/mod_proxy_http.so
  275. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  276. LoadModule cache_module modules/mod_cache.so
  277. LoadModule suexec_module modules/mod_suexec.so
  278. LoadModule disk_cache_module modules/mod_disk_cache.so
  279. LoadModule file_cache_module modules/mod_file_cache.so
  280. LoadModule mem_cache_module modules/mod_mem_cache.so
  281. LoadModule cgi_module modules/mod_cgi.so

  282. #
  283. # Load config files from the config directory "/etc/httpd/conf.d".
  284. #
  285. Include conf.d/*.conf

  286. #
  287. # ExtendedStatus controls whether Apache will generate "full" status
  288. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  289. # Off) when the "server-status" handler is called. The default is Off.
  290. #
  291. #ExtendedStatus On

  292. ### Section 2: 'Main' server configuration
  293. #
  294. # The directives in this section set up the values used by the 'main'
  295. # server, which responds to any requests that aren't handled by a
  296. # <VirtualHost> definition.  These values also provide defaults for
  297. # any <VirtualHost> containers you may define later in the file.
  298. #
  299. # All of these directives may appear inside <VirtualHost> containers,
  300. # in which case these default settings will be overridden for the
  301. # virtual host being defined.
  302. #

  303. #
  304. # If you wish httpd to run as a different user or group, you must run
  305. # httpd as root initially and it will switch.  
  306. #
  307. # User/Group: The name (or #number) of the user/group to run httpd as.
  308. #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  309. #  . On HPUX you may not be able to use shared memory as nobody, and the
  310. #    suggested workaround is to create a user www and use that user.
  311. #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  312. #  when the value of (unsigned)Group is above 60000;
  313. #  don't use Group #-1 on these systems!
  314. #
  315. User apache
  316. Group apache

  317. #
  318. # ServerAdmin: Your address, where problems with the server should be
  319. # e-mailed.  This address appears on some server-generated pages, such
  320. # as error documents.  e.g. admin@your-domain.com
  321. #
  322. ServerAdmin root@localhost

  323. #
  324. # ServerName gives the name and port that the server uses to identify itself.
  325. # This can often be determined automatically, but we recommend you specify
  326. # it explicitly to prevent problems during startup.
  327. #
  328. # If this is not set to valid DNS name for your host, server-generated
  329. # redirections will not work.  See also the UseCanonicalName directive.
  330. #
  331. # If your host doesn't have a registered DNS name, enter its IP address here.
  332. # You will have to access it by its address anyway, and this will make
  333. # redirections work in a sensible way.
  334. #
  335. ServerName 218.193.14.35

  336. #
  337. # UseCanonicalName: Determines how Apache constructs self-referencing
  338. # URLs and the SERVER_NAME and SERVER_PORT variables.
  339. # When set "Off", Apache will use the Hostname and Port supplied
  340. # by the client.  When set "On", Apache will use the value of the
  341. # ServerName directive.
  342. #
  343. UseCanonicalName on

  344. #
  345. # DocumentRoot: The directory out of which you will serve your
  346. # documents. By default, all requests are taken from this directory, but
  347. # symbolic links and aliases may be used to point to other locations.
  348. #
  349. DocumentRoot "/var/www/html"

  350. #
  351. # Disable autoindex for the root directory, and present a
  352. # default Welcome page if no other index page is present.
  353. #
  354. <LocationMatch "^/$">
  355.     Options -Indexes
  356.     ErrorDocument 403 /error/noindex.html
  357. </LocationMatch>

  358. #
  359. # UserDir: The name of the directory that is appended onto a user's home
  360. # directory if a ~user request is received.
  361. #
  362. # The path to the end user account 'public_html' directory must be
  363. # accessible to the webserver userid.  This usually means that ~userid
  364. # must have permissions of 711, ~userid/public_html must have permissions
  365. # of 755, and documents contained therein must be world-readable.
  366. # Otherwise, the client will only receive a "403 Forbidden" message.
  367. #
  368. # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
  369. #
  370. <IfModule mod_userdir.c>
  371.     #
  372.     # UserDir is disabled by default since it can confirm the presence
  373.     # of a username on the system (depending on home directory
  374.     # permissions).
  375.     #
  376.     UserDir "disable"

  377.     #
  378.     # To enable requests to /~user/ to serve the user's public_html
  379.     # directory, use this directive instead of "UserDir disable":
  380.     #
  381.     #UserDir public_html

  382. </IfModule>

  383. #
  384. # DirectoryIndex: sets the file that Apache will serve if a directory
  385. # is requested.
  386. #
  387. # The index.html.var file (a type-map) is used to deliver content-
  388. # negotiated documents.  The MultiViews Option can be used for the
  389. # same purpose, but it is much slower.
  390. #
  391. DirectoryIndex

  392. #
  393. # AccessFileName: The name of the file to look for in each directory
  394. # for access control information.  See also the AllowOverride directive.
  395. #
  396. AccessFileName .htaccess

  397. #
  398. # The following lines prevent .htaccess and .htpasswd files from being
  399. # viewed by Web clients.
  400. #
  401. <Files ~ "^\.ht">
  402.     Order allow,deny
  403.     Deny from all
  404. </Files>

  405. #
  406. # TypesConfig describes where the mime.types file (or equivalent) is
  407. # to be found.
  408. #
  409. TypesConfig "/etc/mime.types"

  410. #
  411. # DefaultType is the default MIME type the server will use for a document
  412. # if it cannot otherwise determine one, such as from filename extensions.
  413. # If your server contains mostly text or HTML documents, "text/plain" is
  414. # a good value.  If most of your content is binary, such as applications
  415. # or images, you may want to use "application/octet-stream" instead to
  416. # keep browsers from trying to display binary files as though they are
  417. # text.
  418. #
  419. DefaultType text/plain

  420. #
  421. # The mod_mime_magic module allows the server to use various hints from the
  422. # contents of the file itself to determine its type.  The MIMEMagicFile
  423. # directive tells the module where the hint definitions are located.
  424. #
  425. <IfModule mod_mime_magic.c>
  426. #   MIMEMagicFile /usr/share/magic.mime
  427.     MIMEMagicFile conf/magic
  428. </IfModule>

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

  438. #
  439. # EnableMMAP: Control whether memory-mapping is used to deliver
  440. # files (assuming that the underlying OS supports it).
  441. # The default is on; turn this off if you serve from NFS-mounted
  442. # filesystems.  On some systems, turning it off (regardless of
  443. # filesystem) can improve performance; for details, please see
  444. # http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
  445. #
  446. #EnableMMAP off

  447. #
  448. # EnableSendfile: Control whether the sendfile kernel support is
  449. # used to deliver files (assuming that the OS supports it).
  450. # The default is on; turn this off if you serve from NFS-mounted
  451. # filesystems.  Please see
  452. # http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
  453. #
  454. #EnableSendfile off

  455. #
  456. # ErrorLog: The location of the error log file.
  457. # If you do not specify an ErrorLog directive within a <VirtualHost>
  458. # container, error messages relating to that virtual host will be
  459. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  460. # container, that host's errors will be logged there and not here.
  461. #
  462. ErrorLog "/var/log/httpd/error_log"

  463. #
  464. # LogLevel: Control the number of messages logged to the error_log.
  465. # Possible values include: debug, info, notice, warn, error, crit,
  466. # alert, emerg.
  467. #
  468. LogLevel warn

  469. #
  470. # The following directives define some format nicknames for use with
  471. # a CustomLog directive (see below).
  472. #
  473. LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
  474. LogFormat "%h %l %u %t "%r" %>s %b" common
  475. LogFormat "%{Referer}i -> %U" referer
  476. LogFormat "%{User-agent}i" agent


  477. #
  478. # The location and format of the access logfile (Common Logfile Format).
  479. # If you do not define any access logfiles within a <VirtualHost>
  480. # container, they will be logged here.  Contrariwise, if you *do*
  481. # define per-<VirtualHost> access logfiles, transactions will be
  482. # logged therein and *not* in this file.
  483. #
  484. # CustomLog logs/access_log common
  485. CustomLog logs/access_log combined

  486. #
  487. # If you would like to have agent and referer logfiles, uncomment the
  488. # following directives.
  489. #
  490. #CustomLog logs/referer_log referer
  491. #CustomLog logs/agent_log agent

  492. #
  493. # If you prefer a single logfile with access, agent, and referer information
  494. # (Combined Logfile Format) you can use the following directive.
  495. #
  496. #CustomLog logs/access_log combined

  497. #
  498. # Optionally add a line containing the server version and virtual host
  499. # name to server-generated pages (error documents, FTP directory listings,
  500. # mod_status and mod_info output etc., but not CGI generated documents).
  501. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  502. # Set to one of:  On | Off | EMail
  503. #
  504. ServerSignature on

  505. #
  506. # Aliases: Add here as many aliases as you need (with no limit). The format is
  507. # Alias fakename realname
  508. #
  509. # Note that if you include a trailing / on fakename then the server will
  510. # require it to be present in the URL.  So "/icons" isn't aliased in this
  511. # example, only "/icons/".  If the fakename is slash-terminated, then the
  512. # realname must also be slash terminated, and if the fakename omits the
  513. # trailing slash, the realname must also omit it.
  514. #
  515. # We include the /icons/ alias for FancyIndexed directory listings.  If you
  516. # do not use FancyIndexing, you may comment this out.
  517. #
  518. Alias /icons/ "/var/www/icons/"

  519. #
  520. # This should be changed to the ServerRoot/manual/.  The alias provides
  521. # the manual, even if you choose to move your DocumentRoot.  You may comment
  522. # this out if you do not care for the documentation.
  523. #
  524. Alias /manual "/var/www/manual"

  525. <IfModule mod_dav_fs.c>
  526.     # Location of the WebDAV lock database.
  527.     DAVLockDB /var/lib/dav/lockdb
  528. </IfModule>

  529. #
  530. # ScriptAlias: This controls which directories contain server scripts.
  531. # ScriptAliases are essentially the same as Aliases, except that
  532. # documents in the realname directory are treated as applications and
  533. # run by the server when requested rather than as documents sent to the client.
  534. # The same rules about trailing "/" apply to ScriptAlias directives as to
  535. # Alias.
  536. #
  537. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

  538. <IfModule mod_cgid.c>
  539. #
  540. # Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
  541. # for setting UNIX socket for communicating with cgid.
  542. #
  543. #Scriptsock            logs/cgisock
  544. </IfModule>


  545. #
  546. # Redirect allows you to tell clients about documents which used to exist in
  547. # your server's namespace, but do not anymore. This allows you to tell the
  548. # clients where to look for the relocated document.
  549. # Example:
  550. # Redirect permanent /foo http://www.example.com/bar

  551. #
  552. # Directives controlling the display of server-generated directory listings.
  553. #

  554. #
  555. # FancyIndexing is whether you want fancy directory indexing or standard.
  556. # VersionSort is whether files containing version numbers should be
  557. # compared in the natural way, so that `apache-1.3.9.tar' is placed before
  558. # `apache-1.3.12.tar'.
  559. #
  560. IndexOptions FancyIndexing VersionSort NameWidth=*

  561. #
  562. # AddIcon* directives tell the server which icon to show for different
  563. # files or filename extensions.  These are only displayed for
  564. # FancyIndexed directories.
  565. #
  566. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

  567. AddIconByType (TXT,/icons/text.gif) text/*
  568. AddIconByType (IMG,/icons/image2.gif) image/*
  569. AddIconByType (SND,/icons/sound2.gif) audio/*
  570. AddIconByType (VID,/icons/movie.gif) video/*

  571. AddIcon /icons/binary.gif .bin .exe
  572. AddIcon /icons/binhex.gif .hqx
  573. AddIcon /icons/tar.gif .tar
  574. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  575. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  576. AddIcon /icons/a.gif .ps .ai .eps
  577. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  578. AddIcon /icons/text.gif .txt
  579. AddIcon /icons/c.gif .c
  580. AddIcon /icons/p.gif .pl .py
  581. AddIcon /icons/f.gif .for
  582. AddIcon /icons/dvi.gif .dvi
  583. AddIcon /icons/uuencoded.gif .uu
  584. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  585. AddIcon /icons/tex.gif .tex
  586. AddIcon /icons/bomb.gif core

  587. AddIcon /icons/back.gif ..
  588. AddIcon /icons/hand.right.gif README
  589. AddIcon /icons/folder.gif ^^DIRECTORY^^
  590. AddIcon /icons/blank.gif ^^BLANKICON^^

  591. #
  592. # DefaultIcon is which icon to show for files which do not have an icon
  593. # explicitly set.
  594. #
  595. DefaultIcon /icons/unknown.gif

  596. #
  597. # AddDescription allows you to place a short description after a file in
  598. # server-generated indexes.  These are only displayed for FancyIndexed
  599. # directories.
  600. # Format: AddDescription "description" filename
  601. #
  602. #AddDescription "GZIP compressed document" .gz
  603. #AddDescription "tar archive" .tar
  604. #AddDescription "GZIP compressed tar archive" .tgz

  605. #
  606. # ReadmeName is the name of the README file the server will look for by
  607. # default, and append to directory listings.
  608. #
  609. # HeaderName is the name of a file which should be prepended to
  610. # directory indexes.
  611. ReadmeName README.html
  612. HeaderName HEADER.html

  613. #
  614. # IndexIgnore is a set of filenames which directory indexing should ignore
  615. # and not include in the listing.  Shell-style wildcarding is permitted.
  616. #
  617. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

  618. #
  619. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  620. # information on the fly. Note: Not all browsers support this.
  621. # Despite the name similarity, the following Add* directives have nothing
  622. # to do with the FancyIndexing customization directives above.
  623. #
  624. AddEncoding x-compress Z
  625. AddEncoding x-gzip gz tgz

  626. #
  627. # DefaultLanguage and AddLanguage allows you to specify the language of
  628. # a document. You can then use content negotiation to give a browser a
  629. # file in a language the user can understand.
  630. #
  631. # Specify a default language. This means that all data
  632. # going out without a specific language tag (see below) will
  633. # be marked with this one. You probably do NOT want to set
  634. # this unless you are sure it is correct for all cases.
  635. #
  636. # * It is generally better to not mark a page as
  637. # * being a certain language than marking it with the wrong
  638. # * language!
  639. #
  640. # DefaultLanguage nl
  641. #
  642. # Note 1: The suffix does not have to be the same as the language
  643. # keyword --- those with documents in Polish (whose net-standard
  644. # language code is pl) may wish to use "AddLanguage pl .po" to
  645. # avoid the ambiguity with the common suffix for perl scripts.
  646. #
  647. # Note 2: The example entries below illustrate that in some cases
  648. # the two character 'Language' abbreviation is not identical to
  649. # the two character 'Country' code for its country,
  650. # E.g. 'Danmark/dk' versus 'Danish/da'.
  651. #
  652. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  653. # specifier. There is 'work in progress' to fix this and get
  654. # the reference data for rfc1766 cleaned up.
  655. #
  656. # Danish (da) - Dutch (nl) - English (en) - Estonian (et)
  657. # French (fr) - German (de) - Greek-Modern (el)
  658. # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (kr)
  659. # Portugese (pt) - Luxembourgeois* (ltz)
  660. # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  661. # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  662. # Russian (ru) - Croatian (hr)
  663. #
  664. AddLanguage da .dk
  665. AddLanguage nl .nl
  666. AddLanguage en .en
  667. AddLanguage et .et
  668. AddLanguage fr .fr
  669. AddLanguage de .de
  670. AddLanguage he .he
  671. AddLanguage el .el
  672. AddLanguage it .it
  673. AddLanguage ja .ja
  674. AddLanguage pl .po
  675. AddLanguage kr .kr
  676. AddLanguage pt .pt
  677. AddLanguage nn .nn
  678. AddLanguage no .no
  679. AddLanguage pt-br .pt-br
  680. AddLanguage ltz .ltz
  681. AddLanguage ca .ca
  682. AddLanguage es .es
  683. AddLanguage sv .se
  684. AddLanguage cz .cz
  685. AddLanguage ru .ru
  686. AddLanguage tw .tw
  687. AddLanguage zh-tw .tw
  688. AddLanguage hr .hr

  689. #
  690. # LanguagePriority allows you to give precedence to some languages
  691. # in case of a tie during content negotiation.
  692. #
  693. # Just list the languages in decreasing order of preference. We have
  694. # more or less alphabetized them here. You probably want to change this.
  695. #
  696. LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ltz ca es sv tw

  697. #
  698. # ForceLanguagePriority allows you to serve a result page rather than
  699. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  700. # [in case no accepted languages matched the available variants]
  701. #
  702. ForceLanguagePriority Prefer Fallback

  703. #
  704. # Specify a default charset for all pages sent out. This is
  705. # always a good idea and opens the door for future internationalisation
  706. # of your web site, should you ever want it. Specifying it as
  707. # a default does little harm; as the standard dictates that a page
  708. # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
  709. # are merely stating the obvious. There are also some security
  710. # reasons in browsers, related to javascript and URL parsing
  711. # which encourage you to always set a default char set.
  712. #
  713. #AddDefaultCharset ISO-8859-1
  714. AddDefaultCharset  GB2312
  715. #
  716. # Commonly used filename extensions to character sets. You probably
  717. # want to avoid clashes with the language extensions, unless you
  718. # are good at carefully testing your setup after each change.
  719. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for
  720. # the official list of charset names and their respective RFCs
  721. #
  722. AddCharset ISO-8859-1  .iso8859-1  .latin1
  723. AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
  724. AddCharset ISO-8859-3  .iso8859-3  .latin3
  725. AddCharset ISO-8859-4  .iso8859-4  .latin4
  726. AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
  727. AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
  728. AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
  729. AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
  730. AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
  731. AddCharset ISO-2022-JP .iso2022-jp .jis
  732. AddCharset ISO-2022-KR .iso2022-kr .kis
  733. AddCharset ISO-2022-CN .iso2022-cn .cis
  734. AddCharset Big5        .Big5       .big5
  735. # For russian, more than one charset is used (depends on client, mostly):
  736. AddCharset WINDOWS-1251 .cp-1251   .win-1251
  737. AddCharset CP866       .cp866
  738. AddCharset KOI8-r      .koi8-r .koi8-ru
  739. AddCharset KOI8-ru     .koi8-uk .ua
  740. AddCharset ISO-10646-UCS-2 .ucs2
  741. AddCharset ISO-10646-UCS-4 .ucs4
  742. AddCharset UTF-8       .utf8

  743. # The set below does not map to a specific (iso) standard
  744. # but works on a fairly wide range of browsers. Note that
  745. # capitalization actually matters (it should not, but it
  746. # does for some browsers).
  747. #
  748. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets
  749. # for a list of sorts. But browsers support few.
  750. #
  751. AddCharset GB2312      .gb2312 .gb
  752. AddCharset utf-7       .utf7
  753. AddCharset utf-8       .utf8
  754. AddCharset big5        .big5 .b5
  755. AddCharset EUC-TW      .euc-tw
  756. AddCharset EUC-JP      .euc-jp
  757. AddCharset EUC-KR      .euc-kr
  758. AddCharset shift_jis   .sjis

  759. #
  760. # AddType allows you to add to or override the MIME configuration
  761. # file mime.types for specific file types.
  762. #
  763. AddType application/x-tar .tgz

  764. #
  765. # AddHandler allows you to map certain file extensions to "handlers":
  766. # actions unrelated to filetype. These can be either built into the server
  767. # or added with the Action directive (see below)
  768. #
  769. # To use CGI scripts outside of ScriptAliased directories:
  770. # (You will also need to add "ExecCGI" to the "Options" directive.)
  771. #
  772. #AddHandler cgi-script .cgi

  773. #
  774. # For files that include their own HTTP headers:
  775. #
  776. #AddHandler send-as-is asis

  777. #
  778. # For server-parsed imagemap files:
  779. #
  780. AddHandler imap-file map

  781. #
  782. # For type maps (negotiated resources):
  783. # (This is enabled by default to allow the Apache "It Worked" page
  784. #  to be distributed in multiple languages.)
  785. #
  786. AddHandler type-map var

  787. # Filters allow you to process content before it is sent to the client.
  788. #
  789. # To parse .shtml files for server-side includes (SSI):
  790. # (You will also need to add "Includes" to the "Options" directive.)
  791. #
  792. AddOutputFilter INCLUDES .shtml

  793. #
  794. # Action lets you define media types that will execute a script whenever
  795. # a matching file is called. This eliminates the need for repeated URL
  796. # pathnames for oft-used CGI file processors.
  797. # Format: Action media/type /cgi-script/location
  798. # Format: Action handler-name /cgi-script/location
  799. #

  800. #
  801. # Customizable error responses come in three flavors:
  802. # 1) plain text 2) local redirects 3) external redirects
  803. #
  804. # Some examples:
  805. #ErrorDocument 500 "The server made a boo boo."
  806. #ErrorDocument 404 /missing.html
  807. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  808. #ErrorDocument 402 http://www.example.com/subscription_info.html
  809. #


  810. Alias /error/ "/var/www/error/"

  811. #
  812. # The following directives modify normal HTTP response behavior to
  813. # handle known problems with browser implementations.
  814. #
  815. BrowserMatch "Mozilla/2" nokeepalive
  816. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  817. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  818. BrowserMatch "Java/1\.0" force-response-1.0
  819. BrowserMatch "JDK/1\.0" force-response-1.0

  820. #
  821. # The following directive disables redirects on non-GET requests for
  822. # a directory that does not include the trailing slash.  This fixes a
  823. # problem with Microsoft WebFolders which does not appropriately handle
  824. # redirects for folders with DAV methods.
  825. #
  826. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  827. BrowserMatch "^WebDrive" redirect-carefully
  828. BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  829. BrowserMatch "^gnome-vfs" redirect-carefully

  830. #
  831. # Allow server status reports, with the URL of http://servername/server-status
  832. # Change the ".your-domain.com" to match your domain to enable.
  833. #
  834. #<Location /server-status>
  835. #    SetHandler server-status
  836. #    Order deny,allow
  837. #    Deny from all
  838. #    Allow from .your-domain.com
  839. #</Location>

  840. #
  841. # Allow remote server configuration reports, with the URL of
  842. #  http://servername/server-info (requires that mod_info.c be loaded).
  843. # Change the ".your-domain.com" to match your domain to enable.
  844. #
  845. #<Location /server-info>
  846. #    SetHandler server-info
  847. #    Order deny,allow
  848. #    Deny from all
  849. #    Allow from .your-domain.com
  850. #</Location>

  851. #
  852. # Proxy Server directives. Uncomment the following lines to
  853. # enable the proxy server:
  854. #
  855. #<IfModule mod_proxy.c>
  856. #ProxyRequests On
  857. #
  858. #<Proxy *>
  859. #    Order deny,allow
  860. #    Deny from all
  861. #    Allow from .your-domain.com
  862. #</Proxy>

  863. #
  864. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  865. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  866. # Set to one of: Off | On | Full | Block
  867. #
  868. #ProxyVia On

  869. #
  870. # To enable the cache as well, edit and uncomment the following lines:
  871. # (no cacheing without CacheRoot)
  872. #
  873. #CacheRoot "/etc/httpd/proxy"
  874. #CacheSize 5
  875. #CacheGcInterval 4
  876. #CacheMaxExpire 24
  877. #CacheLastModifiedFactor 0.1
  878. #CacheDefaultExpire 1
  879. #NoCache a-domain.com another-domain.edu joes.garage-sale.com

  880. #</IfModule>
  881. # End of proxy directives.

  882. ### Section 3: Virtual Hosts
  883. #
  884. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  885. # machine you can setup VirtualHost containers for them. Most configurations
  886. # use only name-based virtual hosts so the server doesn't need to worry about
  887. # IP addresses. This is indicated by the asterisks in the directives below.
  888. #
  889. # Please see the documentation at
  890. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  891. # for further details before you try to setup virtual hosts.
  892. #
  893. # You may use the command line option '-S' to verify your virtual host
  894. # configuration.

  895. #
  896. # Use name-based virtual hosting.
  897. #


  898. # Where do we put the lock and pif files?
  899. LockFile "/var/lock/httpd.lock"
  900. CoreDumpDirectory "/etc/httpd"

  901. # Defaults for virtual hosts





  902. # Logs



  903.       
  904.         
  905.         
  906.         
  907.         
  908.         
  909.         
  910.         
  911.         
  912.         
  913.         
  914.         
  915.         
  916.         
  917.         
  918.         
  919.         
  920.         
  921.         
  922.         
  923.         
  924.          
  925.             
  926.             
  927.             
  928.          
  929.         
  930.          
  931.         
  932.       
  933. #
  934. # Virtual hosts
  935. #

  936. # Virtual host 218.193.14.35
  937. <VirtualHost 218.193.14.35>
  938.        
  939.        
  940.        
  941.         ServerName 218.193.14.35
  942.        

  943.        
  944.        
  945.         DirectoryIndex index.html index.php index.htm index.shtml
  946.        
  947.        
  948.        
  949.        
  950.        
  951.        
  952.        
  953.        
  954.         
  955.        
  956.        
  957.        
  958.        
  959.        
  960.        
  961.        
  962.        

  963. </VirtualHost>


  964.       
  965. #
  966. # Each directory to which Apache has access can be configured with respect
  967. # to which services and features are allowed and/or disabled in that
  968. # directory (and its subdirectories).
  969. #
  970. # Note that from this point forward you must specifically allow
  971. # particular features to be enabled - so if something's not working as
  972. # you might expect, make sure that you have specifically enabled it
  973. # below.
  974. #

  975. <Directory "/">
  976.         Options FollowSymLinks
  977.         
  978.         AllowOverride None
  979.         
  980.         
  981.         
  982. </Directory>

  983. <Directory "/var/www/html">
  984.         Options Indexes Includes FollowSymLinks
  985.         
  986.         AllowOverride None
  987.         Allow from all

  988.         
  989.         Order allow,deny
  990. </Directory>

  991. <Directory "/var/www/icons">
  992.         Options Indexes MultiViews
  993.         
  994.         AllowOverride None
  995.         Allow from all

  996.         
  997.         Order allow,deny
  998. </Directory>

  999. <Directory "/var/www/cgi-bin">
  1000.         Options ExecCGI
  1001.         
  1002.         AllowOverride None
  1003.         Allow from all

  1004.         
  1005.         Order allow,deny
  1006. </Directory>


  1007.       
  1008.    
  1009.   
复制代码
发表于 2005-4-2 17:45:27 | 显示全部楼层
可能是你得httpd只监听了127.0.0.1,你把它改成0。0。0。0或是你得实际地址就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-2 17:48:28 | 显示全部楼层
搞定了,是iptables的问题,呵呵,谢谢兄弟了
回复 支持 反对

使用道具 举报

发表于 2008-10-24 00:03:07 | 显示全部楼层

兄弟我也遇到同样问题,你是怎么解决的,能不能说的详细一些

兄弟我也遇到同样问题,你是怎么解决的,能不能说的详细一些
回复 支持 反对

使用道具 举报

发表于 2008-10-24 15:02:18 | 显示全部楼层
看看是不是有防火墙规则.
iptables -vnL
回复 支持 反对

使用道具 举报

发表于 2008-10-24 22:39:52 | 显示全部楼层
谢谢了,已经解决了,是防火墙规则.
问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表