I added
location ~* \.(eot|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin "https://api.thedannicraft.de";
}
to nginnx statements but it doesn't worl
My site stats.gamerforge-discord.de requests data from my own API,
Because of that I followed this Guide to setup a CORS header with apache.
But the requests doesn't contain the header and is still beeing blocked.
I don't know what could be the problem.
This gives me this error:
Ungültige nginx-Konfiguration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/panel.thedannicraft.de/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
I've running a server with backend that should be accesed with an reversed proxy.
I've created a new .conf file in /etc/apache2/sites-availabe then I entered the following config:
<VirtualHost _default_:80>
ServerName panel.example.com
ProxyPreserveHost On
ProxyPass /...
I just installed plesk and when I run the plesk logon Comand I get the following error:
DB query failed: SQLSTATE[HY000] [2002] No such file or directory
exit status 1