jnsflooring is live on other server what do i put in browser to see new server site this is my host file. 127.0.0.1 localhost 127.0.0.1 server1.computer-hosting.com server1 192.168.0.136 www.jnsflooringandsupplies.com jnsflooringandsupplies.com # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
The faqforge article tries to explain just that. Is the hosts file you show from the web server? However, the fagforge article advices to modify hosts file on the workstation, that is on the computer where you sit using keyboard and looking at display.
i have modified my host file on my windows machine and added this # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost 192.168.0.136 www.jnsflooringandsupplies.com jnsflooringandsupplies.com 192.168.0.136 www.1stchoiceflooringservice.com 1stchoiceflooringservice.com # ::1 localhost all i get when i put in jnsflooringandsupplies.com or www.jnsflooringandsupplies.com or 192.168.0.136 it keeps comping up with ubuntu default page, i have four sites installed
Can you access the web server from your windows workstation, with ping or putty for example? Are you using http:// or httpS:// when accessing the websites? This has info about wrong website shown, check those issues: https://forum.howtoforge.com/threads/please-read-before-posting.58408/ Read all of that article, to rule out the usual suspects.
It would help the community and users finding this thread when troubleshooting the same problem if you revealed what you figured out and how you got it working.
when setting up sites should they be setup with the wild Card *? i had to change all sites to use the * instead of a ip address
* is the default and you should normally keep it like that. In general, never mix * and Ip on a server, as an IP is a stronger match and will fetch requests for *, no matter which domain you use. And if you use IP, then this must be the internal IP, if you are behind a NAT router. So to make it simple, just keep the default (which is *) and it works out of the box.
yes in server_config i set server ip and than i use ip on each site. that is how it is working now on old server. i believe i tried * when i first setup this server and it didnt work, so i used ip. i will try again.
Using * and IP is both fine, you just can not mix them on a server. But when using the IP and you have NAT (internal/external IP, then you must use external IP in DNS but internal IP in website settings.