AWS EC2 Instance Pointing to Amazon Linux AMI Test Page Rather than WP Site

I decided to play around with AWS EC2 and set up a WordPress site on a 64-bit Linux Instance.

I have fully set up the instance with LAMP, installed WordPress and pointed my domain to the server. When I try to access the site http://latesttech.tips I get the Amazon Linux AMI Test Page and the only way to access WordPress is to visit http://latesttech.tips/lttwp.

Read More

How can I have the primary domain to point to the “lttwp” directory automatically so this doesn’t have to be done via the URL?

I’m fairly new in the dev world and looked up how to fix, but couldn’t find anything.

Thanks in advance!

Related posts

Leave a Reply

2 comments

  1. You can edit your apache config file to redirect to your lttwp folder.

    Usually the configs for apache are in /etc/httpd/conf or /etc/apache2/conf Look for the directory variable. You will need to edit that path at 2-3 place in the config for it to work. Look for the documentroot and directory variables.

    You can find more info here : http://httpd.apache.org/docs/2.2/configuring.html

    Once done, restart the apache server so that it takes new config: sudo service httpd restart