How to configure slim application to use existing apache

Hi there. This is day one… hour one with Slim.
I’m following the tutorial found here:
Right now to launch the test application, I have to do this in my browser:


How can I configure apache so that when using my slimtestapp, you don’t need to include the “src/public” in the url? I want to be able to do something like this:


In /etc/apache2/sites-enabled/ i have a 000-default.conf file which contains the following:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined


You have to update the DocumentRoot to /var/www/html/src/public

But that will impact all other applications too no? I only have the one file in /etc/apache2/sites-enabled.

Yes it will, if you have multiple websites hosted you must use vhosts.