Getting an A-record to point to an URL as opposed to an IPv4 address in Route 53 settings

I have configured the following:

  1. A web host using Amazon EC2, created an instance running Ubuntu and wordpress; I have an address for my home page x.x.x.x/wordpress/
  2. DNS service using Amazon Route 53, with a zone created and a list of 4 ns server addresses (as expected).
  3. A domain from domain.com

The issue I have is that when I create an A record in Route 53, I have no choice but to input only the IPv4 address of the server (x.x.x.x) without the “/wordpress/” section, meaning that when someone goes to my URL (xyz.com), they are presented with the backend of the wordpress showing buttons for “Open my Application” and “Go to MyPHP”, etc.

Read More

I cannot get the DNS service to point to the “x.x.x.x/wordpress” in order to get to the actual homepage.

Any advice would be appreciated.

Related posts

Leave a Reply

2 comments

  1. DNS wont actually do this. You need to change the document root within your web server settings to set the root to be within the wordpress folder.

    WordPress has some base url settings in the wp_options table that may also need to be changed.

  2. I found the solution eventually…

    First, cd into the directory where the .pem key is kept.

    Then, (using Mac OSX Terminal in my case) SSH into the bitnami using the following command:

    ssh -i myrslkey.pem bitnami@[instance elastic IP]
    

    Once logged in, using the following command to change the ULR from [Domain].com/wordpress/ to [Domain].com/ :

    sudo /opt/bitnami/apps/wordpress/bnconfig --appurl /
    

    Use this command litterally; don’t change “appurl” to your own URL or anything like that, because “appurl” is the command name. Simply use that command as it is and it will work.