I have a very simple httpd 2.4 configuration on AWS AMI 2 running on EC2. My application is in /var/www/html/ with an index.php
Reaching ec2-domain.amazonaws.com/ serves index.php without any issue. So does ec2-domain.amazonaws.com/index.php However, ec2-domain.amazonaws.com/endpoint returns 404, whereas ec2-domain.amazonaws.com/index.php/endpoint serves the expect page.
My httpd config is extremely basic. All files in /var/www/html/ are owned by apache:apache.
Any ideas anyone?
Under apache2.conf
or httpd.conf
Change DirectoryIndex from index.html to index.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.