我的.env.development文件的配置是这样的:
VUE_APP_EPUB_URL=http://localhost/epub
VUE_APP_EPUB_OPF_URL=http://localhost/epub2
VUE_APP_RES_URL=http://localhost/book/res
VUE_APP_BASE_URL=http://47.99.166.157:3000
VUE_APP_VOICE_URL=http://47.99.166.157:3000
VUE_APP_BOOK_URL=http://47.99.166.157:3000
请问有错吗?
我直接在浏览器访问localhost是可以看到nginx服务器运行成功的,但是http://localhost/epub2/2018_Book_ComputerAidedVerification/OEBPS/package.opf
这样访问就not found,或者http://localhost/epub2也是not found,请问资源文件epub,epub2和book这三个文件应该放在哪个文件夹里?我现在是放在upload文件夹里的,nginx.conf这个文件里增加的sever我是这样写的:server {
listen 80;
server_name localhost;
root /Users/Administrator/upload;
autoindex on;
location / {
add_header Access-Control-Allow-Origin *;
index index.html index.htm;
}
}
请问是什么问题,应该怎么配置?