The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

strange host http issue

Discussion in 'General Discussion' started by Secret Agent, Oct 13, 2004.

  1. Secret Agent

    Secret Agent Guest

    Please look this:
    -bash-2.05b$ lynx http://domain.com/

    Looking up domain.com
    Making HTTP connection to domain.com
    Sending HTTP request.
    HTTP request sent; waiting for response.
    HTTP/1.1 302 Found
    Data transfer complete
    HTTP/1.1 302 Found
    Using http://www.domain/auction/index.html
    Looking up http://www.domain
    Unable to locate remote host http://www.domain.
    Alert!: Unable to connect to remote host.

    lynx: Can't access startfile http://domain.com/
    -bash-2.05b$

    Why is this happening? If I simply go to the domain itself in a browser it shows the index file (by default which is normal). I checked the httpd.conf file and it looks normal for this domain as well.

    What could be the problem? DNS was removed and readded. Works fine as well.
     
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    please see the error details:
    ======================
    10.3.3 302 Found

    The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.

    The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

    If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

    Note: RFC 1945 and RFC 2068 specify that the client is not allowed
    to change the method on the redirected request. However, most
    existing user agent implementations treat 302 as if it were a 303
    response, performing a GET on the Location field-value regardless
    of the original request method. The status codes 303 and 307 have
    been added for servers that wish to make unambiguously clear which
    kind of reaction is expected of the client.
    ===================================================================

    so check the index file of that domain for any redirection.
     
  3. Secret Agent

    Secret Agent Guest

    I'm not quite understanding anything you said but first: in cpanel he has no redirects setup, second - there is no index.html file in public_html root.
     
  4. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    wrt the above; see that the http://domain.com/ is being redirected to http://www.domain/auction/index.html. that means that the domain has some sort of redirection setup at /home/username/public_html either using the index.html file or .htaccess file.
     
Loading...

Share This Page