/usr/local/www/blog with nginxI think, in /var is the classical place.In like to put it in /var/www/<website>/ because to me it makes sense to put the data in /var/ as my mail and printer files also live there.
What directory do people use on apache for DocumentRoot?
/srv/www on openSUSE (iirc ftp defaults there too); I like /srv more than /var for serving contentAn idea can be to put it in a home directory of a user www to which some auxiliary servers can chroot.I had websites in/srv/wwwon openSUSE (iirc ftp defaults there too); I like/srvmore than/varfor serving content
Makes sense but /srv/ is not in hier(7) and I dislike adding more top-level directories. Further more, /var/www/ is shorter than /usr/local/www/ and hier(7) mentions /usr/local/ is for programs installed by pkg(7) and ports(7) which does not include website data in my opinion.I had websites in/srv/wwwon openSUSE (iirc ftp defaults there too); I like/srvmore than/varfor serving content
Neither is /var/www (it's typical on Linux though).Makes sense but /srv/ is not in hier(7)
how do you make the paths green?


To make such a change is it best to add something like this to /usr/local/etc/apache24/includes rather that the main conf file?Don't use /usr/local/www/apache24/data, that's all I can say. It's where Apache's default "It works" website lives, leave that as-is. Same for /usr/local/www/nginx/ with nginx.
I like /usr/local/www/<mywebsite>/, for example /usr/local/www/example.com/, keeps everything nice and separated. It's also independent of the web server being used.
DocumentRoot "/usr/local/www/$website"
<Directory "/usr/local/www/$website">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
Basic virtual host stanza, you put this in /usr/local/etc/apache24/Includes/:something like this to /usr/local/etc/apache24/includes rather that the main conf file?
<VirtualHost *:80>
ServerName mywebsite.example.com
DocumentRoot /usr/local/www/mywebsite
<Directory /usr/local/www/mywebsite>
Require all granted
</Directory>
</VirtualHost>
_default_:80 instead of *:80 in the VirtualHost definition I showed above. # grep -i php httpd.conf # diff -r /zroot/iocage/jails/TEST3/root/usr/local/etc /zroot/iocage/jails/TEST4/root/usr/local/etcOnly in /zroot/iocage/jails/TEST4/root/usr/local/etc/apache24/Includes: php.conf
Only in /zroot/iocage/jails/TEST3/root/usr/local/etc/apache24/modules.d: 001_php.conf
Only in /zroot/iocage/jails/TEST4/root/usr/local/etc: fonts
Only in /zroot/iocage/jails/TEST4/root/usr/local/etc/php: ext-20-gd.ini
Only in /zroot/iocage/jails/TEST4/root/usr/local/etc/php: ext-20-gd.ini.sample
Binary files /zroot/iocage/jails/TEST3/root/usr/local/etc/sasldb2.db and /zroot/iocage/jails/TEST4/root/usr/local/etc/sasldb2.db differ
DirectoryIndex of Apache only looks for index.html, if it doesn't find it it's going to show the contents of that directory. You typically set this to DirectoryIndex index.html index.php for PHP applications.