Poddy88 Posted February 3, 2009 Share Posted February 3, 2009 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 Quote Link to comment Share on other sites More sharing options...
trq Posted February 3, 2009 Share Posted February 3, 2009 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. Quote Link to comment Share on other sites More sharing options...
Poddy88 Posted February 3, 2009 Author Share Posted February 3, 2009 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 Quote Link to comment Share on other sites More sharing options...
trq Posted February 3, 2009 Share Posted February 3, 2009 I'm sure you should be using \ backslashes not / forward slashes. Is there any reason you don't simply run apache from the machine that has the files you want served? Quote Link to comment Share on other sites More sharing options...
corbin Posted February 4, 2009 Share Posted February 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.