LinuxSir.cn,穿越时空的Linuxsir!

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

httpd

[复制链接]
发表于 2003-3-6 09:46:48 | 显示全部楼层 |阅读模式
浏览器里可以看到我发布网页目录里的的文件,怎样屏蔽?
发表于 2003-3-7 12:42:37 | 显示全部楼层
如何使用系统自带的httpd,用法怎样啊,我设置好不知道怎办??

目录里放网页上去也看不到,我是这样看的

http://192.168.112.88/index.html
http://172.0.0.1/index.html

试了很多次还是不行,怎办啊?
 楼主| 发表于 2003-3-7 12:51:29 | 显示全部楼层
不懂你是什么意思?
如果你启动了httpd服务的话,把网页文件放到/var/www/html目录下,如果有index.html文件的话,直接127.0.0.1就可以看了。
发表于 2003-3-7 13:00:13 | 显示全部楼层
但我看不了啊 ,,,,,,而且我用nmap 192.168.112.88

80端口没有开,,,而我启动httpd时,老是显示错误

[root@Snoopy tartmp]# httpd
Syntax error on line 176 of /etc/httpd/conf/httpd.conf:
Listen takes one argument, A port number or a numeric IP address and a port number
[root@Snoopy tartmp]#

我都不知道怎办也???是不是倚赖问题啊????
 楼主| 发表于 2003-3-7 13:20:19 | 显示全部楼层
等高人来指点咱们吧,我也想知道!
发表于 2003-3-7 13:39:33 | 显示全部楼层
httpd(8)                                                              httpd(8)



N NA AM ME E
       httpd - Apache hypertext transfer protocol server

S SY YN NO OP PS SI IS S
       h ht tt tp pd d [ - -d d _ s_ e_ r_ v_ e_ r_ r_ o_ o_ t ] [ - -f f _ c_ o_ n_ f_ i_ g ] [ - -C C _ d_ i_ r_ e_ c_ t_ i_ v_ e ] [ - -c c _ d_ i_ r_ e_ c_ t_ i_ v_ e ]
       [ - -D D _ p_ a_ r_ a_ m_ e_ t_ e_ r ]

       h ht tt tp pd d [ - -h h ] [ - -l l ] [ - -L L ] [ - -v v ] [ - -V V ] [ - -t t ] [ - -X X ]


D DE ES SC CR RI IP PT TI IO ON N
       h ht tt tp pd d is the Apache HyperText Transfer Protocol (HTTP) server  program.
       It is designed to be run as a standalone daemon process. When used like
       this it will create a pool of child processes to  handle  requests.  To
       stop it, send a TERM signal to the initial (parent) process. The PID of
       this process is written to a file as given in the configuration file.

       This manual page only lists the command line arguments. For details  of
       the  directives  necessary  to  configure  h ht tt tp pd d see the Apache manual,
       which  is  part  of  the  Apache  distribution  or  can  be  found   at
       http://httpd.apache.org/.  Paths  in  this manual may not reflect those
       compiled into h ht tt tp pd d. .

O OP PT TI IO ON NS S
       - -d d _ s_ e_ r_ v_ e_ r_ r_ o_ o_ t
                   Set the initial  value  for  the  ServerRoot  directive  to
                   _ s_ e_ r_ v_ e_ r_ r_ o_ o_ t.  This  can be overridden by the ServerRoot com-
                   mand in the configuration file. The default is  / /e et tc c/ /h ht tt tp pd d.

       - -f f _ c_ o_ n_ f_ i_ g   Execute the commands in the file _ c_ o_ n_ f_ i_ g on startup. If _ c_ o_ n_ -
                   _ f_ i_ g does not begin with a /, then it is taken to be a  path
                   relative to the ServerRoot. The default is c co on nf f/ /h ht tt tp pd d. .c co on nf f.

       - -C C _ d_ i_ r_ e_ c_ t_ i_ v_ e
                   Process the configuration _ d_ i_ r_ e_ c_ t_ i_ v_ e before  reading  config
                   files.

       - -c c _ d_ i_ r_ e_ c_ t_ i_ v_ e
                   Process  the  configuration  _ d_ i_ r_ e_ c_ t_ i_ v_ e after reading config
                   files.

       - -D D _ p_ a_ r_ a_ m_ e_ t_ e_ r
                   Sets a configuration  _ p_ a_ r_ a_ m_ e_ t_ e_ r  which  can  be  used  with
                   <IfDefine>...</IfDefine>   sections  in  the  configuration
                   files to conditionally skip or process commands.

       - -h h          Output a short summary of available command line options.

       - -l l          Output a list of modules compiled into the server.

       - -L L          Output a list of directives together  with  expected  argu-
                   ments and places where the directive is valid.

       - -S S          Show the settings as parsed from the config file (currently
                   only shows the virtualhost settings).

       - -t t          Run syntax tests for configuration files only. The  program
                   immediately  exits after these syntax parsing with either a
                   return code of 0 (Syntax OK) or return code not equal to  0
                   (Syntax  Error).  If - -D D _ D_ U_ M_ P_ __ V_ H_ O_ S_ T_ S is also set, details of
                   the virtual host configuration will be printed.

       - -v v          Print the version of h ht tt tp pd d , and then exit.

       - -V V          Print the version and build parameters of h ht tt tp pd d , and  then
                   exit.

       - -X X          Run  h ht tt tp pd d  in debug mode.  Only one worker will be started
                   and the server will not detach from the console.

F FI IL LE ES S
       / /e et tc c/ /h ht tt tp pd d/ /c co on nf f/ /h ht tt tp pd d. .c co on nf f
       / /e et tc c/ /m mi im me e. .t ty yp pe es s
       / /e et tc c/ /h ht tt tp pd d/ /c co on nf f/ /m ma ag gi ic c
       / /v va ar r/ /l lo og g/ /h ht tt tp pd d/ /e er rr ro or r_ _l lo og g
       / /v va ar r/ /l lo og g/ /h ht tt tp pd d/ /a ac cc ce es ss s_ _l lo og g
       / /v va ar r/ /r ru un n/ /h ht tt tp pd d. .p pi id d



                                 February 1997                        httpd(8)


不知道怎么设置,也不清楚问题出在哪里~怎办??
发表于 2003-3-7 17:15:49 | 显示全部楼层

把目录显示项去掉~!

去掉 options indexes
发表于 2003-3-7 17:48:42 | 显示全部楼层
怎没去掉啊???你说详细点可以吗??
 楼主| 发表于 2003-3-7 20:29:58 | 显示全部楼层
apache安装在/usr/local/apache ,启动httpd服务是在/etc/rc.d/rc.local中加入/usr/local/apache/bin/apachectl start.并将/usr/local/apache/bin/httpd拷贝覆盖/etc/rc.d/init.d/httpd,没有对httpd.conf进行过修改,发布目录指向/var/www/html,系统启动后,有启动httpd服务,目录指向/usr/local/apache/htdocs.但而且在setup->system services里面没有httpd服务的自启动选项.这种情况下,应该怎么修改呢?
发表于 2003-3-7 21:17:18 | 显示全部楼层
最初由 pinksnoopy 发布
怎没去掉啊???你说详细点可以吗??


找 httpd.conf 文件
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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