Virtual Host
Okay, I'm sorry we've just called this Virtual Host, however that is exactly what it is, however to normal humans like ourselves, this is the configuration file which allows our domain (hostname) to show Ticaga.
You need to create a DNS Record for the subdomain (support.ticaga.com) if you aren't using your own domain for Ticaga (ticaga.com). We recommend a Subdomain for Ticaga to keep it away from your main website just for security, we recommend the same for a billing system like Blesta, WHMCS or ClientExec, keep them separate from Ticaga and your website.
These folders don't come by default in an operating system but we like them because of usability:
sudo mkdir /etc/httpd/sites-available /etc/httpd/sites-enabled
Now we've made the folders, lets include the configurations in the sites-enabled folder:
echo "IncludeOptional sites-enabled/*.conf" >> /etc/httpd/conf/httpd.conf
What this does is allows Apache to read our configuration file in sites-enabled, we don't read the available as they aren't all enabled.
Let's make our ticaga configuration, in this example we'll use demo.ticaga.com:
sudo nano /etc/httpd/sites-available/demo.ticaga.com.conf
Time to paste in the configuration and edit as you require:
<VirtualHost *:80>
ServerName demo.ticaga.com
DocumentRoot /var/www/ticaga/public
<Directory /var/www/ticaga/public>
Options FollowSymlinks
AllowOverride All
Require all granted
<Files .env>
Order allow,deny
Deny from all
</Files>
</Directory>
ErrorLog /var/log/httpd/demo.ticaga.com_error.log
CustomLog /var/log/httpd/demo.ticaga.com.log combined
</VirtualHost>
You need to keep the /public folder because if you don't you'll expose all the Laravel files in the Ticaga installation.
Now we can symlink the new configuration to the enabled folder to enable your configuration.
sudo ln -s /etc/httpd/sites-available/demo.ticaga.com.conf /etc/httpd/sites-enabled/demo.ticaga.com.conf