Home > Programming, Servers & Scripts >

Trouble Hosting With AWS (11)


06-08-2020 03:59 PM #1 classic (Member)
Trouble Hosting With AWS

Hey guys,

*Preface: I'm really bad with tech stuff, just a heads up

I've spent the last 3 days reading all the tutorials and comments about hosting and I followed them but I still can't get my landing page live. I even bought a new domain to try everything from scratch again but still no luck.

At this point I have no clue what to do now. I don't even know how to find which domain extension / link I'm trying to host the lander on.

Bought domain from Namecheap and set up all the nameservers in there that I got from Route 53. I have a custom SSL certificate in Cloudfront. All the files, code and images are uploaded in my bucket as well.

I'm sure it's probably something silly I'm just missing but any help would be seriously appreciated. If you need any more information about what I've tried or set up I can share all that as well

I know it shouldn't be taking this long, just want to get this finished so I can run a campaign lol.

Thanks!

Edit: I used the giftbox lander from purelander if that helps


06-08-2020 09:05 PM #2 jeremie (Moderator)

- What error message do you get when trying to access to your page?
- Can you share screenshots of your setup on Route 53, CloudFront, S3... (see here guide on how to upload images)

The best way is often to delete everything and restart from scratch.
See this video tutorial:
https://www.youtube.com/watch?v=DiIaoIcoKNY


06-09-2020 03:59 AM #3 classic (Member)

I think I actually got it to work under the index.html extension on my URL (didn't have cname entered correctly!)

Only thing now is that I can't get the pictures to load. Here's a screenshot (it's an iphone giftbox lander):

Thanks for linking that video!

Edit: Here's the files I have in my AWS bucket:


06-09-2020 10:25 AM #4 matuloo (Legendary Moderator)

Image urls might be your problem.

Check the code of the LP and look at urls of the pictures. You need to use either full urls that "link" directly to the pics, so like : https://www.yourdomain.com/fullpatht...arein/gift.gif

OR one of these, based on where the images are located: https://www.w3schools.com/html/html_filepaths.asp


06-10-2020 02:28 PM #5 classic (Member)

Same thing, still not working. Restarted the whole process a few times on 2 different domains and 3 different landing pages. Not sure what to do. Should I try hosting elsewhere maybe?

Edit: So close lol. Not sure why the giftboxes haven't loaded but will keep trying


06-10-2020 04:00 PM #6 jeremie (Moderator)

Hello,

It can be a URL problem as pointed by @matuloo.
Or it can be that your S3 bucket / CF distribution access policies are not properly configured.
Post a link to your lander and I will have a look.

Hosting somewhere else might not change the problem. Better to understand what you are doing wrong and learn.


06-10-2020 04:07 PM #7 classic (Member)

Good point. I pm'd you the link


06-10-2020 04:46 PM #8 jeremie (Moderator)

@classic sent a PM with his lander
Honestly, next time, when ripping classic landers, please share your URL in the first post. There is nothing new / creative to hide, and it just makes it more difficult for us to help you.


You have:

1) a URL problem

Code:
<div id="4"><img src="https://YOURDOMAIN.com/index.html/img/box_c.png" class="try" /></div>
Should be:
Code:
<div id="4"><img src="img/box_c.png" class="try" /></div>
or (absolute reference)
Code:
<div id="4"><img src="/img/box_c.png" class="try" /></div>
"index.html/img/box_c.png" makes no sense.
I do not recommend using the full domain URL, because if you want to switch domain, it gives extra work.

2) a policy problem. Not only for the box image, but also for favicon.ico and another image.
When trying to access, this what i get.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>1751FB872F2CD0CF</RequestId>
<HostId>OfjeUX+7meu72NROcmYOWJlMAS5JBQxTDldhwxN0J+ N+BTru7vcHCWmCnNnKAxp8zC3efewCPp0=</HostId>
</Error>
If you use CloudFront and S3, this is probably an Origin Access Identity issue:
https://docs.aws.amazon.com/AmazonCl...ting-access-to

If you only use S3, it is not properly defined to host a website:
https://docs.aws.amazon.com/AmazonS3...teHosting.html

If it is too complicated, maybe another hosting might be a better choice.


06-10-2020 04:51 PM #9 jeremie (Moderator)

Quote Originally Posted by classic View Post
Preface: I'm really bad with tech stuff, just a heads up
I think doing 5-10 hours basic HTML would be helpful as you really lack the basics. jaybot posted a free course here:
https://stmforum.com/forum/showthrea...ning-for-22USD


06-10-2020 08:06 PM #10 matuloo (Legendary Moderator)

Thanks for helping out with the code jeremie, as I can see there was the img url problem indeed plus the other one

And I totally agree with jeremie here :

I think doing 5-10 hours basic HTML would be helpful as you really lack the basics
You don't have to learn how to code, but a basic understanding of html is VERY handy. You will need to move some pics, enter a line break here and there, resize some elements etc... this is all very basic knowledge that will help you a LOT in the future.


06-11-2020 03:55 AM #11 classic (Member)

Thanks @matuloo and @jermie for your help, I appreciate it! I payed someone to fix the problem for me so it's all good to go now. I can finally work on my first push campaign

Definitely going to learn at least the basics of HTML though so I know for the future


Home > Programming, Servers & Scripts >