![]() |
|
|
|
#1 |
|
I've never done any html coding on a linux platform, but a little with
Windows. I'm trying to put together a homepage for my intranet that my kids can use. Server is Mandrake 9.2 with Apache 2.0.47. The other machines are either WinXP Pro or Win2K Pro. I want to be able to load a file directory of my public share in an html page. I can see the directory from any machine with "file://adamsmdk/mnt/nt3/shared" in a browser address field from any machine on the LAN (IE 6 or Netscape 7.1). But when I code this into an html page: <a href="file://adamsmdk/mnt/nt3/shared"><img src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" height="32" border="0">Access local file stores.</a> I get nothing. The browser doesn't respond at all. I've diddled with the tag trying everything I can think of from more slashes ("///") to different permutations of the pathname. Can anybody tell me where I'm going wrong here? Do I need to be looking at some kind of ftp solution? Thanks. -- Mark E. Adams, 2004 -- drop the "dot" to email me. CONSIDER: ===========---------,,,,,,,,,............. . . . . . People often find it easier to be a result of the past than a cause of the future. =====================---------,,,,,,,,,............. . . . . . Mark Adams |
|
|
|
|
#2 |
|
Posts: n/a
|
Mark Adams wrote:
> I've never done any html coding on a linux platform, but a little with > Windows. I'm trying to put together a homepage for my intranet that my > kids can use. Server is Mandrake 9.2 with Apache 2.0.47. The other > machines are either WinXP Pro or Win2K Pro. > I want to be able to load a file directory of my public share in an html > page. I can see the directory from any machine with > "file://adamsmdk/mnt/nt3/shared" in a browser address field from any > machine on the LAN (IE 6 or Netscape 7.1). But when I code this into an > html page: > <a href="file://adamsmdk/mnt/nt3/shared"><img > src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" > height="32" border="0">Access local file stores.</a> > I get nothing. The browser doesn't respond at all. I've diddled with > the tag trying everything I can think of from more slashes ("///") to > different permutations of the pathname. > Can anybody tell me where I'm going wrong here? Do I need to be looking > at some kind of ftp solution? Remove the "file" from the location. That's only needed on your local machine and not allowed in html. <a href="path1/path2/filename.jpg"> This assumes that path1 is in the same directory as the html file is. otherwise use <a href="http://www.domain.com/path1/path2/filename.jpg"> |
|
|
|
#3 |
|
Posts: n/a
|
Richard wrote:
> Mark Adams wrote: > > > I've never done any html coding on a linux platform, but a little > with > Windows. I'm trying to put together a homepage for my > intranet that my > kids can use. Server is Mandrake 9.2 with Apache > 2.0.47. The other > machines are either WinXP Pro or Win2K Pro. > > > I want to be able to load a file directory of my public share in > an html > page. I can see the directory from any machine with > > "file://adamsmdk/mnt/nt3/shared" in a browser address field from > any > machine on the LAN (IE 6 or Netscape 7.1). But when I code > this into an > html page: > > > <a href="file://adamsmdk/mnt/nt3/shared"><img > > src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" > > height="32" border="0">Access local file stores.</a> > > > I get nothing. The browser doesn't respond at all. I've diddled > with > the tag trying everything I can think of from more slashes > ("///") to > different permutations of the pathname. > > > Can anybody tell me where I'm going wrong here? Do I need to be > looking > at some kind of ftp solution? > > Remove the "file" from the location. > That's only needed on your local machine and not allowed in html. > > <a href="path1/path2/filename.jpg"> > > This assumes that path1 is in the same directory as the html file is. > otherwise use <a > href="http://www.domain.com/path1/path2/filename.jpg"> If you read his question properly you will find that he is trying to make an intraweb for use on his local machine. |
|
|
|
#4 |
|
Posts: n/a
|
Mark Adams wrote:
> I've never done any html coding on a linux platform, but a little with > Windows. I'm trying to put together a homepage for my intranet that my > kids can use. Server is Mandrake 9.2 with Apache 2.0.47. The other > machines are either WinXP Pro or Win2K Pro. > > I want to be able to load a file directory of my public share in an > html page. I can see the directory from any machine with > "file://adamsmdk/mnt/nt3/shared" in a browser address field from any > machine on the LAN (IE 6 or Netscape 7.1). But when I code this into > an html page: > > <a href="file://adamsmdk/mnt/nt3/shared"><img > src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" > height="32" border="0">Access local file stores.</a> > > I get nothing. The browser doesn't respond at all. I've diddled with > the tag trying everything I can think of from more slashes ("///") to > different permutations of the pathname. > > Can anybody tell me where I'm going wrong here? Do I need to be > looking at some kind of ftp solution? > > Thanks. Hi Mark Try <a href="http://123.123.123.123/mnt/nt3/shared"><imgsrc="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" height="32" border="0">Access local file stores.</a> Where 123.123.123.123 is the IP address of the machine you are trying to access on the network. |
|
|
|
#5 |
|
Posts: n/a
|
Nik Coughin wrote:
> Mark Adams wrote: >> I've never done any html coding on a linux platform, but a little >> with Windows. I'm trying to put together a homepage for my intranet >> that my kids can use. Server is Mandrake 9.2 with Apache 2.0.47. The >> other machines are either WinXP Pro or Win2K Pro. >> >> I want to be able to load a file directory of my public share in an >> html page. I can see the directory from any machine with >> "file://adamsmdk/mnt/nt3/shared" in a browser address field from any >> machine on the LAN (IE 6 or Netscape 7.1). But when I code this into >> an html page: >> >> <a href="file://adamsmdk/mnt/nt3/shared"><img >> src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" >> height="32" border="0">Access local file stores.</a> >> >> I get nothing. The browser doesn't respond at all. I've diddled >> with the tag trying everything I can think of from more slashes >> ("///") to different permutations of the pathname. >> >> Can anybody tell me where I'm going wrong here? Do I need to be >> looking at some kind of ftp solution? >> >> Thanks. > > Hi Mark > > Try <a > href="http://123.123.123.123/mnt/nt3/shared"><imgsrc="/icons/hrddrv.gif" > name="Graphic2" align="left" width="32" height="32" border="0">Access > local file stores.</a> > > Where 123.123.123.123 is the IP address of the machine you are trying > to access on the network. Except you would want it to be more like http://123.123.123.123/shared, with shared being a virtual directory pointing at adamsmdk/mnt/nt3/shared. Don't know how you would do that in Apache. |
|
|
|
#6 |
|
Posts: n/a
|
Thanks for the info Nik. See below.
Nik Coughin wrote: > Nik Coughin wrote: > >>Mark Adams wrote: >> >>>I've never done any html coding on a linux platform, but a little >>>with Windows. I'm trying to put together a homepage for my intranet >>>that my kids can use. Server is Mandrake 9.2 with Apache 2.0.47. The >>>other machines are either WinXP Pro or Win2K Pro. >>> >>>I want to be able to load a file directory of my public share in an >>>html page. I can see the directory from any machine with >>>"file://adamsmdk/mnt/nt3/shared" in a browser address field from any >>>machine on the LAN (IE 6 or Netscape 7.1). But when I code this into >>>an html page: >>> >>><a href="file://adamsmdk/mnt/nt3/shared"><img >>> src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" >>> height="32" border="0">Access local file stores.</a> >>> >>>I get nothing. The browser doesn't respond at all. I've diddled >>>with the tag trying everything I can think of from more slashes >>>("///") to different permutations of the pathname. >>> >>>Can anybody tell me where I'm going wrong here? Do I need to be >>>looking at some kind of ftp solution? >>> >>>Thanks. >> >>Hi Mark >> >>Try <a >>href="http://123.123.123.123/mnt/nt3/shared"><imgsrc="/icons/hrddrv.gif" >>name="Graphic2" align="left" width="32" height="32" border="0">Access >>local file stores.</a> >> >>Where 123.123.123.123 is the IP address of the machine you are trying >>to access on the network. > > > Except you would want it to be more like http://123.123.123.123/shared, with > shared being a virtual directory pointing at adamsmdk/mnt/nt3/shared. Don't > know how you would do that in Apache. > > Right. When I set it up that way I get a "404 File not Found". I don't know what to do about it either. I'm off to find an Apache resource. Thanks again. -- Mark E. Adams, 2004 -- drop the "dot" to email me. CONSIDER: ===========---------,,,,,,,,,............. . . . . . Support Bingo, keep Grandma off the streets. =====================---------,,,,,,,,,............. . . . . . |
|
|
|
#7 |
|
Posts: n/a
|
"Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message news:rDCVb.38582$... > Richard wrote: > > Mark Adams wrote: > > > > > I've never done any html coding on a linux platform, but a little > > with > Windows. I'm trying to put together a homepage for my > > intranet that my > kids can use. Server is Mandrake 9.2 with Apache > > 2.0.47. The other > machines are either WinXP Pro or Win2K Pro. > > > > > I want to be able to load a file directory of my public share in > > an html > page. I can see the directory from any machine with > > > "file://adamsmdk/mnt/nt3/shared" in a browser address field from > > any > machine on the LAN (IE 6 or Netscape 7.1). But when I code > > this into an > html page: > > > > > <a href="file://adamsmdk/mnt/nt3/shared"><img > > > src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" > > > height="32" border="0">Access local file stores.</a> > > > > > I get nothing. The browser doesn't respond at all. I've diddled > > with > the tag trying everything I can think of from more slashes > > ("///") to > different permutations of the pathname. > > > > > Can anybody tell me where I'm going wrong here? Do I need to be > > looking > at some kind of ftp solution? > > > > Remove the "file" from the location. > > That's only needed on your local machine and not allowed in html. > > > > <a href="path1/path2/filename.jpg"> > > > > This assumes that path1 is in the same directory as the html file is. > > otherwise use <a > > href="http://www.domain.com/path1/path2/filename.jpg"> > > If you read his question properly there's your problem. |
|
|
|
#8 |
|
Posts: n/a
|
Mark Adams wrote:
> Right. When I set it up that way I get a "404 File not Found". I don't > know what to do about it either. I'm off to find an Apache resource. You want to use an "Alias" in /etc/httpd/conf/commonhttpd.conf A line like: Alias /shared/ /mnt/nt3/shared/ Will set 'http://localhost/shared/' to point to '/mnt/nt3/shared/'. -- Toby A Inkster BSc (Hons) ARCS Contact Me - http://www.goddamn.co.uk/tobyink/?page=132 |
|
|
|
#9 |
|
Posts: n/a
|
> Except you would want it to be more like http://123.123.123.123/shared,
with > shared being a virtual directory pointing at adamsmdk/mnt/nt3/shared. Don't > know how you would do that in Apache. Wouldn't it be easier just to make a symbolic link? Or is that on one of the windows boxes? Jeff > > |
|
|
|
#10 |
|
Posts: n/a
|
Nik Coughin wrote:
> Richard wrote: >> Mark Adams wrote: >> > >> I've never done any html coding on a linux platform, but a little > with >> Windows. I'm trying to put together a homepage for my >> intranet that my > kids can use. Server is Mandrake 9.2 with Apache >> 2.0.47. The other > machines are either WinXP Pro or Win2K Pro. >> > >> I want to be able to load a file directory of my public share in >> an html > page. I can see the directory from any machine with > >> "file://adamsmdk/mnt/nt3/shared" in a browser address field from > any >> machine on the LAN (IE 6 or Netscape 7.1). But when I code >> this into an > html page: >> > >> <a href="file://adamsmdk/mnt/nt3/shared"><img > >> src="/icons/hrddrv.gif" name="Graphic2" align="left" width="32" > >> height="32" border="0">Access local file stores.</a> >> > >> I get nothing. The browser doesn't respond at all. I've diddled > with >> the tag trying everything I can think of from more slashes >> ("///") to > different permutations of the pathname. >> > >> Can anybody tell me where I'm going wrong here? Do I need to be > looking >> at some kind of ftp solution? >> >> Remove the "file" from the location. >> That's only needed on your local machine and not allowed in html. >> >> <a href="path1/path2/filename.jpg"> >> >> This assumes that path1 is in the same directory as the html file is. >> otherwise use <a >> href="http://www.domain.com/path1/path2/filename.jpg"> > If you read his question properly you will find that he is trying to make > an intraweb for use on his local machine. Even so, the file:// is not really needed. The html looks at the directory path and sees that there is no other destination possible, so it assumes that the source is local and therefor seeks out the path from within it's current location. Regardless of the fact it is on the internet server or a local machine. using http://www simply tells html that the source will be from a domain name. That domain name could also be your computer. |
|