Hi,
I spotted an error. When adding a reverse proxy rule, it's not added to the conf file even though it's added via the GUI. In order to fix it, you must disable then re-enable it. That's 1 bug.
The second bug is that within the .conf file, there's this string without a hash:
Referenced reverse proxy rule, if commented, the configured reverse proxy will be invalid
The language file for key NGINX_PROXY_REP needs a # before the string so it's compatible with nginx/apache.
There are may be another bug too, when this wasn't working my configuration ended up like this:
#SECURITY-START Hotlink protection configuration
location ~ .*\.(jpg|jpeg|gif|png|js|css)$
{
expires 30d;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log off;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log off;
access_log /dev/null;
}
access_log /dev/null;
valid_referers none blocked aapanel.dev.ooo;
if ($invalid_referer){
return 404;
}
}
#SECURITY-END
After I manually added a # to the language file, it ended up being (correct?):
#SECURITY-START Hotlink protection configuration
location ~ .*\.(jpg|jpeg|gif|png|js|css)$
{
expires 30d;
access_log /dev/null;
valid_referers none blocked aapanel.dev.ooo;
if ($invalid_referer){
return 404;
}
}
#SECURITY-END