Heyo, front end guy moving website from shared hosting to SPA droplet. I have a Headless CMS in /build, a Node SendGrid Mailserver in /mail, and am trying to have some html and php in /wp-content/themes/webdev/projects/trackjob/point_card/. (it's a php proxy) The reason is an old client used an iframe to this url from my old site and its just best to copy it over.
The card_api_js_v2.html will need to make an AJAX request to a php file in the same parent directory.
I am just getting more familiar with nginx. Advice?
Currently, I have this...
location / {
root /var/www/build;
try_files $uri $uri/ /;
}
location /mail {
root /var/www/server;
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
// DOESNT WORK ???
location /wp-content/themes/webdev/projects/trackjob/point_card/ {
root /var/www/wp-content/themes/webdev/projects/trackjob/point_card;
try_files $uri $uri/ /card_api_js_v2.html;
}