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> ... </>
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community