File access from web server to secondary storage server

siraj.mussafirr

siraj.mussafirr

@sirajmussafirr-UMGx7y Oct 25, 2024
I'm developing a website for my friend. I'm stuck in a place where i need to create a folder -in a second server not directly accessible for public-and populate it with some config files when a user sign up.
To be clear the web server holds only the php files to serve the client request. it is the second server that is used to store important user credentials like user uploaded files.

Can anyone give an insight on how to do? Its possible by SSH. but is there an easier way using just an HTTP server like apache? Thanks in advance for the help and support

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Oct 24, 2012

    If you only need to hide your folder from public and search engine bots, you can use .htaccess file to control the access. I'm not exactly sure about the 'second server' you're talking about. Could you explain the situation a bit in more detail?
  • siraj.mussafirr

    siraj.mussafirr

    @sirajmussafirr-UMGx7y Oct 24, 2012

    The client needs to keep all the uploaded file into a separate server machine that is always connected to the web server. He doesnt want to clutter the web server with the user file and just need to fetch it from that separate machine when a user request the file.
    An easier way to explain this problem is that the client needs to back up the files into a new system periodically. I wish to get any kind of http solution( hoping it to be easier and managible than SSH)
  • siraj.mussafirr

    siraj.mussafirr

    @sirajmussafirr-UMGx7y Nov 6, 2012

    I guess CDN is the one I was looking for.. thanks Admin 😀