473,657 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8848
In article <c9**********@f reenet9.carleto n.ca>,
ad***@FreeNet.C arleton.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.C arleton.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.web thing.com> wrote in
comp.infosystem s.www.authoring.html:
In article <c9**********@f reenet9.carleto n.ca>,
ad***@FreeNet.C arleton.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.infosystem s.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.tu t.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
7763
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 IE6 on Windows 2000, the browser will not store the session key. Computers running other versions of Internet Explorer store the session key. When I host the application on a Windows 2000 server also on the local domain, the same test computer...
0
1370
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 server software is running. When I start the client application on a client computer from the network share it is code that comes from the local intranet. According to all the documentation I have read, such code has permission to "connect back to...
1
1698
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
1598
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 , and i dont want to do so. (small HD and others ) my question :
2
515
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 running the application. Is there a way to save a file in the local machine and not the web server. I use the function GetFolders and brings me the directories in the path but for the server machine, not the local machine. Thanks in advance...
5
2113
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 FULL_TRUST permission on the machine ... but isn´t there an easier way ?? Each assembly in the application is strong named, and I seem to remember that this should make it possible to have .NET prompt each user for FULL_TRUST permission when...
3
9816
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 receiving the error described in KB810582. http://support.microsoft.com/kb/810582/EL/ 'Microsoft Access cannot open this file.
0
1241
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 "System.Configuration.ConfigurationErrorsException: The 'url' property had a malformed URL". The node looks like this: <siteMapNode url="file://host-server/shared folder/subfolder/ filename.ext" title="Title Name"/>
1
2282
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 scripts are running on the server, so while copying the file, the server is not able to recognize the location of the C drive (which is my local computer) So, how do I make the server recognize my local computer and hence copy the file to the...
0
8425
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8522
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.