mount another server

Kyo

Verified User
Joined
Jul 12, 2021
Messages
137
Hello

i have a domain.com on directadmin i have bought another vps to extend storage for a customer now i want to know how i can mount this new server ( specific folder with limited storage) with my client so he can upload his files in this vps from his directadmin

2nd i will generate SSL wildcard in DA server and will place in new vps which is just centos7 nothing else so that when my customer upload things and i will point his subdomain like https://subdomain.domain.com will not give anyone error and user can download files

anyone can please help me ?
 
Use NFS (netork file system) for that. Dont forget to set identical UID:GID in remote server. And you don't need ssl on remote server for this.
 
Oh wow you are life saviour for me

Any tutorial please or write exact step by step guide i will be really thankful to you consider storage server as server B and my main server as server A

What i have to install in server A and what i have to do in server B
Thanks in advance
 
Whatever the way but i just want he can upload files via directadmin filemanager and its ssl work like subdomain.domain.com etc.

Mounting over SSH/FTP gives a full access to a FS from a remote server, and you don't need to install extra services. You could have searched and read more docs first...

- How To Use SSHFS to Mount Remote File Systems Over SSH
- Mount remote ftp directory host locally into linux filesystem
 
@zEitEr @Zhenyapan i have used NFS because in ticket from official support of DA someone suggested as well so i setup it now please help me in it i am facing an error
everything is working fine let me explain

i have create storage server and mkdir /home/downloads and mount it with client /home/USER/public_html/downloads

when i login DA and upload files in downloads folder its appeared in storage server as well but when i access https://mydomain.com/downloads its showing me 403 error like there is nothing in directory even i have uploaded an html file and a png there
 
it was apeach error i have restarted and its fixed

now question is how i can make quota for this folder like limited its quota to 2GB something

2. how to add in fstab so next restart, it should not be problematic for me
3. how to set UID:GID
4. i am unable to delete any file but i can rename i have sset rw,no_root_squash,sync
 
Last edited:
Back
Top