http://mydomain.local
But it only works on the local XAMPP computer. I'd like to allow another computer in the same LAN to access the website. I've configured the other computer hosts file to contain line:
192.168.3.149 mydomain.local
where 192.168.3.149 is the XAMPP computer IP address. But after typing the http://mydomain.local on the other computer browser, after pressing enter, the address becomes: http://mydomain.local/xampp and some strange page opens. (by the way, this is the same page which would open on the localhost XAMPP computer after typing http://localhost/xampp in its browser address). So I would conclude that the other computer reaches the XAMPP computer, but for some reason, instead of going to the mydomain.local host, it goes to xampp default page.
So far, I have done this:
Changed I:\xampp\apache\conf\extra\httpd-xamp.conf file to contain this (see "Allow from" containing 192.168.3 - it should allow access from the whole subnet):
- 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 ::1 127.0.0.0/8 192.168.3
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
On my XAMPP computer, I have the following configuration in I:\xampp\apache\conf\extra\httpd-vhosts.conf:
- Code: Select all
NameVirtualHost mydomain.local:80
<VirtualHost mydomain.local:80>
ServerAdmin postmaster@dummy-host2.localhost
DocumentRoot "I:/xampp/htdocs/myphpapp"
ServerName mydomain.local
ServerAlias mydomain.local
ErrorLog "logs/mydomain.local-error.log"
CustomLog "logs/mydomain.local-access.log" combined
<Directory "I:/xampp/htdocs/myphpapp">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I don't know what else to check. Please help.