In a EC2 host, where are the files of the website ?

0

Hello,

My client has a website hosted with EC2 , I have been in the terminal (Cloudshell) and looked for a folder like /var/www , but I could not find anything related to his website.

I also did not find a trace of a webserver (apache, nginx), so now I am wondering if I am even looking in the right place.

So, how can I be sure that the Cloudshell I am looking into corresponds to the website of my client ? (about his website, I only have his URL)

More generally, where are the files of his website ? :)

Thanks a lot

  • Are you sure the website is hosted on this EC2 instance and not elsewhere, like S3? And do you not have access to at least the codebase of the website?

    The locations usually depend on the tech stack and configurations rather than EC2. I'd start looking in the home directory for ec2-user if there are any clues. Also check /var/log/cloud-init.log and /var/log/cloud-init-output.log to see if any user data script has been run to install or set up anything.

  • Thanks, no I don't have access to the codebase of the site, I am looking for it :) (and I don't have a copy either to help me searching for it). I am sure it's a EC2 instance, I have checked with this https://hostingchecker.com/ and it returns : AWS EC2 (eu-west-3) (you can check as well, the website is https://api.savemypaquet.com).

    I have checked /var/log and the files you are mentioning are not there.

    Thanks

已提問 1 年前檢視次數 1529 次
1 個回答
0

Hi,

Have you checked if there is a docker service running a container hosting a web service?

profile pictureAWS
jcvip
已回答 1 年前
  • Hello, no I haven't checked, on the left panel in console.aws.amazon.com/ec2 where should I go ? there is thie "Image" section but I don't see anything there

  • I am just wondering something very simple: how to find a trace of the URL's website in this EC2 dashboard ?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南