configuration problem

Discussion in 'Installation/Configuration' started by ALonon, Nov 16, 2008.

  1. ALonon

    ALonon New Member

    hello
    My os is centos 5.2
    i can not add my domain to apache
    httpd.conf
    Kod:

    Code:
    NameVirtualHost 94.75.214.13:80
    <VirtualHost 94.75.214.13:80>
        ServerAdmin [email protected]
        DocumentRoot /home/xx/www
        ServerNamexx.net
        ServerAlias www.xx.net
        ErrorLog /home/xx/logs/uldl.net-error_log
        CustomLog /home/uldl/logs/xx.netaccess_log common
    </VirtualHost>
    where is the problem ?
    when i type host xx.net

    host xx.net ;; connection timed out; no servers could be reached
    thanks
     
  2. topdog

    topdog Active Member

    Either firewall is blocking port 80 or port 80 is not listening to that address
     
  3. ALonon

    ALonon New Member

    in httpd.conf

    Code:
    Listen 80
    isn't it correct ?
     
  4. topdog

    topdog Active Member

    That is correct but check using
    Code:
    netstat -ntlp
    and
    Code:
    iptables-save
     
  5. ALonon

    ALonon New Member

    for netstat -ntlp
    Code:
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                            e       PID/Program name
    tcp        0      0 0.0.0.0:902                 0.0.0.0:*                   LIST                            EN      1992/rpc.statd
    tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LIST                            EN      1955/portmap
    tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LIST                            EN      12419/named
    tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LIST                            EN      2258/cupsd
    tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LIST                            EN      12419/named
    tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LIST                            EN      2282/sendmail: acce
    tcp        0      0 :::80                       :::*                        LIST                            EN      10476/httpd
    tcp        0      0 ::1:53                      :::*                        LIST                            EN      12419/named
    tcp        0      0 :::22                       :::*                        LIST                            EN      2243/sshd
    tcp        0      0 ::1:953                     :::*                        LIST                            EN      12419/named
    
    there is no output for iptables-save
     
  6. falko

    falko Super Moderator Howtoforge Staff

    It must be
    Code:
    ServerName xx.net
    (with a space).
     

Share This Page