To cut the long story short, I've setup a Wamp server with local virtual host for domain like sample.dev, now I've bind my static IP and port 80 to my Apache and asked the client to make some changes in his hosts file and add x.x.x.x sample.dev , I've also configured my httpd virtual host like this :

<VirtualHost *:80>
    ServerAlias sample.dev
    DocumentRoot 'webroot_directory'
</VirtualHost>

Client can reach to my web server using the direct access by ip address, but when he tries using the sample domain looks like he gets in to some infinite loop. The firewall is off too. What would be the problem?!

Thanks.

link|improve this question
feedback

1 Answer

You server's hosts file should also have "x.x.x sample.dev" line.

Use tcpdump to see if client's request reach your server (/usr/sbin/tcpdump port 80)

If not - try to replace fake domain sample.dev to something else, eg: sample.mydevtest.com

May be client somehow detect wrong hostname and trying to do something to fix it.

try to ping domain name from client computer and see if it resolve correctly

link|improve this answer
actually I'm on windows, using Apache on wamp, the client can reach to my computer but his request wont serve on my web server. – Farid Dec 26 '10 at 19:55
then wireshark, – Vitaly Nikolaev Dec 27 '10 at 4:05
client can reach your computer using fake domain name or IP ? Try to change ServerAlias to SeverName, – Vitaly Nikolaev Dec 27 '10 at 4:07
Check log file, main apache access and error log – Vitaly Nikolaev Dec 27 '10 at 4:08
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.