subdomain shared ip page and a few issues

Discussion in 'Installation/Configuration' started by terryoleary1981, Nov 4, 2008.

  1. terryoleary1981

    terryoleary1981 New Member

    Hi

    I'm having problems with subdomains, my main site loads fine but when i try and look at a subdomain i've set it goes to the general shared IP address page. I'm not too sure whats incorrect, i've run httpd -t and i get the following:

    Code:
    [[email protected] vhosts]# httpd -t
    httpd: apr_sockaddr_info_get() failed for mail.spongecat.com
    httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    Syntax OK
    
    Not sure thats regular.

    Here is my vhosts file... I cant see a mention of the subdomain i've added (admin.domain.co.uk and blog.domain.co.uk)... i've substituted my real domain for domain.co.uk

    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.1.77:80
    <VirtualHost 192.168.1.77:80>
      ServerName localhost
      ServerAdmin [email protected]
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.domain.co.uk:80
    ######################################
    #
    #
    <VirtualHost 192.168.1.77:80>
    SSLCertificateChainFile /var/www/web23/ssl/gd_intermediate_bundle.crt
    ServerName www.domain.co.uk:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web23/web
    ServerAlias domain.co.uk
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web23/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web23/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web23/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web23/user/$1/web/$3
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.spongecat.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.1.77:80>
    ServerName www.spongecat.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web22/web
    ServerAlias www.spongecat.com spongecat.com ns2.spongecat.com ns1.spongecat.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web22/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web22/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web22/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web22/user/$1/web/$3
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    
    my FTP server service also seems not to be running, and sometimes i've experienced problems accessing the ISPconfig domain, where it only works if i drop the www. host from the address otherwise i get network timed out.

    I'm also finding that i can receive emails but when i try to send them (through webmail) i get SMTP Error: Recipient not accepted. Verify your relay rules. I've deleted and recreated the accounts but still have the problem..... here is the content of my mail log

    Code:
    File: maillog           Line 3536 Col 106  423694 bytes                                               100%
    11:53:27
    Nov  4 11:57:14 mail postfix/anvil[15734]: statistics: max connection count 1 for (smtp:::1) at Nov  4 11:
    53:27
    Nov  4 11:57:14 mail postfix/anvil[15734]: statistics: max cache size 2 at Nov  4 11:53:53
    Nov  4 12:00:01 mail postfix/smtpd[16470]: connect from localhost.localdomain[::1]
    Nov  4 12:00:01 mail postfix/smtpd[16470]: lost connection after CONNECT from localhost.localdomain[::1]
    Nov  4 12:00:01 mail postfix/smtpd[16470]: disconnect from localhost.localdomain[::1]
    Nov  4 12:00:01 mail sendmail[16471]: mA4C01sJ016471: from=root, size=188, class=0, nrcpts=1, msgid=<20081
    [email protected]>, [email protected]
    Nov  4 12:00:01 mail postfix/smtpd[16470]: connect from localhost[127.0.0.1]
    Nov  4 12:00:01 mail postfix/smtpd[16470]: setting up TLS connection from localhost[127.0.0.1]
    Nov  4 12:00:02 mail postfix/smtpd[16470]: Anonymous TLS connection established from localhost[127.0.0.1]:
     TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Nov  4 12:00:02 mail sendmail[16471]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL
    , cipher=DHE-RSA-AES256-SHA, bits=256/256
    Nov  4 12:00:02 mail postfix/smtpd[16470]: 032636263B: client=localhost[127.0.0.1], [email protected]
    spongecat.com
    Nov  4 12:00:02 mail postfix/cleanup[16477]: 032636263B: message-id=<[email protected]
    gecat.com>
    Nov  4 12:00:02 mail postfix/qmgr[15427]: 032636263B: from=<[email protected]>, size=748, nrcpt=1 (q
    ueue active)
    Nov  4 12:00:02 mail sendmail[16471]: mA4C01sJ016471: [email protected], ctladdr=root (0/0), delay
    =00:00:01, xdelay=00:00:01, mailer=relay, pri=30188, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (
    Ok: queued as 032636263B)
    Nov  4 12:00:02 mail postfix/smtpd[16470]: disconnect from localhost[127.0.0.1]
    Nov  4 12:00:02 mail postfix/smtp[16478]: 032636263B: to=<[email protected]>, relay=gmail-smtp-in.l.g
    oogle.com[216.239.59.27]:25, delay=0.86, delays=0.11/0.01/0.31/0.44, dsn=2.0.0, status=sent (250 2.0.0 OK
    1225800002 g9si1957962gvc.0)
    Nov  4 12:00:02 mail postfix/qmgr[15427]: 032636263B: removed
    Nov  4 12:00:59 mail postfix/smtpd[16470]: connect from localhost.localdomain[::1]
    Nov  4 12:00:59 mail postfix/smtpd[16470]: NOQUEUE: reject: RCPT from localhost.localdomain[::1]: 554 5.7.
    1 <[email protected]>: Relay access denied; from=<[email protected]> to=<terry.
    [email protected]> proto=SMTP helo=<UebiMiau>
    Nov  4 12:00:59 mail postfix/smtpd[16470]: lost connection after RCPT from localhost.localdomain[::1]
    Nov  4 12:00:59 mail postfix/smtpd[16470]: disconnect from localhost.localdomain[::1]
    1Help   2UnWrap 3Quit   4Hex    5Line   6RxSrch 7Search 8Raw    9Unform 10Quit
    
    
     
    Last edited: Nov 4, 2008
  2. terryoleary1981

    terryoleary1981 New Member

    well i've figured out the subdomain problem, there was an error in my vhost file with an ssl i included.... but i'm still having problems sending mail and the ftp server service is still down....
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Please enable "Server requires authentication" in your email client.

    What's the output of
    Code:
    netstat -tap
    ?
     
  4. terryoleary1981

    terryoleary1981 New Member

    i know its not a issue with the authenticate option when sending as i'm getting the problem when I use the webmail as well (as the option is setup in my outlook anyway).... So still baffled.

    I do have some really odd outputs for netstat -tap though.

    Code:
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16676  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31585 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM001a:rgtp TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31603 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58410 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16650  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16690  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-C:prm-nm-np TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16644  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31554 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16687  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31561 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-C:iclpv-nlc TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16701  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-:screencast TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31573 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31530 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16625  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58354 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM001:us-gv TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16728  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58443 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58442 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31564 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31527 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58355 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM001a:sais TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31518 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31600 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16654  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58421 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16665  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM00:igi-lm TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16718  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16620  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58383 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16657  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM001a:elan TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-C:iclpv-sas TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58423 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31571 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16670  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31509 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16619  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-C:sophia-lm TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM0:dbsa-lm TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58398 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31588 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da7410:timbuktu-srv4 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM00:ora-lm TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16688  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31538 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da7410:timbuktu-srv3 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31552 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31591 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-C:iclpv-wsm TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16710  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16723  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58371 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58412 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da74105:eicon-server TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16643  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58378 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31539 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58400 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31553 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM0:innosys TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16664  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31568 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16669  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-C:iclpv-nls TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31550 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16719  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58431 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31565 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58455 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31543 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16661  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58451 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31546 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58446 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58406 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16659  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16646  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58386 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16680  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16713  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58388 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31522 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31534 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da741055-CM0:ibm-pps TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31531 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16709  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16648  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58385 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58392 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16715  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31520 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31584 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16702  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31521 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31578 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31560 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da74:audio-activmail TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http CPE0050da7410:cadkey-licman TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ::ffff:78.149.52.162:16651  TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31599 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31544 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58447 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http host-92-6-208-43.as43:58396 TIME_WAIT   -                  
    tcp        0      0 Unknown-00-22-64-34-f4:http ti400720a080-3152.bb.:31608 TIME_WAIT   -                  
     
  5. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/postfix/main.cf?
     

Share This Page