I want apache to access a location which is in network that means instead of specifying a DocumentRoot from withing the server(mine is centos) i want the apache to access a directory which is on diffrent machine in my case it is a windows machine. I have a Static Ip 202.189.*.206 from where the network in being passed to the intranet now i want to keep the keep my files in a directory which is not on the centos server but on a different machine which is a windows machine
2 Answers
Step 1: mount the remote directory to a location on your server.
Step 2: interact with that folder as if it were local.
There is no step 3. :)

- 109,363
- 18
- 175
- 245
-
Is there any way i can do this without mounting the drive ? – user216476 Apr 15 '14 at 08:58
-
1No, you need to mount the filesystem. – EEAA Apr 15 '14 at 11:16
I find the Apache documentation to be an excellent source of information - you should try looking at it.
In particular for DocumentRoot it says
Syntax: DocumentRoot directory-path
Note also the link provided in the documentation to Syntax it contains valuable information too ...
directory-path The path to a directory in the local file-system beginning with the root directory as in /usr/local/apache/htdocs/path/to/.
So there is all the information you need. DocumentRoot should be a directory-path, a directory-path should be in the local file-system.
You will need to bring the remote directory into your local filesystem.

- 115,471
- 20
- 215
- 297
-
I have been continuously trying this what is mentioned on this page but i am unbale to access a directory which is not on the server – user216476 Apr 15 '14 at 08:55
-
2@user216476: You have to mount the remote directory into the local filesystem is the answer to your question above anything else is a different problem you need to solve. – user9517 Apr 15 '14 at 09:00