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
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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.