I have XAMPP set up in an EC2 AWS instance and am trying to connect up my godaddy domain name. I can see xampp is working on the IP address and my site works under when I use IPADDRESS/FOLDER/index.php
How do I get my domain name to read the index.php file in the folder? All the tutorials I have followed allowed me to access an index file directly in the htdocs file (IPADDRESS/index.php) but I seem to be having trouble with the additional folder. The folder is important because it is managed with Git.
The folder I have saved in within my EC2 instance is /opt/lampp/htdocs/
Thank you!
Gemma
You can't point a domain name to a folder. You need to edit your web server configuration on the EC2 server (Apache httpd?) to use the folder as the server root location.
Related
I have java 8 tomcat application deployed on Elastic Beanstalk on AWS. My initial design was that blog (WordPress) would be on same server as tomcat. But since this is Elastic Beanstalk, I moved by blog to a different EC2 (a different IP address). The blog works after I set up subdomain in Route53 as blog.syz.com. But I want to divert the traffic from xyz.com/blog to blog.xyz.com.
I am doing this by modifying .htaccess file.
I added a .htaccess file in the root of tomcat application and deployed to Elastic Beanstalk. But the redirect is not working.
To test, I tried changing the path of existing and do a redirect using .htaccess, but does not seem to take affect. Re started server but still not working.
What am I missing here?
Do I have to configure using .ebextension in Elastic Beanstalk?
Normally .htaccess in root folder should work.
I have already configured AWS s3 bucket and hosted a Static Website and i have also installed bitnami wordpress and i want my visitor to show static website when opened and when Clicked on Example.com/blog it should show the wordpress installed .
Guide me the possible way to do this
I solved the Problem by Connecting EC2 with Sftp , Bitvise and Transferred all the word press files to a new folder and Aws s3 bucket files to the Ec2 .
So now i forwarded the public ip to a domain name and got the results as expected
I am running a single instance machine behind a load balancer and I am able to setup the secure port domain to work for https://www.example.com.
I am trying to redirect both http://www.example.com to https://www.example.com
I am running Tomcat 8 on the instance behind the load balancer
I was toying around with AWS extensions to make the redirect work and I used the following links for my reference to create a .ebextensions directory.
Redirect Http Url to Https in Elastic beanstalk loadbalancer
I dont see the .ebextensions directory after deployment in the tomcat root folder
The content on elasticbeanstalk.conf doesnt include the rewrite rules and module reloads that I added to make the redirect work .It still seems to contain the default values the file had before deployment. Seems the .ebextensions didnt get executed at all
I have installed an AWS certificate manager on my load balancer.
I am able to manually access https://www.example.com
Cant figure out if I am missing something? Can someone in the community help me resolve the issues.
Can anyone tell me how to set a sub-domain in AWS Route53?
I am entirely new to AWS and a few hours ago I needed to setup a domain name to point at an EC2 instance.
I successfully created a hosting zone with my registered domain configured.
Next, I created an A record and specified the IP Address of the EC2 instance.
My problem is my website, on the EC2 instance, is in a subdirectory. So when I attempt to save the value of the A record as *.*.*.*/my-subsite, the Route53 system refuses to accept my input.
I received the following error:
The record set could not be saved because:
- The Value field contains invalid characters or is in an invalid format.
UPDATE:
Thanks #Chris, for your answer. I did as you directed and configured documentroot in /etc/apache2/sites-available/000-default.conf to my-site.
My problem is there is a subsite beneath my-site. I created /etc/apache2/sites-available/sub-site.conf and set documentroot to my-subsite/sub-site.
However, when I attempt visiting www.mysite.com/subsite, the browser redirects to www.mysite.com
DNS is a mapping from a hostname to an IP address, period.
You will need to configure your web server so that it delivers your content from the appropriate directory. If you're using an apache web server, you want to set the DocumentRoot to the appropriate directory.
I am new in the Amazon EC2 world, I just created an app, that is located URL like this:
http://ec2-54-123-45-678.compute-1.amazonaws.com:8080
This is generated URL by Amazon EC2.
Now I would need to use my own domain name, so when I would access www.my-domain-name.com, I would like to see the content from
http://ec2-54-123-45-678.compute-1.amazonaws.com:8080
I bought the domain name on Godaddy.
Is there any way to do this in Amazon AWS dashboard or do I need to set it up in Godaddy system?
Thanks
I am answering on a more general level because I stumbled upon this thread when setting my custom domain.
In Amazon I created an instance and associated an IP to that instance. You were able to access it by typing in the amazon url
I actually used Media Temple not GoDaddy, but it will be similar. I went to the zone file and added that public url to the www
And as you can see, here is my blog actually working on the custom domain.
I set the wildcard because that way, no matter what someone types, if it is not set, then they will still see the site.
EDIT
For the root URL you should be entering your elastic IP and setting that as an A record.
First you need to set an ElasticIP for associated to that instance.
Then point the DNS entry of "www" for "my-domain-name.com" to the IP assigned in the step above.
Where you manage your DNS is another thing, can be in GoDaddy or in AWS Route53. You must adjust the delegation DNS in the "my-domain-name.com" register. Ex: your domain can be registered with GoDaddy but its delegation DNS point to Route53 so you can manage the domain from your AWS Console.
In order to setup DNS mapping you can map the existing IP 54.123.45.678 to ex: www.my-domain-name.com.
However, as you are running tomcat which is running at 8080 you need to forward the the request to the tomcat using Apache. So that you can visit www.my-domain-name.com without port 8080. If you are using linux box install Apache, apache-modjk and then configure sites.