Hello,
I have issue with file manager. I can’t use file manager with error logs
Access to context [/.filemanager/] is denied!
How can i resolve this issue ? Thank you
Hello,
I have issue with file manager. I can’t use file manager with error logs
Access to context [/.filemanager/] is denied!
How can i resolve this issue ? Thank you
Hello,
I have read that link after i install CyberPanel. But, i don’t change anything on them.
context /.filemanager {
type NULL
location /usr/local/lsws/Example/html/FileManager
allowBrowse 1
autoIndex 1
accessControl {
allow 127.0.0.1, localhost
deny 0.0.0.0/0
}
addDefaultCharset off
}
And, Example VHost still there, i don’t delete it.
RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
RewriteRule .? - [E=“Cache-Vary:wp-postpass_6ef2e037d832c0a14142060b0a252fed”]
RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
RewriteCond %{HTTP_HOST} ^domain\.tld$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.tld$
RewriteCond %{REQUEST_URI} !^/[0-9]+\…+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
=========================================
In your vhost conf:
accessControl {
allow 127.0.0.1, localhost, IP Address
deny 0.0.0.0/0
}
addDefaultCharset off
}
Replace IP with your IP Address.
Hello,
Thanks for update. But, it is not working too
accessControl { allow 127.0.0.1, localhost, 80.211.xxx.xxx deny 0.0.0.0/0 } addDefaultCharset off }
Is this your server IP 80.211.xxx.xxx
?
It should be your computer IP.
@usmannasir said:
Is this your server IP80.211.xxx.xxx
?It should be your computer IP.
Nope, xxx means i cencored it in public forum
I put my ip on vhost conf correctly
I mean this IP should be your computer’s IP, not the VPS/Server IP.
@usmannasir said:
I mean this IP should be your computer’s IP, not the VPS/Server IP.
Oh, i tried to change it but it is still not working
`context /.filemanager {
type null
location /usr/local/lsws/Example/html/FileManager
allowBrowse 1
autoIndex 1
accessControl {
allow 127.0.0.1, localhost, 203.78.117.246
deny 0.0.0.0/0
}`
203.78.117.246 it is my computer IP
I think it is not big problem, because i could use Net2FTP or FileZilla to upload my file. But, i am curious why it is not working with default configuration
How about if you remove this part completely:
accessControl {
allow 127.0.0.1, localhost, 203.78.117.246
deny 0.0.0.0/0
}
@usmannasir said:
How about if you remove this part completely:
> accessControl {
> allow 127.0.0.1, localhost, 203.78.117.246
> deny 0.0.0.0/0
> }
>
Ah, thank you very much Sir. It is working
How can be ?
Oh, looks like the problem is here deny 0.0.0.0/0
I am trying to remove it, and it is working well. I don’t really know about that, but 0.0.0.0/0 means all right ? So, it is deny all address ?
Yes you should deny all and use allow for localhost
, 127.0.0.1
and any other IP Addresses you need to whitelist.
Okay, i got it. So, with that configuration (removing deny 0.0.0.0/0
) will it gilve some impact to security ?
@gabrielwaskito said:
Okay, i got it. So, with that configuration (removingdeny 0.0.0.0/0
) will it gilve some impact to security ?
Yes right.
@usmannasir said:
@gabrielwaskito said:
Okay, i got it. So, with that configuration (removingdeny 0.0.0.0/0
) will it gilve some impact to security ?Yes right.
Okey. Thank you then