I have configured the following:
- 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/
- DNS service using Amazon Route 53, with a zone created and a list of 4 ns server addresses (as expected).
- 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.
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.
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.
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:
Once logged in, using the following command to change the ULR from [Domain].com/wordpress/ to [Domain].com/ :
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.