ISPconfig+nginx: Contao CMS

Als Admin unter „System / Direktiven Schnipsel“ folgendes anlegen:

Name: Contao 4.x
Typ: Nginx
Schnipsel:

location / {##merge##
 client_max_body_size 100M;
 root {DOCROOT}/web;

 index app.php;
 try_files $uri $uri/ /app.php$is_args$args;
 
 location ~ ^/(app|app_dev|config|install|contao-manager\.phar)\.php(/|$) {
  include /etc/nginx/fastcgi_params;
  {FASTCGIPASS}
  fastcgi_split_path_info ^(.+\.php)(/.*)$;
  fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
  fastcgi_intercept_errors on;
  fastcgi_temp_file_write_size 10m;
  fastcgi_busy_buffers_size    512k;
  fastcgi_buffer_size          512k;
  fastcgi_buffers           16 512k;
  fastcgi_read_timeout 1200;
  fastcgi_param HTTP_AUTHORIZATION $http_authorization;
 }
 location ~ \.(jpe?g|png|gif|ico|webp|css|js|svg|woff2?|ttf|otf|eot)$ {
  expires 1M;
  try_files $uri $uri/ /app.php$is_args$args;
 }
}

Sichtbar für Kunden: ja
Aktiv: ja

Den Schnipsel dann als „Webserver-Konfiguration“ für die Domain aktivieren.

Den „contao-manager.phar.php“ Installer dann in einem weiteren „web“ Unterordner platzieren – also in /web/web/ und via „https://my-domain.de/contao-manager.phar.php“ aufrufen.

Die Statistiken in ISP Config deaktivieren, damit der „/stats/“ Ordner bei der Installation nicht stört.

youtube login problem

A fix for the youtube login problem when you are logged in as the first login (/u/0/) with a google business account that does not allow youtube logins and you will always redirected to admin.google.com.

For example, you are logged in with multiple accounts on google and the second login is your account you want to use with youtube.

Copy the login link from youtube:

https://accounts.google.com/ServiceLogin?service=youtube&uilel=3&passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26app%3Ddesktop%26hl%3Dde%26next%3D%252F%253Fgl%253DDE%2526tab%253Dk1&hl=de

This link tries to login with the first account.
To login to youtube with the second account, you have to attach a „&authuser=1“ to the link:

https://accounts.google.com/ServiceLogin?service=youtube&uilel=3&passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26app%3Ddesktop%26hl%3Dde%26next%3D%252F%253Fgl%253DDE%2526tab%253Dk1&hl=de&authuser=1