SSh, Apache implementation
John Summerfied
debian at herakles.homelinux.org
Wed Nov 30 15:54:23 UTC 2005
STYMA, ROBERT E (ROBERT) wrote:
> ementation
>
>>
>>Fellows members,
>>I 'll try to explain my problem clearly.
>>
>>I have two computer.
>>The first one is called : titanic
>>The second one: databse
>>
>>Database has some files/folders who are located in /home/documents.
>>Apache is not installed one this one but Samba is and it's
>>working properly.
>>
>>
>>Titanic as apache installed and running.
>>
>>What i want is when one one my client will connect to titanic it's
>>show the folder /home/documents in databse . And the client will be
>>able to browse the folder and dowload the file if he want to. But i
>>don't want apache runnig on atabse due to security reason...
>>
>>
>>Do you have any idea how i can implement this thing ?
>>
>
> Assuming both machine are running Linux, using NFS instead of Samba
> would be an advantage. You would mount /home/documents on the titanic
> machine and to apache, they would appear as local files available for
> serving. It would further simplify things if you did the mount in in
> directory structure from which your apache server serves.
>
> The exportfs command can be used on databse to export the files. You will
> also want to update /etc/exports. There are man pages for exportfs and exports
> which have the details.
>
> Sample:
> cat /etc/exports
> /herc *.mydomain.com(rw,sync,insecure)
> /home/documents *.mydomain.com(rw,sync,insecure)
> # (your options may vary)
>
> On the apache server, you can use the mount command to do the mount.
>
> mount -t nfs titanic:/home/documents /var/www/html/databse
>
> (/var/www/html/databse must exist and be a directory)
You may also find the need to have a little discussion with selinux. If
it magically doesn't work, look for selinux messages.
--
Cheers
John
-- spambait
1aaaaaaa at computerdatasafe.com.au Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
do not reply off-list
More information about the fedora-list
mailing list