1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How to access site before domain propagation

Discussion in 'Plesk for Linux - 8.x and Older' started by jbsarma, Nov 26, 2005.

  1. jbsarma

    jbsarma Guest

    0
     
    I know about the 'preview site' function from the PLESK admin panel before the domain is propagated. This does not always work as it leads the site already live with another host (as the domain change has not propagated yet) that I am trying to switch to my PLESK server.
    I need to be able to preview the site I am working on my PLESK server before I action the domain propagation. So what will be the URL (I guess it will conatain the IP address followed by domain name?) to call to view the site that I am still building but domain propagation has not been actioned or not completed yet. I will really appreciate the help.
     
  2. ShadowMan@

    ShadowMan@ Guest

    0
     
    The site preview function should not be affected by the DNS pointing to the old IP.

    Workarounds:

    1. Give the site an exclusive IP, then you can browse to that IP address (many cannot give an exlusive IP)

    2. Set your workstation's primary DNS server to your Plesk server's IP address. Then when your browser (Windows?) does the DNS lookup, it will query your Plesk server's DNS first, and since the domain is defined on the server, the 'new' site will be served up.
    (You may have to restart Windows or at least clear the DNS cache 'ipconfig /flushdns')

    We usually do #2, or instruct the client in how to do it and it works quite well.
     
  3. rvdmeer

    rvdmeer Guest

    0
     
    We did solution #2 for a while as well.. but after a while some customers didnt remove our DNS server. Therefor we now advise users to adjust there own host file.

    c:\windows\system32\drivers\etc\hosts

    In example above 12.12.12.12 is the server IP and customerdomain.com is the domain.
     
  4. jbsarma

    jbsarma Guest

    0
     
    I exactly followed the instruction and when I call the domain URL (already defined in the plesk server) it mapped to the default folder in vhosts folder but not to the specific domain folder that I am trying to view.

    Any suggestion.
     
  5. rvdmeer

    rvdmeer Guest

    0
     
    Hmmm..
    There should be an extra line in the hosts config file.
    only then for the "subdomain" www.

    example

     
  6. jbsarma

    jbsarma Guest

    0
     
  7. rolo@

    rolo@ Basic Pleskian

    23
    57%
    Joined:
    Dec 25, 2005
    Messages:
    35
    Likes Received:
    0
    I'm getting mixed results when editing the hosts file in XP (SP2).

    Even if I close all browser windows and flush the dns cache, sometimes the changes are not applied.

    What's the correct procedure for doing this?

    Thanks,
    Rolo
     
  8. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    What editor are you using in XP?
     
  9. rolo@

    rolo@ Basic Pleskian

    23
    57%
    Joined:
    Dec 25, 2005
    Messages:
    35
    Likes Received:
    0
    Ultraedit 11.10b most of the time, but I also tried with Notepad with the same results.
     
  10. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    I'm not sure about Ultraedit 11.10b but never use Notepad for this. It really screws things up by inserting unwanted characters and line breaks. I personally use pico or vi to edit/create files from the command line. One good editor would be CuteHTML if you're creating the files on your pc and uploading.
     
  11. rolo@

    rolo@ Basic Pleskian

    23
    57%
    Joined:
    Dec 25, 2005
    Messages:
    35
    Likes Received:
    0
    Ultraedit is really cool in that sense. It won't add any extra stuff (and if you want to, it allows you to convert line endings between win/unix/mac).

    As far as the "creating the files on your pc and uploading" I think we are on another page here. I was talking about the local c:\windows\system32\drivers\etc\hosts file in my computer.
     
  12. FlashMagnuM

    FlashMagnuM Guest

    0
     
    So basically, is there other way to access the site before domain propagation ... without using the Site Preiview function? Something like http://some_ip/~some_username ... like CPanel solution works?
     
  13. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
  14. cyrus1u1

    cyrus1u1 Guest

    0
     
  15. rvdmeer

    rvdmeer Guest

    0
     
Loading...