Answer the question
In order to leave comments, you need to log in
In what directory is it better to place files on the server (php, node)?
Now I'm playing with VPS and I'm interested in such a question in which folder is it better to place web server scripts? or doesn't matter?
Answer the question
In order to leave comments, you need to log in
In principle, you can put it anywhere, UNIX-way and all that :-) But in general it is customary to put it in /var/www/domain.
Moreover, if the applications used allow, it is advisable to put the scripts so that they lie separately from the static and cannot be accessed from the outside in any way. For example, scripts are directly in /var/www, while statics are in /var/www/static and in the DocRoot of the server exactly /var/www/static.
Is /var/www/html out of fashion these days? Or is today a special day? ;-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question