Open cliqer opened 4 years ago
What's the domain / folder structure? What's the document root?
├── bin ├── cache │ └── cache ├── config ├── logs ├── migrations │ ├── install │ └── upgrades ├── public │ ├── admin │ ├── cgi-bin │ ├── downloads │ ├── extensions │ └── uploads ├── src │ ├── core │ ├── endpoints │ ├── helpers │ ├── mail │ └── services └── vendor ├── akrabat ├── bin ├── cache ├── char0n ├── cocur ├── composer ├── directus ├── doctrine ├── firebase ├── guzzlehttp ├── intervention ├── league ├── monolog ├── nikic ├── paragonie ├── pimple ├── pragmarx ├── psr ├── ralouphie ├── ramsey ├── robmorgan ├── slim ├── swiftmailer ├── symfony ├── twig ├── webonyx └── zendframework
48 directories
and the document root is public.
Enabling nginx while already being logged in and directly browsing previous links works (api still throws 'Unauthorized request') but if I log out, delete all cookies within a new browser I get the above 404 and can't access back-end anymore.
The error I get in nginx logs is:
2020/06/13 03:55:39 [error] 1481#0: *5614554 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant Origin - assumed 'Origin' (this will throw an Error in a future version of PHP) in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: Use of undefined constant X - assumed 'X' (this will throw an Error in a future version of PHP) in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: Use of undefined constant Requested - assumed 'Requested' (this will throw an Error in a future version of PHP) in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: A non-numeric value encountered in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: A non-numeric value encountered in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: Use of undefined constant With - assumed 'With' (this will throw an Error in a future version of PHP) in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: A non-numeric value encountered in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: Use of undefined constant Content - assumed 'Content' (this will throw an Error in a future version of PHP) in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: Use of undefined constant Type - assumed 'Type' (this will throw an Error in a future version of PHP) in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: A non-numeric value encountered in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: A non-numeric value encountered in /var/www/vhosts/konpoli.eu/api2.konpoli.eu/config/api.php on line 123PHP message: PHP Warning: Use of undefined constant Accept - assumed 'Accept' (this will throw an Err
How to make it work correctly with nginx in plesk? I add the following additional directives from the Docs:
but keep getting access errors:
When I turn it back to apache it works so there's must be some directives that's been missing and only available through .htaccess.