简体   繁体   中英

Domain name not pointing on root directory

I am using amazon linux ec2 instance ie working fine with IP address.

My apache root directory is

/var/www/html

that is working fine when I am accessing my instance IP address.

Issue is when I am using my domain name. It's working only when I am adding "html" after domain name, like

domain/html

I implemented SSL certificate using let's encrypt library, may be that is reason of this issue

I tried to change my httpd.conf directory URL with www directory but that's not working.

Domain name continuously showing below error message but working when I am adding "html" at the end of domain name

Forbidden You don't have permission to access this resource.

Looks like issue is with your vhost config, as you mentioned SSL certificates generated using Let's encrypt, check host file on below path and change document root directory with your original directory. Also check is there any other host file as well or not.

/etc/httpd/conf.d/vhost-le-ssl.conf

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM