472,782 Members | 1,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

file vs http scheme on local intranet

I maintain a small web page for internal company use. People access it
by typing "library" in their browser address bar; this defaults to
"http://library" which the network admin magically redirects to my page.

Lately some other departments have been creating their own web pages and I
have added links to them. The pages are on the same server, but different
folders (traversing the root folder). These bright young people have
introduced attractive graphics and javascript to their pages. However,
they have also used the file:// scheme for their links. These links
won't work from my page unless I use the file:// scheme to open it.

After much trouble I've learned that file:// references are ignored by
design on pages that have been loaded via http://. The question now is
whether to revamp all our internal pages to use the file:// scheme, or to
standardize on the http:// scheme throughout.

I know that one of the advantages of http:// is that we can later add
server-side search capabilities, cgi scripts, and so on. But I don't know
anything about the advantages of the file:// scheme in a local intranet. I
assume these bright young students (who have since completed their work
term and left the company) had a good reason for using file:// references.

Can anyone offer me some guidance about this?

--
"For it is only of the new one grows tired. Of the old one never tires."
-- Kierkegaard, _Repetition_

James Owens, Ottawa, Canada
Jul 20 '05 #1
6 8756
In article <c9**********@freenet9.carleton.ca>,
ad***@FreeNet.Carleton.CA (James Owens) writes:
After much trouble I've learned that file:// references are ignored by
design on pages that have been loaded via http://. The question now is
Nope. Just that they don't exist, unless by coincidence. The file://
scheme gives you your own filesystem, and nothing else.
whether to revamp all our internal pages to use the file:// scheme, or to
That might just work if you only have one filesystem in your organisation -
perhaps if all your users are on 'thin clients'. But it can't scale to,
say, two PCs.
standardize on the http:// scheme throughout.
That will scale as much as you need it to.
term and left the company) had a good reason for using file:// references.
Depends whether you consider ignorance "a good reason". Or maybe company
policy precluded them running a server, and the pages were only ever
intended for personal use.
Can anyone offer me some guidance about this?


You could use mod_proxy_html to rewrite your file:// URLs to http on
the fly, so they become visible from other machines. This'll also
enable you to extend it if you ever want to publish some of your
material to the Web, or enable your staff to work from home.

--
Nick Kew

Nick's manifesto: http://www.htmlhelp.com/~nick/
Jul 20 '05 #2
ad***@FreeNet.Carleton.CA (James Owens) wrote:
These bright young
people have introduced attractive graphics and javascript to their
pages. However, they have also used the file:// scheme for their
links.
Whether such links works is external to HTML, to WWW, and to the
Internet. The file: scheme is by definion system-specific, see
http://www.cs.tut.fi/~jkorpela/fileurl.html
These links won't work from my page unless I use the file://
scheme to open it.
I have no idea of what that refers to. But maybe the file: URLs don't
even comply with the defined syntax.
After much trouble I've learned that file:// references are ignored
by design on pages that have been loaded via http://.
Maybe the references are of incorrect format and thereby interpreted as
relative URLs of some kind.
But I don't
know anything about the advantages of the file:// scheme in a local
intranet.
Neither do I. Well, you can use them without setting up an HTTP server,
but this is more of a problem than a solution,
I assume these bright young students (who have since
completed their work term and left the company) had a good reason for
using file:// references.


They probably just didn't know what they were doing, and they worked on
the "but it works!" (on my system) basis.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3
"Nick Kew" <ni**@hugin.webthing.com> wrote in
comp.infosystems.www.authoring.html:
In article <c9**********@freenet9.carleton.ca>,
ad***@FreeNet.Carleton.CA (James Owens) writes:
After much trouble I've learned that file:// references are ignored by
design on pages that have been loaded via http://. The question now is


Nope. Just that they don't exist, unless by coincidence. The file://
scheme gives you your own filesystem, and nothing else.


I'm not 100% certain, but I believe I remember reading that at least
Mozilla won't honor file:// linkls in a documet that was reached by
http://, to prevent a remote page from executing a program on the
visitor's computer.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
"James Owens" <ad***@FreeNet.Carleton.CA> wrote in
comp.infosystems.www.authoring.html:
I know that one of the advantages of http:// is that we can later add
server-side search capabilities, cgi scripts, and so on. But I don't know
anything about the advantages of the file:// scheme in a local intranet.
If your intranet is running a Web server -- which obviously it is
since http:// references are working -- then I don't think file://
offers any particular advantage.

The only advantage I can think of for file:// is if you want to burn
your local site to a CD-ROM and give or take it to a client or
potential client for a demo -- you could count on it working in
their browser without their having an HTTP server running.
I
assume these bright young students (who have since completed their work
term and left the company) had a good reason for using file:// references.


Perhaps they didn't realize that there was an HTTP server on the
network.

Whichever way you do it, make sure that all references from one page
to another are by _relative_ URLs. That maintains flexibility for
the future.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #5
Stan Brown <th************@fastmail.fm> wrote:
I'm not 100% certain, but I believe I remember reading that at least
Mozilla won't honor file:// linkls in a documet that was reached by
http://, to prevent a remote page from executing a program on the
visitor's computer.


I can confirm this at least for Mozilla Firefox. Clicking on a file://
link causes nothing when the page's own URL is an http:// URL (but works,
to the extent file:// URLs work at all, on local pages).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #6
"Jukka K. Korpela" (jk******@cs.tut.fi) writes:
Stan Brown <th************@fastmail.fm> wrote:
I'm not 100% certain, but I believe I remember reading that at least
Mozilla won't honor file:// linkls in a documet that was reached by
http://, to prevent a remote page from executing a program on the
visitor's computer.


I can confirm this at least for Mozilla Firefox. Clicking on a file://
link causes nothing when the page's own URL is an http:// URL (but works,
to the extent file:// URLs work at all, on local pages).


My source was a Mozilla document:

http://www.mozilla.org/quality/netwo...filetests.html

"Testing file URLs is complicated by the the checkloadURI feature, which
disables file: URLs in network served (http: and https:) pages."

Thanks to all, this will help me persuade the other web page authors to
standardize on http.

--
"For it is only of the new one grows tired. Of the old one never tires."
-- Kierkegaard, _Repetition_

James Owens, Ottawa, Canada
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rob Locher | last post by:
I have a server running NT 4 Server that is on my local domain that hosts an ASP application. I have a problem: when I try to test the ASP application from a computer on the same domain running...
0
by: Lokaler News-Server | last post by:
Hello all, I am getting into trouble in what I think is a rather common scenario: In a client-server application, the client is deployed on a network share on the same computer on which the...
1
by: paul fpvt2 | last post by:
How can I copy an html file to a local drive ? For example: I would like to copy www.mywebsite.mypage.htm to c:\inetput\wwwroot\mydir\mypage.htm, can I do that ? Thanks.
0
by: Daylor | last post by:
hi. i have app that im developing in my computer with vs.net 2003 (offcourse). now, this app is running in other computer in the local intranet. in the other computer i dont have vs.net installed...
2
by: Jennyfer Barco | last post by:
Hello I have a .NET project and I need to save a file with some data the user selects. If I use the command FileOpen it will save the file in the server and not in the local machine where I'm...
5
by: bjarne | last post by:
I´ve made a desktop application in C# (.NET 1.1) and now I would like it to run in a local intranet. I know that I can change the .NET configuration on each client and give the specific application...
3
by: King Ron | last post by:
Ola all: I had a call from a client yesterday. She reports that when attempting to connect to a AC2002 mdb backend on a remotely shared pc (mapped locally as \\Server\Users) she suddenly began...
0
by: Bryan | last post by:
I am trying to link to a file on a local server for my company's intranet with the Web.sitemap so it can be downloaded from my menu. However, no matter how I word it, I always get...
1
by: thanawala27 | last post by:
Hi, I have mapped a server to my computer (called it H drive). all my perl scripts run on the server. Now, i would like to copy a file from my local hard disk (C drive) to this server. As my...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.