I just did the update and now partially thought about the directory structure of the web server for the local workstation for linux web development. Running multiple hosts and various projects. Where is better to place all server docroots? / Var / WWW? / SRV? / WWW? I plan to do this as a separate section - can it be good for backup? :) I look forward to your thoughts on this.
For development, you can place the files anywhere - perhaps in your home directory (you can allow Apache to serve files from your home directory by UserDir enabledsetting Apache in the settings: see http://httpd.apache.org/docs/2.1/mod/ mod_userdir.html ).
UserDir enabled
For production /srv/www, this is probably the best place for files; this is (freely) defined in the FHS: http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM
/srv/www
In addition, /srv/wwwusually (of course, on Fedora, for example) is one of the places that SELinux sees as web content, which allows Apache to read files.
/srv . , , , .
/srv
This is well explained in the File System Hierarchy Standard . He must go to /srv.
Source: https://habr.com/ru/post/1750284/More articles:AppEngine: Is it possible to write a dynamic property (db.Expando) with the name selected at run time? - pythonWhy does the behavior of Response.Write change in this scenario? - c #simple question: the difficulty of declaring and using a variable - asp.net-mvcSimulation software for designing a network serialization protocol - designcomparing dates in C # with zero in mind - c #Do the mouse pointer make a hyper jump? - c #Why scripts are given .phtml extension when working with zend framework? - phpProblem with virtual directory for cruise control.net - cruisecontrol.netHow to skip extra lines before the header of a tab delimited file in R - rDatabase abbreviation - sqlAll Articles