My website running on Xampp is having issues with my config when I visit http://api.site.com/v1 it will display stuff but it is displaying stuff what is meant to be for my clientsettings.api.
If I visit http://clientsettings.api.site.com it will display my main site when it is meant to display what api is displaying. My htdocs folder is all correct and have files in the correct place it is my vhost.
This is my config:
<VirtualHost _default_:80> DocumentRoot "D:/xampp/htdocs/gametest2/gametest2.site.com" ServerName gametest2.site.com ServerAdmin admin@site.com ErrorLog "D:/xampp/apache/logs/error.log" TransferLog "D:/xampp/apache/logs/access.log"<Directory "D:/xampp/htdocs/gametest2/gametest2.site.com"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted</Directory><FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars</FilesMatch><Directory "D:/xampp/apache/cgi-bin"> SSLOptions +StdEnvVars</Directory></VirtualHost> <VirtualHost _default_:80> DocumentRoot "D:/xampp/htdocs/gametest2/api.gametest2.site.com" ServerName gametest2.site.com ServerAdmin admin@site.com ErrorLog "D:/xampp/apache/logs/error.log" TransferLog "D:/xampp/apache/logs/access.log"<Directory "D:/xampp/htdocs/gametest2/api.gametest2.site.com"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted</Directory><FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars</FilesMatch><Directory "D:/xampp/apache/cgi-bin"> SSLOptions +StdEnvVars</Directory></VirtualHost> <VirtualHost _default_:80> DocumentRoot "D:/xampp/htdocs/gametest2/clientsettings.api.gametest2.site.com" ServerName api.gametest2.site.com ServerAdmin admin@site.com ErrorLog "D:/xampp/apache/logs/error.log" TransferLog "D:/xampp/apache/logs/access.log"<Directory "D:/xampp/htdocs/gametest2/clientsettings.api.gametest2.site.com"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted</Directory><FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars</FilesMatch><Directory "D:/xampp/apache/cgi-bin"> SSLOptions +StdEnvVars</Directory></VirtualHost>
I replaced my site name with site.com for the snippet it is my sites name in the actual config.