How does one link to the local intranet from within a wiki?

irishScott

Lifer
Oct 10, 2006
21,568
3
0
So my company maintains a wiki for the developers, and said developers want me (a Software Engineering intern) to modify a wiki page. Said page requires a link to a file on the local intranet. The wiki is also hosted on the intranet. However, there seems to be no way to link to the file (the wiki is only accepting http:// and ftp://, apparently).

There are no public sharepoints on said intranet.

*Frustrated Sigh* :|

Any ideas?

Edit: I do not have access to any of the system files on either server
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
If the intranet page is not publically reachable then you are SOL.

You'll need to get it reachable via the Internet. About a few dozens ways to make that happen.
 

irishScott

Lifer
Oct 10, 2006
21,568
3
0
Originally posted by: spidey07
If the intranet page is not publically reachable then you are SOL.

You'll need to get it reachable via the Internet. About a few dozens ways to make that happen.

I was afraid of that. Unfortunately the page is on a classified server (I work for Lockheed Martin) so the chances of that happening are pratically non-existant. Thanks anyways.
 

irishScott

Lifer
Oct 10, 2006
21,568
3
0
Originally posted by: joshsquall
What kind of Wiki is this? Is this in SharePoint 2007?

I'm a wiki noob. It says "powered by mediaWiki" in the corner, but beyond that I don't know much. By sharepoint, I mean a generic folder available to the public.
 

biggestmuff

Diamond Member
Mar 20, 2001
8,201
2
0
classified server, eh? What classification level? It shouldn't be touching the internet/NIPRNET.
 

jdini76

Platinum Member
Mar 16, 2001
2,469
0
0
Originally posted by: spidey07
If the intranet page is not publically reachable then you are SOL.

You'll need to get it reachable via the Internet. About a few dozens ways to make that happen.

Why would this need to be done?

If both items are located on the intranet and lan. why would they need to acess the public internet to do what he wants?
 

Mxylplyx

Diamond Member
Mar 21, 2007
4,197
101
106
You can modify the hosts file on the local machines to point a certain url to a certain internal server, or you could probably do this at the firewall level.

Hosts file is in C:\WINDOWS\system32\drivers\etc, or whatever your windows directory is.
 

mugs

Lifer
Apr 29, 2003
48,924
45
91
In MediaWiki's DefaultSettings.php, there is an array called $wgUrlProtocols. You need to add 'file://' to that list.

(If I understand you correctly, you're trying to link to a file on a network share, right?)
 

irishScott

Lifer
Oct 10, 2006
21,568
3
0
Originally posted by: biggestmuff
classified server, eh? What classification level? It shouldn't be touching the internet/NIPRNET.

Very low level (don't know the exact terminology yet). I could probably tell you what's on it and it wouldn't make any difference competativly or otherwise. My manager's pushing to make it unclassified. I have no idea why it's connected to the Unclassified Network. All I know is that when I do telnet *server name* A message pops up stating that it's a classified server. :confused:
 

irishScott

Lifer
Oct 10, 2006
21,568
3
0
Originally posted by: mugs
In MediaWiki's DefaultSettings.php, there is an array called $wgUrlProtocols. You need to add 'file://' to that list.

(If I understand you correctly, you're trying to link to a file on a network share, right?)

Yeah, unfortunately I'm not Admin, so I can't access said file. I contacted said admins. No response so far. :|
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
I think folks are confused.

The WIKI is internal (i.e. not internet, IT'S on the intranet too) and they want to link to a file on a file server. The wiki won't accept \\server\share\path\to\file it will only accept ftp:// or http:// URL's.

OP, the easiest way may be to script copying the file to the web server via a cron job hourly/daily/weekly and then call it from the local WIKI web host, or see if there is a we server running on the file server, and then you can hit it via http or ftp. The third option is to just setup SVN and sync the file locally that way, but that might be more trouble then it's worth (unless you are already running SVN, and have that directory synced)
 

mugs

Lifer
Apr 29, 2003
48,924
45
91
Originally posted by: irishScott
Originally posted by: mugs
In MediaWiki's DefaultSettings.php, there is an array called $wgUrlProtocols. You need to add 'file://' to that list.

(If I understand you correctly, you're trying to link to a file on a network share, right?)

Yeah, unfortunately I'm not Admin, so I can't access said file. I contacted said admins. No response so far. :|

Well I think that's what's going to have to happen.

Actually, instead of file:// I think you want file:////. Seriously. http://en.wikipedia.org/wiki/File:_URL.
 

irishScott

Lifer
Oct 10, 2006
21,568
3
0
Originally posted by: nweaver
I think folks are confused.

The WIKI is internal (i.e. not internet, IT'S on the intranet too) and they want to link to a file on a file server. The wiki won't accept \\server\share\path\to\file it will only accept ftp:// or http:// URL's.

OP, the easiest way may be to script copying the file to the web server via a cron job hourly/daily/weekly and then call it from the local WIKI web host, or see if there is a we server running on the file server, and then you can hit it via http or ftp. The third option is to just setup SVN and sync the file locally that way, but that might be more trouble then it's worth (unless you are already running SVN, and have that directory synced)

Suppose I could write said script, but I've got other work to do, so I think I'll do that while I wait for the admins to respond.

No webserver on the fileserver.

The reason we wanted the link was to avoid sync issues in the first place. If the file is modified, as long as it's name/location aren't changed the link will update itself by nature.
As opposed to having someone manually re-upload it. Even if I script it, it still won't be 100% efficient (would take time to sync).

This should be simple :|
 

irishScott

Lifer
Oct 10, 2006
21,568
3
0
Originally posted by: mugs
Originally posted by: irishScott
Originally posted by: mugs
In MediaWiki's DefaultSettings.php, there is an array called $wgUrlProtocols. You need to add 'file://' to that list.

(If I understand you correctly, you're trying to link to a file on a network share, right?)

Yeah, unfortunately I'm not Admin, so I can't access said file. I contacted said admins. No response so far. :|

Well I think that's what's going to have to happen.

Actually, instead of file:// I think you want file:////. Seriously. http://en.wikipedia.org/wiki/File:_URL.

:( *Commences muttered cursing at Wiki*