C
C
CloudMonster2014-03-27 05:16:02
linux
CloudMonster, 2014-03-27 05:16:02

How to create virtual hosts with php?

Hello!
I am developing a file storage. And I want to register, after which a virtual host is created on the server.
For example:
User Vasya registered on the site -> the /www/vasya folder appears
And so that this user can only see his own folder, and log in via FTP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2014-03-27
@CloudMonster

Well, that's not the right approach for me. It would be more logical to use system functions to add FTP users for example. And for them, under a password, give files with Basic Auth.
And by the way, after such an addition (config editing), Apache restart is not needed, is it?
But rewrites are a more sensible suggestion and + give files through an access check in the script itself, i.e. you can't download the file directly from the web.
And we create ftp as a feature for the advanced.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question