Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Serving??

Status
Not open for further replies.

SoloCon

Technical User
Sep 18, 2003
2
US
I am new to Apache server and am trying to do allow file serving so when someone clicks on a fle on my server, if will prompt for download.

I am using FrontPage 2002 (WYSIWYG) and linking to the file it self. Everyone can get the web page but when they click on the file to download it, it comes up saying...

The requested URL /Program Files/Apache Group/Apache2/htdocs/my pics.zip was not found on this server.


--------------------------------------------------------------------------------

Apache/2.0.47 (Win32) Server at (MY IP) Port (My Port)



I get this with any computer except for the computer that is acting as a server. The server runs the page just as it should be. Meaning if I type the url from my server and try to dl the same file, it works!

I am new to apache and I "THINK" its a issue with my apache settings as Front Page is linking to the file (on the same server)

Any info on this would help a ton....

Thanks
 
Why is there a space in the filename/URL?

You are able to access the file locally because you are pulling it from:
C:/Program Files/Apache Group/Apache2/htdocs/my pics.zip

Your remote users will see it as:
pics.zip

but you have it referenced as:
Files/Apache Group/Apache2/htdocs/my pics.zip

Fix your HTML link references and make a practice of not using spaces in file names.



- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
The requested URL /Program Files/Apache Group/Apache2/htdocs/mypics.zip was not found on this server.



This is what I am getting from my 2nd computer (same network behind the router)

And its also the same thing 2 other people are getting thats outside the network.

I dont think its a problem but I am on port 8080 ( am forwording these ports)
 
"/Program Files/Apache Group/Apache2/htdocs/mypics.zip"

The remote computers do not have access to this path! This path is only valid for the machine that it's on. The remote machines have no idea how to get there.

Assuming that your page being served is in the htdocs folder, the html code should look something like this:
Code:
<a href=&quot;mypics.zip&quot;>Here are the pics<a>

If want to use the absolute path to the file, it could be:
Code:
<a href=&quot;[URL unfurl="true"]http://www.domainname/somefolder/mypics.zip&quot;>Here[/URL] are the pics<a>
Where 'somefolder' is relative to the webserver's document root - probably htdocs.
 
Oops, all the above should be my pics instead of mypics.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top