There are a few things in your vhost that may need some attention as Apache and MySQL really don't like spaces in file or folder names.
Try and rename the Web Sites folder to lower case and remove the space - Apache is case sensitive so any slip ups will cause an error not to mention confusion for you, try and keep all things lower case.
Here is an amended container, that I have assumed you did not provide the full set and you should always have the default first container set to localhost
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
</VirtualHost>
<VirtualHost *:80>
ServerName xxx.test
DocumentRoot "C:/websites/XXX/www"
<Directory "C:/websites/XXX/www">
Options Indexes FollowSymLinks +Includes
AllowOverride All
AddHandler server-parsed .html .htm .shtml
AddType text/html .html .htm .shtml
AddOutputFilter INCLUDES .html .htm .shtml
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I have just changed the extension order to see if that helps but if not then create a separate line for each extension for example:
AddHandler server-parsed .html
AddHandler server-parsed .htm
AddHandler server-parsed .shtml
etc.
You have added xxx.test to the Windows HOSTS file?
To see if there any issues with the vhost configuration file then in the
xampp-control-3-beta.exe control panel found in the xampp folder click on the XAMPP-Shell button and type
httpd.exe -S and if you don't understand the results then in the top right of the console window is a small icon that holds the Edit functions that you can use to mark and copy them to this topic.
There should be no reason that I can see for the SSI settings I posted not working except perhaps the order of the file extensions and to eliminate that possibility create that separate line for each file extension for all directives after testing the single lines with the changed order.
Good luck.