On Thu, Jul 31, 2003 at 09:22:12PM +0800, Myuran Pathmanathan wrote: > I have three web sites running in my server using virtual hosts. I have > a Dlink DSL 504 router. I am unable to see the web pages from the local > network. I can only see the default page with the local IP address. When > ever I use the www.mydomain.com.au, it says connection refused.
Smells to me like the router isn't doing it's NAT job properly. Let me describe what I think your network is: The DSL line has a single public IP address assigned. The 504 is configured to NAT onto that address, and to port forward 80 to the private IP'd linux box. The DNS for your VHosted domains is the public IP. If this is the case, you need to get the 504 to NAT the source IP for web requests to the public IP to the private address of the router if the source address is your local network, because what will happen otherwise is that the webserver will see a local source address and send it straight back (as itself), which will confuse the hell out of the requesting machine, because it's talking to <public IP> not <private IP>. How to do this mapping on a 504 I have no idea, because my routers are Linux boxes. I could give you IPTables rules to do it, but that wouldn't help. Of course, if your network setup is different, then this is all bollocks. In which case, more network description would be desirable. - Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
