Re: SSh, Apache implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux