Cant access site, "Default Web Site" and 404's

Status
Not open for further replies.

FireLancer

New Member
Messages
15
Reaction score
0
Points
0
If I try to access my main site (mysite.exofire.net) or the index.html there, I get redirected to cgi-sys/defaultwebpage.cgi. For all other pages the server returns a 404 with the exception of [www.]mysite.exofire.net/.htaccess which gives a 403 (well its different from a 404 :) )

Using the www subdomain gives same result, have tried flushing DNS, clearing browser cache, and using a different browser (IE rather than FireFox). Accessing FTP does work using mysite.exofire.net as host (with FileZilla and FireFox).



I tried "ping mysite.exofire.net" in cmd.exe and it used 69.175.104.34. 69.175.104.34 is also shown in my cpanel on the DNS Zone thing, so I guess that means my computer is finding the right ip address (ie the DNS flushed/reset/whatever correctly)?


EDIT:

Ok so I played for a bit more and found that <mysite>.exofire.net/~<hosting username>/public_html/somepage.html does work, but I still cant access them in a "normal" way. I also just tested quickly on an entire different computer, same results.
 
Last edited:

FireLancer

New Member
Messages
15
Reaction score
0
Points
0
ok, I wrote a Python script to make 100% sure it wasn't a browser cache issue or anything like that

Code:
from socket import *

domain = 'firelancer.exofire.net'
file   = '/index.html'
http_request = (
    'GET {0} HTTP/1.0\n'
    'Host: {1}\n'
    '\n').format(file,domain)

#get ip for domain name
ip = gethostbyname(domain)

print("DOMAIN: ", domain)
print("IPv4: ", ip)
#sonnect to server
conn = socket(AF_INET, SOCK_STREAM)
conn.connect((ip, 80))

#send request
print("REQUEST:")
print(http_request, end='')
conn.send(http_request.encode('ascii'))
print("REQUEST-END")
print()

#get response
response = conn.recv(4096, 0)
response = response.decode('ascii')
print("RESPONSE:")
print(response, end='')
print("RESPONSE-END")
print()
Code:
DOMAIN:  firelancer.exofire.net
IPv4:  69.175.104.34
REQUEST:
GET /index.html HTTP/1.0
Host: firelancer.exofire.net

REQUEST-END

RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 10 Jun 2010 15:11:05 GMT
Server: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6 mod_bwlimited/1.4 mod_auth_passthrough/2.1
Last-Modified: Sun, 06 Jun 2010 21:49:41 GMT
ETag: "ce323e-6f-48863888e2740"
Accept-Ranges: bytes
Content-Length: 111
Connection: close
Content-Type: text/html

<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>
RESPONSE-END

Seems the server just wants to redirect me to that default page...
 
Last edited:
Status
Not open for further replies.
Top