Results 1 to 5 of 5

Thread: Preview Site without SS

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2007
    Posts
    3

    Default Preview Site without SS

    Is there a way for me to preview a site that is not pointing to my servers yet without the secure server option (https: ) by clicking on "site preview" button

    I seem to be having issues installing things and configuring them with the https: prefix. I have tried every one of my scripts and installed them on other servers with no problem.

    Is there a way to type in the ip+a url or something

    Let me know
    thanks
    Ray
    Last edited by Ray Johnson; 03-06-2007 at 08:25 PM.

  2. #2
    Forum Administrator Power Poster Lyle@Spry's Avatar
    Join Date
    May 2005
    Posts
    455

    Default hosts file

    Quote Originally Posted by Ray Johnson
    Is there a way for me to preview a site that is not pointing to my servers yet without the secure server option
    YES.

    I'm suprised by how many people do not know about this, but before DNS there was the 'hosts.txt' file. This option still exists.

    On your desktop computer open the file: C:\WINDOWS\system32\drivers\etc\hosts on Windows or
    /etc/hosts on Mac OS X or Linux.

    This file looks like this (obviously this is a copy of the Windows version of the file, the Mac OS X and Linux versions are exactly the same, but without the instructions at the top):
    Code:
    # Copyright (c) 1993-1999 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
    
    127.0.0.1       localhost
    As the comments state, if you add a line like:
    Code:
    123.123.123.123 mysite.com
    and save the file, every time THIS computer looks up mysite.com it will IGNORE whatever DNS says, and use the IP 123.123.123.123. This way you can put the IP address of the site on your new server, and not have to change what is published in DNS to test (or use any hokey Plesk "Site Preview" function.)

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2007
    Posts
    3

    Default

    i got it to work. I had the wrong ip address in there, thank you. that works great.
    Last edited by Ray Johnson; 03-07-2007 at 08:20 AM.

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2007
    Posts
    1

    Default

    You also should be able to add a domain alias in plesk...
    [nodnsdomain].[serverdomain.com] . As long as [serverdomain.com] is pointing to the IP address of the [nodnsdomain] with in plesk, things should resolve correctly.

  5. #5
    Junior Member Newbie
    Join Date
    Sep 2007
    Posts
    13

    Default

    I cannot seem to get data-imagery's method figured out.

    I really do need for my clients to be able to view a fully-functioning site before they change the DNS servers over.

    I have a new site I am creating [newdomain.com], and their dns is pointing to their old host. I have this domain name put into plesk and have it using a shared ip.

    I would love to have the temp subdomain as part of my company's site, so it woule be [newdomain.mycompanysite.com] as the temp url while they are checking everything out.

    I am able to setup a subdomain on [mycompanysite.com], but I cannot create an alias on [newdomain.com] - the option is greyed out.

    Any guidance?

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
  •