Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE and FF won't open index.html on port 8000

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
Hello,

When I try to launch IE6 and FF2 using this line:

Code:
[URL unfurl="true"]http://IPAddress:8000[/URL]

The browsers will not automatically open my index.html.

In IE I get this:

File Download.
Do you want to save this file ?
Type: Unknown File type, <size of it>

In FF I get this:

Opening
You have chosen to open
<blank>
which is a: text/x-server-parsed-html
from
What should Firefox do with this file?
Open with...
Save to Disk

Here's the opening of my index.html file:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<title>TITLE</title>
</head>
<body>

In IE, if I put this:

Code:
[URL unfurl="true"]http://192.168.192.94:8000/index.html[/URL]

...into the URL line, the file opens fine. However, this same approach will not open the file in FF.

How can I code my index.html file so these browsers will automatically open it ? Or, is there anything I need to change in the setup of my Apache 2 HTTP server ?

Thank you.

-- NewtownGuy
 
I changed the opening of the index.html file to this but I still get the same errors:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.1//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-5">
<title>TITLE</title> </head>

Is there a security defense in IE and FF that is objecting to the use of port 8000 ? But how does one setup a web page for little HTTP servers if they can't be accessed on anything other than port 80 ?

-- NewtownGuy
 
Thank you. I don't know where the "text/x-server-parsed-html" statement is coming from.

 
To BillyRayPreachersSon,

There seems to be two schools of thought on the source of this problem -- (a) the server and (b) the browser.

How do I reconfigure the web server to give a statement to the browser that avoids the problem ?

Thank you.

-- NewtownGuy
 
I would suggest you follow feherke's advice and ask in the forum65. There are experts there that deal with apache configuration.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Hi

Yes, NewtownGuy posted to the Apache group and I replied there. Unfortunately I had a typo in my reply : "the only involved is the browser configuration". Sorry again for the misleading sentence, of course there should be "server configuration".

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top