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: http://www.slimframework.com/docs/tutorial/first-app.html.
Right now to launch the test application, I have to do this in my browser:

http://localhost/slimtestapp/src/public/index.php/hello/johndoe

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:

http://localhost/slimtestapp/hello/johndoe

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

Thanks.

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.