V
V
vizaville2015-04-01 22:24:34
linux
vizaville, 2015-04-01 22:24:34

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

3 answer(s)
V
Valery Ryaboshapko, 2015-04-01
@vizavill

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.

V
Vladimir Martyanov, 2015-04-01
@vilgeforce

Is /var/www/html out of fashion these days? Or is today a special day? ;-)

I
index0h, 2015-04-01
@index0h

This is usually /var/www/html/{main.domain.of.site.here}/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question