473,394 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 8822
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.