I'm trying to set up a local install of a PHP application. Everything works in WAMP server except one thing. The application is set up so that different URL's can be configured to access different parts with different user permissions. So to emulate this on the local server I need to use a custom URL. These are configured in the application database. Here I have set up site.loc as the secondary URL in the database. I tried adding the following line to my hosts file (Windows 10):
127.0.0.1 site.loc
I've added this to httpd-vhosts.conf
<VirtualHost *:80>
ServerName site.loc
DocumentRoot "c:/wamp/www"
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I've also made sure this is uncommented in httpd.conf Include conf/extra/httpd-vhosts.conf
But it just tells me the site can't be reached. I'm assuming that there is nothing wrong with the application itself, but that the problem is in the routing.
Am I missing a step?