gilbertoalbino / php74-fpm-docker

Ambiente Docker teste com PHP 7.4-fpm, Xdebug, Nginx e MySQL 8
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Call CSS and Javascript #5

Open StephanKrauss opened 4 years ago

StephanKrauss commented 4 years ago

Hello,

i will use php74-fpm-docker for a new hobby project.

There a problem. I sthere a way for routing calls from css and javascript files ?

In my project i have a directory structure structure:

/public
  index.php
  -- javascript/
  -- css/
/src
  -- action/
  -- service/
  -- model/
  ...

I will change the /docker/nginx/sites/default.conf

The startpoint for my new project is under /public/index.php. When the call is for a css or javascript file the routing is to the folder /public/css or /public/javascript

I have problems with the configure of nginx.

Can you help ?

Your sincerly

Stephan