Score:0

Why is my Php app not found on Apache2 server?

il flag

I added A record om my company's Cloudflare account. In browser I got

Not Found

The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) Server at ***.***.dev Port 443

Log files

172.68.50.117 - - [20/Apr/2022:14:57:12 +0000] "GET /nano.php HTTP/1.1" 404 2858 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
37.113.176.40 - - [20/Apr/2022:14:57:28 +0000] "GET / HTTP/1.1" 302 1811 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7"
172.68.50.91 - - [20/Apr/2022:14:57:50 +0000] "HEAD / HTTP/1.1" 200 2696 "-" "curl/7.68.0"
138.118.227.21 - - [20/Apr/2022:15:01:56 +0000] "GET / HTTP/1.1" 302 1811 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"

With curl

HTTP/2 200 
date: Wed, 20 Apr 2022 14:57:50 GMT
content-type: text/html
last-modified: Mon, 18 Apr 2022 09:37:18 GMT
vary: Accept-Encoding
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=nhw0BIFfrBVtti%2Buh9%2BU7Ivf94AofuOx%2BFKkJhgDehZVZeJMd44wxPWrnwZbX0Ukh82TNhaxGZJfQnbUss%2FW6WzVPEM5dyQ6t%2BpIC3qjw%2BluRE%2B1kha8c9C927Jup3dHQqNFbhU%2BVvp%2BFhRr%2FmLrEgIM034%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 6feebc111cb27804-VIE
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

I enabled SSL Certificates using enable apache web server

What should I check next?

Paul avatar
cn flag
Is the problem Cloudflare or Apache? What happens if you request a file, such as an image or HTML file location?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.