I would like to use devilbox for the development of mutliple projects. All projects are different, one is Symfony, another one is home made and again some others are existings CMS systems. So every project has its own HTTP_DOCROOT_DIR.
Also I want to be able to control the domain name and not use the domainname just based on the folder name. Why? A lot of the folders already hold the TLD in the folder, meaning I get domainnames like
I’m using Apache24 and tried te following:
TLD_SUFFIX=test # Emtpy docroot so it can be fully controlled by vhost HTTPD_DOCROOT_DIR=
project folder .devilbox/apache24.yaml
vhost: | <VirtualHost __DEFAULT_VHOST__:__PORT__> ServerName __VHOST_NAME__ ServerAlias www.customdomain.test Protocols __HTTP_PROTO__ CustomLog "__ACCESS_LOG__" combined ErrorLog "__ERROR_LOG__" __REDIRECT__ __SSL__ __VHOST_DOCROOT__ __VHOST_RPROXY__ __PHP_FPM__ __ALIASES__ __DENIES__ __SERVER_STATUS__ # Custom directives __CUSTOM__ </VirtualHost> vhost_type: # Normal vHost (-p) docroot: | # Define the vhost to serve files DocumentRoot "/shared/httpd/mycustomdomain.com" <Directory "/shared/httpd/mycustomdomain.com"> DirectoryIndex __INDEX__ AllowOverride All Options All RewriteEngine on RewriteBase / Order allow,deny Allow from all Require all granted </Directory>
Running this and going to www.customdomain.test will show me the default devilbox page (like if you visit 127.0.0.1).
I can’t get the VHOST working properly.
I also don’t know how to use the variables
__DOCUMENT_ROOT__ properly, where is (or should) the
conf.yml file be located?