I'm creating an intranet and I want to link to some files on our server.
I have created some links (using the Internet Link option) with the format file:///SERVER:\filename\document.pdf
It works with an ebook, but not HTML.
What am I doing wrong?
Intranet local file reference
Moderators: Alexander Halser, Tim Green
-
- Posts: 206
- Joined: Thu Jul 13, 2017 2:57 pm
Re: Intranet local file reference
Could be file permissions, e.g. maybe your domain identity is being communicated when you use the ebook, but not when you use the browser directly.
If you are already running a web server on your network, it might be better to set up the pdf folder as a virtual directory of the intranet site (see e.g. Understanding Sites, Applications, and Virtual Directories on IIS 7 and How to access network files from IIS applications). That way the server knows the file location, but the client just uses a conventional HTTP URL. This might simplify versioning too.
- Tim Green
- Site Admin
- Posts: 23184
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Intranet local file reference
Hi Ga,
Almost all web servers forbid references outside the server's web space with file:/// references, for excellent security reasons. Generally, the only way to link to files on a web server is to put them inside its web space and then link to them with normal http:// web links.
Almost all web servers forbid references outside the server's web space with file:/// references, for excellent security reasons. Generally, the only way to link to files on a web server is to put them inside its web space and then link to them with normal http:// web links.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Re: Intranet local file reference
OK, I'll look into that.Simon_Dismore wrote: ↑Mon Feb 03, 2020 1:41 pmCould be file permissions, e.g. maybe your domain identity is being communicated when you use the ebook, but not when you use the browser directly.
If you are already running a web server on your network, it might be better to set up the pdf folder as a virtual directory of the intranet site (see e.g. Understanding Sites, Applications, and Virtual Directories on IIS 7 and How to access network files from IIS applications). That way the server knows the file location, but the client just uses a conventional HTTP URL. This might simplify versioning too.
Cheers, Simon.
Re: Intranet local file reference
OK.Tim Green wrote: ↑Mon Feb 03, 2020 9:18 pm Hi Ga,
Almost all web servers forbid references outside the server's web space with file:/// references, for excellent security reasons. Generally, the only way to link to files on a web server is to put them inside its web space and then link to them with normal http:// web links.
Sorry, I'm not very good at this, but is this where Help & Manual 2 Go Server can help, or is that purely for testing?
- Tim Green
- Site Admin
- Posts: 23184
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Intranet local file reference
You an also implement HM2Go as part of your WebHelp but that won't help you here either: Like all web servers it can only see its own web space, which in the case of HM2Go is only anything inside the folder containing your WebHelp files. All web servers only see one directory on the server along with all its subdirectories, which is defined as their web space. This prevents normal web users from being able to access system folders.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 206
- Joined: Thu Jul 13, 2017 2:57 pm
Re: Intranet local file reference
I'm not expert, but I'm not sure that's strictly true for IIS. One of those links I posted earlier says:
So that might be a solution if Ga Bowen is in a Windows environment, assuming that all the PDFs in the destination folder are intended to be available from the webhelp....an application can have more than one virtual directory. For example, you might use a virtual directory when you want your application to include images from another location in the file system, but you do not want to move the image files into the physical directory that is mapped to the application's root virtual directory.