WordPress.org

Ready to get started?Download WordPress

Forums

subdomain multisite on Amazon EC2 (7 posts)

  1. Koff
    Member
    Posted 2 years ago #

    Hi,

    I am trying to install multisite with subdomains on virtual server.
    BUT
    My site_url is an ip address.

    I do not want to direct my domain to the site yet ( its under development).

    How can I continue?

  2. You either hook up the domain name now or you mess with your hosts file.

    http://wpmututorials.com/how-to/using-a-hosts-file/

  3. Koff
    Member
    Posted 2 years ago #

    Thanks,

    So I mess with my hostfile:

    127.0.0.1  myfakedomain.com
    127.0.0.1  *.myfakedomain.com

    What do I do with the IP in the DB?

  4. Koff
    Member
    Posted 2 years ago #

    Sorry,

    it should be with the real IP. isn't it?

    my.real.elastic.ip  my.fakedomain.com
    my.real.elastic.ip  *.my.fakedomain.com
  5. 127.0.0.1 is your local IP, always. It's the same as saying 'localhost'

    So yes, use

    my.real.elastic.ip  my.fakedomain.com
    my.real.elastic.ip  *.my.fakedomain.com
  6. and use the real domain in the db at the IP address.

    it won;t work for visitors to the IP address, and it won;t interfere with the live domain. only you see the domain installed with that domain name at the new ip address.

  7. Koff
    Member
    Posted 2 years ago #

    And that means I only access the site locally...

    Thanks for both you.

Topic Closed

This topic has been closed to new replies.

About this Topic