Home  >  Article  >  Backend Development  >  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.

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.

WBOY
WBOYOriginal
2016-08-04 09:21:281207browse

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

Reply content:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn