How do I serve static files with the server?

Asked by Eleanor Berger

How do I serve static files such as JavaScripts or images like PNG and JPG with the server?

Question information

English Edit question
For: Edit question
No assignee Edit question
Solved by:
Eleanor Berger
Last query:
Last reply:
Revision history for this message
Best Eleanor Berger (intellectronica) said :

Create a directory (also known as a folder) called static in the location of the script that runs the server. Then place the static files you wish to server in the static folder.

For example, the URL http://localhost/static/logo.png will send the image ./static/logo.png to the client.