Big security hole:
puttsy wrote:Does the <locationmatch> look correct to be used to access these pages from outside my network?
This is a security measure for the folders listed, which are XAMPP system folders and should not be able to be accessed other than from localhost.
You should put it back to the default settings or you could open a big hole in your security - it has no effect on your other issues.
For access from other locations you should specify the IP address of who will have access instead of a blanket Allow from all
- Code: Select all
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.0.0/16
Allow from 123.123.123.123
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
You can add who you trust but not everyone on the Internet, big mistake.
Here is a httpd-vhosts.conf and HOSTS file based on the info you provided to try
- Code: Select all
NameVirtualHost *:80
##----------localhost--------------------
<VirtualHost *:80>
ServerName localhost
##make sure the localhost index.php is in this folder
DocumentRoot "C:/xampp/htdocs"
</VirtualHost>
##----------wordpress--------------------
<VirtualHost *:80>
ServerName wordpress.mydomain.com
ServerAlias www.wordpress.mydomain.com
DocumentRoot "C:/xampp/htdocs/wordpress"
ServerAdmin me@mydomain.com
</VirtualHost>
##----------wiki-------------------------
<VirtualHost *:80>
ServerName wiki.mydomain.com
ServerAlias www.wiki.mydomain.com
DocumentRoot "C:/xampp/htdocs/wiki"
ServerAdmin me@mydomain.com
</VirtualHost>
##---------SMB.forum---------------------
<VirtualHost *:80>
ServerName forum.mydomain.com
ServerAlias www.forum.mydomain.com
##No trailing slash here
DocumentRoot "C:/xampp/htdocs/forum"
ServerAdmin me@mydomain.com
</VirtualHost>
Save the file and restarts Apache after adding each vhosts
Best method is not to add all the vhosts at once but to add one at a time testing each is working before adding another.
I prefer to add the Directory directive for each
vhost then I can configure each
vhost's Options etc. but at this stage the Directory directive in use will be that for htdocs in the httpd.conf file.
- Code: Select all
127.0.0.1 localhost
127.0.0.1 wiki.mydomain.com
127.0.0.1 www.wiki.mydomain.com
127.0.0.1 forum.mydomain.com
127.0.0.1 www.forum.mydomain.com
127.0.0.1 phpbb.mydomain.com
127.0.0.1 www.phpbb.mydomain.com
127.0.0.1 wordpress.mydomain.com
127.0.0.1 www.wordpress.mydomain.com
See how that goes and if you still have problems follow the add one at a time suggestion.
Why don't you use the version 3 control panel found in the xampp installation folder:
xampp-control-3-beta.exe
Latest version download link in my signature, simply extract to the xampp installation folder and overwrite when asked then right click to run as administrator and to create a shortcut for easier access, to the desktop for example.
It is much improved over the 2.5 version with many great new features.
Good luck.