Jump to content

Apache File Sharing Across Network


Poddy88

Recommended Posts

Ok im quite new to this, set up a basic apache web server which connected to a file within the same computer and uses a password, thats what iv done. But i was wondering instead of using a file on the current computer can i use one on another??? and if i can how would i implement this in the httpd.conf file?? Thanks

Link to comment
https://forums.phpfreaks.com/topic/143605-apache-file-sharing-across-network/
Share on other sites

Apache is simply at http server. At its simplest it is designed to serve local files via http. If you want to serve remote files you would need to network mount the directories the files are in onto the machine hosting apache.

 

From there apache could serve these files as if they where local.

 

This really has nothing to do with apache.

 

If this isn't what you want to do we'll need more details.

Ok I see what your saying and i have done that, im now using shared files but i dont think im using the location properly when entering into the httpd file, this is what i entered

 

DocumentRoot "//Tom-hycsjwjsoh0/shareddocs/Project"

 

<Directory "//Tom-hycsjwjsoh0/shareddocs/Project">

 

When i try to restart apache it returns with an error

Yeah, thorpe is right.  \\ is registered as the file sharing protocol, and it is handled correctly, but // is not.

 

 

Also, you will probably need to map a drive to use it in Apache.  Not sure which file functions Apache uses, so I'm not sure if it handles \\.

 

 

 

So pretty much, I've repeated thorpe's two posts ;p.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.