InfoQ

交流

讨论:Any one knows how to open port.

作者 leomon 发布于 2003-09-01 分类:linux技术

My linux apache default web port is 80. but I checked it, it is closed ?????
result that my apache + php site cannot be visited by outsider. local visit is ok.
How can I open the port? Thank you so much.
telnet
151.203.202.135
apache
151.203.202.135:80



逛论坛交流Any one knows how to open port.

加入书签
digg+,
reddit+,
del.icio.us+,
dzone+

相关讨论话题

3 条回复

回复

are you sure your apache has start? .. 发表人 hotfire 发表于 09月10日
# Lemon, this is one part from my ht.. 发表人 风平 发表于 09月10日
after I added Port 80 the error me.. 发表人 leomon 发表于 09月10日
  1. 返回顶部

    Re: Any one knows how to open port.

    2003年09月10日 发表人 hotfire

    are you sure your apache has start?
    start it
    /etc/rc.d/init.d/httpd start

  2. 返回顶部

    Re: Any one knows how to open port.

    2003年09月10日 发表人 风平

    # Lemon, this is one part from my httpd.conf file. However, it gives you
    # the most important information. Read it and modify yours accordingly.
    # Good luck.
    #
    # Lemon, make sure to comment out the following two "Listen" lines
    #Listen 3000
    #Listen 12.34.56.78:80


    LoadModule ssl_module libexec/libssl.so

    LoadModule php4_module libexec/libphp4.so
    LoadModule perl_module libexec/libperl.so
    # the following is used to support ASP. If you want your Linux to support it.
    #-------------------------------------------------- Sun Chili!Soft ASP
    LoadModule casp2_module /usr/local/casp/module/linux2_optimized/apache_1.3.27/eapi/mod_casp2.so
    #-------------------------------------------------- Sun Chili!Soft ASP

    AddModule mod_php4.c
    AddModule mod_perl.c
    #-------------------------------------------------- Sun Chili!Soft ASP
    AddModule mod_casp2.c
    #-------------------------------------------------- Sun Chili!Soft ASP

    # Lemon, you missed "Port 80" in your httpd.conf file
    Port 80


    Listen 80
    Listen 443


    User nobody
    Group nobody


    UserDir public_html



    DirectoryIndex index.php index.html index.pl index.php3 index.cgi index.asp index.htm default.html default.htm default.asp default.php index.phtml


    AccessFileName .htaccess


    Order allow,deny
    Deny from all
    Satisfy All



    HostnameLookups Off

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3

    AddHandler cgi-script .cgi

    ## Sun Chili!Soft ASP installer
    AddHandler chiliasp .asp
    AddHandler chiliasp .asa
    CaspLib /usr/local/casp/asp-server-3026

  3. 返回顶部

    Re: Any one knows how to open port.

    2003年09月10日 发表人 leomon

    after I added Port 80
    the error message was like, "Port was replaced with listen in Apache 2.0"
    I guess Apache change the command Port to listen from 1.3.7 to 2.0




  4. 我有话要讲:(可以匿名发表, 发广告的有多远请滚多远!!!)

    昵称: 请输入验证码:


抢着回答

请问数据库和文本的速度比较!

请教 使用mysql数据库 一个表里有10万条数据,一条记录5k到8...

求助!树状菜单

从jsp改过来个树状菜单 但是一展开就所有的下级目录都展开了 ...

给大家发个工具用用!

2000下的msconfig

怎么对文本的内容分页?

找了好多都是对数据库的,哪位老大指点一下思路阿 这是这个...

请教:如何让一条记录同时在多个栏目中...

问一个很菜的问题: 在新闻管理系统中,如何让一条记录同时...

谁有好点的php的邮件系统啊?

限制用户数量的也行。。拿出来学习一下啊。有吗??

图片输出就不能输出其他的内容,如何解...

比如下面的程序: [php] <? $im = ImageCreateFromPNG("C:...

投票民意调查村里的广告问题

我第一个支持有适当的广告存在,但应该是在不影响正常浏览网页的...

请问你们的apache用什么用户启动的啊?

mysql数据库可以创建一个mysql用户启动,那么apache改怎么样呢?...

怎样限制文本框,如标题栏内输入字的个...

如题~ 谢谢赐教!!

[]