Using DocumentRoot as a variable in other sections of Apache config file
Is there a way to use the DocumentRoot as a variable in further sections of a site's config file in Apache?
Something as below:
DocumentRoot /var/www/myNiceRoot
<Directory $DocumentRoot/mySubDir> ... </>
You can define a variable and then use that
Define droot /var/www/html
and then use it later
DocumentRoot ${droot}/site1
and so on.