1 domain, 2 servers; dns & mail on 1, main domain (blog) on another.... Doesn't work?

Discussion in 'Site & Server Administration' started by ilovefireflies, Oct 12, 2011.

  1. #1
    Hi there all,

    I have a shared hosting account that will host the e-mail for the domain, along with the DNS records of the domain. (this server runs cPanel/whm)

    I have a VPS that is just CentOS LAMP installation. I have all the site files and all moved over to the VPS and have it configured.

    Nameservers are pointing to the shared hosting account (where the DNS is) and from there, the DNS points the main domain to the VPS IP, and the mail to the shared hosting account.

    However, when i try to go to the domain (which is on the new server now) i get a 404 error, but i can go to that domain/wp-admin/ directory....

    I am slightly confused why i cannot go to the main domain, but i can visit the wp-admin directory on that server.

    On the VPS, i have the wordpress installation in /var/www/html

    Should I have the main domain inside a directory of the title of the domain?


    If you could help out, i'd appreciate it.
     
    ilovefireflies, Oct 12, 2011 IP
  2. AnthonyG

    AnthonyG Well-Known Member

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #2
    Does the dir have the proper permissions?

    Does that dir also have the proper dir indexing set?

    Tailing the apache main error_log should tell you the exact issue.

    tail -f /path/to/log/file | grep "404"
    then visit the page that errors.
     
    AnthonyG, Oct 12, 2011 IP
  3. Armfun

    Armfun Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Maybe you have installed your wordpress in wrong dir.
     
    Armfun, Oct 23, 2011 IP