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.

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
Release: 2016-08-04 09:21:28
Original
1258 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template