0

How to solve 404 Not Found Error in Apache CentOS?

Asked 3 years ago (May 09, 2021) in the field of Operating Systems by Mari.J

While configuring a server (with Apache webserver) we faced the error of 404 not found in CentOS 7. What is this, please?


Answers


0
Answered 3 years ago (May 09, 2021) by Eldernode Staff

To solve your current issue, you need to go to  /etc/httpd/conf/httpd.conf path in the <Directory “/var/www”> section, add ”AllowOverride All” option:

<Directory "/var/www">     AllowOverride All     Allow open access:     Require all granted  </Directory>

AllowOverride is defined as None by default. You should change it to All. Then, restart the Apache service.

systemctl restart httpd

Now, the error should be solved. But let me know of any probable issues.

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day