Skip to content
Advertisement

nginx server with dynamic index is not executing php

i tried setting up my php backend and my vue on the same location. Based on the X-Requested-With header the server should decide if the backend would be used or the vue should be delivered. Now the delivery of the vue file is working, but the php is not executed.

info: at the position of X-URI the $uri is /index.php, but it is not running php

JavaScript

I hope somebody has an idea how to fix this.

Advertisement

Answer

I dont know what was my issue, but it seems to work know. For my specific solution i went with try_files $uri $uri/ /$INDEX$is_args$args; to use either my index.html or index.php based on my param.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement