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

sumit_megaman

Verified User
Joined
Sep 13, 2013
Messages
23
Hi
I tried some of roles to resolve this problem but I failed

1.
I created .htaccess and added Options +Indexes

but result was not successful

2.
I changed all folders and files with chmod -R 0777 *
and here /home/*/domains/*/public_html

3.
I tried to set permissions again
cd /usr/local/directadmin/scripts/
./set_permissions.sh user_homes

4.
cd /usr/local/directadmin/custombuild
./build update
./build apache
./build rewritce_confs

how can I resolve this problem after doing upper methods?
 
check domain error_log.
/domains permissions 711, /public_html permissions 755
 
Try this
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
 
what you see in error logs?
I checked domain log , and some other directadmin logs but I found below log that have a few thing about this domain . I didn't get any other error log

/var/log/httpd/domains > tail -l *.com.error.log
[Mon Nov 22 00:10:05.571126 2021] [ssl:warn] [pid 9122:tid 140084191848448] AH01909: www.*.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 22 00:15:02.054846 2021] [ssl:warn] [pid 9122:tid 140084191848448] AH01909: www.*.com:443:0 server certificate does NOT include an ID which matches the server name
 
Last edited:
this permissions can cause this problem too.
also if domain's error.log empty - check access.log to be sure you are connecting to right server.
then you can check global server error.log /var/log/httpd/error_log
 
this permissions can cause this problem too.
also if domain's error.log empty - check access.log to be sure you are connecting to right server.
then you can check global server error.log /var/log/httpd/error_log
I sent error log. I don't have any other error log for this domain

777 and 644 permission was not success
 
Problem Resolved

I had a mistake

In my DNS dashboard I defined 2 other A record IP for load balancing without defining domain over there

domain turning to these A record addresses and read data from another servers

problem resolved after delete these records
 
Back
Top