Forbidden You don't have permission to access /web.html on this server.
If you get above error message while configuring 'Apache web server', then you can fix this error using with below configuration changes -Just add Require all granted in Apache configurations as below -
[root@rhcsa107 rakesh]# vim /etc/httpd/conf.d/rakesh.conf
DocumentRoot /web
<Directory /web>
Require all granted
</Directory>
[root@rhcsa107 rakesh]# apachectl -t
Syntax OK
[root@rhcsa107 rakesh]#
[root@rhcsa107 rakesh]# systemctl restart httpd.service
[root@rhcsa107 rakesh]# systemctl status httpd.service
Comments
Post a Comment
Please share your experience.....