Testing sites

Discussion in 'General' started by jimmie, May 22, 2023.

  1. jimmie

    jimmie Member

    Moving sites to new server, how to test sites on local ip before moving to static ip
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. jimmie

    jimmie Member

    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
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    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.
     
    Last edited: May 23, 2023
  5. jimmie

    jimmie Member

    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
     
  6. jimmie

    jimmie Member

    i have new computer at my home, and old server at store
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    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.
     
  8. jimmie

    jimmie Member

    i can only get to webserver(putty) with 192.168.0.136 ispconfig is 192.168.0.136:8080
     
  9. jimmie

    jimmie Member

    i type jnsflooringandsupplies.com and http:// shows up, but site does not show
     
  10. jimmie

    jimmie Member

    figured it out thankyu
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    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.
     
  12. jimmie

    jimmie Member

    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
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    * 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.
     
    ahrasis likes this.
  14. jimmie

    jimmie Member

    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.
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
    ahrasis likes this.
  16. jimmie

    jimmie Member

    it is working with *
     
    till likes this.

Share This Page