Home >Backend Development >PHP Tutorial >javascript - When placing an angular project under a domain name, I don't want to put it in the root directory. I want to wrap it in a folder.
Place the angular project under a domain name. I don’t want to put down the root directory. I want to wrap it in a folder and put it in it
But there will be a problem that the file cannot be read
How to configure this
There is an extra layer of paths in the middle
Place the angular project under a domain name. I don’t want to put down the root directory. I want to wrap it in a folder and put it in it
But there will be a problem that the file cannot be read
How to configure this
There is an extra layer of paths in the middle
Add more layers/../
?
Use relative paths or root absolute paths to access
Isn’t it configured through apache or nginx?
When quoting, you can use the absolute path /angular/, or the relative path ../angular
../ The previous directory ../../ is the one above the previous level and so on
./ Current directory
/ Directory