Can't access XAMPP over LAN

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Can't access XAMPP over LAN

Postby Matteo » 26. August 2011 22:29

(This post is in English, even though I can only see the board in German. Any ideas on how to fix this?)

I have a local LAN at my house that I have set up a testing server on ("\\testing\"). I installed XAMPP for Windows XP and it works fine. I have set up virtual hosts on the test server according to the following httpd-vhosts config file:

Code: Select all
     NameVirtualHost *:80  ##This was un-commented by me
     ...
     <VirtualHost *:80>
     ServerAdmin webmaster@domain.test
     DocumentRoot C:/xampp/htdocs/public_html
     ServerName domain.test
     ServerAlias domain.test
     <Directory "C:/xampp/htdocs/public_html">
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
     </Directory>
     </VirtualHost>


I also configured the "hosts" file in
Code: Select all
C:\Windows\system32\drivers\etc\
on my development machine (same LAN) to show the following:

Code: Select all
127.0.0.1     localhost
192.168.1.6     domain.test


The testing machine can see the index.php file by typing in http://domain.test, a successful test.

However, and this is where I am having a problem, when I try to access the test site by typing in http://domain.test I get a Page Not Found error from my ISP (Comcast). However, if I type in the IP address of 192.168.1.6, I get to the index.php page fine.

Any suggestions on how I can get the development machine to recognize the http://domain.test? I have seen this work before, so I know it is possible.
Matteo
 
Posts: 2
Joined: 26. August 2011 22:12

Re: Can't access XAMPP over LAN

Postby WilliL » 27. August 2011 11:01

maybe I'm wrong, but I think you have to edit hosts file on client machines if you have no name server installed (to resolve dn to ip address)
Willi
WilliL
 
Posts: 661
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: Can't access XAMPP over LAN

Postby Matteo » 28. August 2011 14:57

WilliL wrote:maybe I'm wrong, but I think you have to edit hosts file on client machines if you have no name server installed (to resolve dn to ip address)


Both machines are set up to handle custom DN requests.
The testing (server) machine has the hosts file set to [127.0.0.1 domain.test]
The development (client) machine has the hosts file set to [192.168.1.6 domain.test] which is the specific IP address for the machine on the network (LAN).

If I type in http://192.168.1.6/index.php I see the correct page, but when I type in domain.test/index.php I get a 404 error. Any other ideas?
Matteo
 
Posts: 2
Joined: 26. August 2011 22:12


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 13 guests