Score:0

how to deploy an nginx website which has both php and javascript (.js)

in flag

Looking for clues/direction how to configure an nginx to run both php and java-script on the same website. My experience is limited to using nginx to run php website-only content (ie. WordPress). GitHub has some web-enabled chess games. A webchess program @ https://github.com/Thorium/webchess written in php but it has a java-script sub-folder. Have been searching/trying for a few weeks to figure out how to configure nginx to run the combined php and javascript parts of the game. The game has most php files but also 11-javascript (*.js) files. Attempted to use node.js and nginx njs but I'm not getting it. Hope there is an expert or two who can point in the right direction. This is a great learning opportunity to run php and javascript together under nginx.

Thank you

Paul avatar
us flag
WordPress runs PHP and JavaScript. The JavaScript runs in the browser. The PHP runs on the server. Likely the same for that chess game. However, it's quite old so you have to figure out which version of PHP and MySQL, likely some other problems will be discovered.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.