location = /cp/index.php {
  try_files ne @cproute;
}

location ^~ /cp {
  alias /opt/psa/admin/cp/public;
  try_files $uri @cproute;
}

location @cproute {
  include /etc/sw-cp-server/fastcgi_params;
  fastcgi_pass unix:/var/run/sw-engine.sock;
  fastcgi_param SCRIPT_FILENAME /opt/psa/admin/cp/public/index.php;
}
