Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: Windoews 8 XAMPP setup ...\etc\hosts config ok but www.example.com doesn't redire

    Thanks for your help. I'm trying to get http://www.example.com/ working in the browser so http://www.example.com/xampp works (ref page 18 of the Zen Cart book by Goh Koon Hoek) in order to configure the Mercury mail server etc. My files are now set as follows:

    hosts
    ------
    # 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
    #
    127.0.0.1 www.example.com # for browser access
    127.0.0.1 mail.example.com # for mail access
    127.0.0.1 example.com # for mercury mail server

    The C:\xampp5680-portable\apache\conf\httpd.conf and C:\xampp5680-portable\apache\conf\extra\httpd-vhosts.conf are now configured as recommended by torvista above, but still the error message displayed is "This domain is established to be used for illustrative examples in documents".

    My apologies if I'm missing something obvious, but I would like to get http://www.example.com/ working.

    Thanks

    John

  2. #12
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Windoews 8 XAMPP setup ...\etc\hosts config ok but www.example.com doesn't redire

    Quote Originally Posted by shopserver View Post
    Thanks for your help. I'm trying to get http://www.example.com/ working in the browser so http://www.example.com/xampp works (ref page 18 of the Zen Cart book by Goh Koon Hoek) in order to configure the Mercury mail server etc. My files are now set as follows:

    hosts
    ------
    # 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
    #
    127.0.0.1 www.example.com # for browser access
    127.0.0.1 mail.example.com # for mail access
    127.0.0.1 example.com # for mercury mail server

    The C:\xampp5680-portable\apache\conf\httpd.conf and C:\xampp5680-portable\apache\conf\extra\httpd-vhosts.conf are now configured as recommended by torvista above, but still the error message displayed is "This domain is established to be used for illustrative examples in documents".

    My apologies if I'm missing something obvious, but I would like to get http://www.example.com/ working.

    Thanks

    John
    Like the error message tells you, you have to use something else, because example.com is used for examples. Choose any you like, but not example.com.

  3. #13
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Windoews 8 XAMPP setup ...\etc\hosts config ok but www.example.com doesn't redire

    Quote Originally Posted by shopserver View Post
    ... My apologies if I'm missing something obvious ...
    Quote Originally Posted by lhungil View Post
    ... I would recommend NOT mapping real domain names to the loopback IP. Better to avoid any confusion by using a completely fake domain name (also makes DNS resolution on the local computer simpler). ...
    Note the part in red.

    I understand you want to be able to exactly follow the tutorial you are referencing, but mapping a real domain (such as example.com) to 127.0.0.1 (loopback IP) should be avoided. Just use "example.local" instead of "example.com" and save yourself some headaches (.local is reserved for local use and will not be resolved by the root DNS servers).

    Otherwise you will need to familiarize yourself with Windows DNS resolution, the Windows DHCP client (one may need to manually override the resolution order depending upon what the DHCP server sent), how to flush the Windows DNS cache, and potentially some other topics as well.



    NOTE 1: Many examples / guides will use "example.com". They usually intend for you to replace "example.com" with a different domain name.


    NOTE 2: Usually the order on Windows is "cache", "hosts file", "DNS", etc. However many different items can impact the resolution order including not only the local computer settings but also settings pushed: via group policy, by the DHCP server, by malware protection software, and the list goes on.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #14
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Windoews 8 XAMPP setup ...\etc\hosts config ok but www.example.com doesn't redire

    My apologies if I'm missing something obvious, but I would like to get http://www.example.com/ working.
    As I and others have stated example.com is only used for "example" and not intended to be functional
    lhungil has outlined best what would be required to make xamp a fully functional host base capable of using FQDN(fully qualified domain name).
    xamp is not intended to be used in this way and is only for testing locally
    Zen-Venom Get Bitten

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Configuring my email client on xampp-win32 for example.com
    By kaybe in forum General Questions
    Replies: 2
    Last Post: 26 Apr 2016, 12:59 PM
  2. Error 404 accessing example.com/store in xampp tutorial
    By mbielin in forum Installing on a Windows Server
    Replies: 6
    Last Post: 11 Nov 2010, 10:24 AM
  3. set up standalone "example.com" domain in Windows XP - editing hosts file
    By lieven23 in forum Installing on a Windows Server
    Replies: 7
    Last Post: 16 Jan 2009, 08:16 AM
  4. http://www.example.com not working
    By John Zwikstra in forum Installing on a Windows Server
    Replies: 8
    Last Post: 31 Aug 2008, 06:13 AM
  5. example.com ----> www.example.com
    By canemasters in forum General Questions
    Replies: 4
    Last Post: 7 Jun 2007, 07:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR