PDA

View Full Version : strange apache question -can it be done?


prezbedard
November 14th, 2007, 01:03 PM
ok I'm not sure this can be done but...

This is for testing. Is it possible to host website(s) using apache but have the actual dir/files on a different computer?

I'd like to setup a testing server for our development team but don't want to interupt the work by moving all the data off the current server.

So one lower end machine will be running an apache webserver for testing the sites before going live and another will hold the data for each website.

Thanks.

Bliepo32
November 14th, 2007, 01:11 PM
I am quite sure that this is possible, although I do not know how. My bet would be make a network, use a network harddrive, and mount it as /apache or something.

prezbedard
November 14th, 2007, 01:14 PM
I have everything in place. I just am not sure how do this since I have only played with apache very little i.e. I can install and get it running then stops there. So all I need is steps to make it happen. :)

prezbedard
November 15th, 2007, 10:09 PM
ok so I've read through the apache read me and config files and numerous posts I do have a better idea how it works.

Would I need samba installed on the web server to mount the dir if the sites folders and files were being stored on a windows server?

Thanks,

jflaker
November 15th, 2007, 10:25 PM
ok I'm not sure this can be done but...

This is for testing. Is it possible to host website(s) using apache but have the actual dir/files on a different computer?

I'd like to setup a testing server for our development team but don't want to interupt the work by moving all the data off the current server.

So one lower end machine will be running an apache webserver for testing the sites before going live and another will hold the data for each website.

Thanks.

I believe that this is not allowed. Even if it were, I would advise you to use local directories as your Apache directories as relying on another network resource is, for reliability reasons, not recommended.

Your best bet is to test, then move your files to production servers when they are ready for prime-time.

fry15
November 15th, 2007, 10:32 PM
you would need samba client installed on the server to access the windows file share that you would have set up on the windows server.

you can then mount the fileshare automatically by editing the /etc/fstab file. more info about how to do that can be found here:
http://web.archive.org/web/20051231035314/http://www.ubuntuguide.org/#automountnetworkfolders


hope this helps!

prezbedard
November 15th, 2007, 10:50 PM
This is all for testing anyway live stuff either goes to our website or the clients host.

thanks for the tip I was thinking I had to install the complete samba package.

I'll post back with feedback

idiotsruleintheshowerjane
November 16th, 2007, 07:09 PM
nfs with nfsmount 'might' be able to accomplish your goal. yes, agreed, nfs ain't 'secure'.

j_k