请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

插入代码

1回答

Sam 2019-04-19 21:39:16

你好,看你的报错是404,表示资源文件不存在,检查一下epub的下载地址是不是路径拼错了?

0 回复 有任何疑惑可以回复我~
  • 我的.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;
    
    }
    }
    请问是什么问题,应该怎么配置?
    回复 有任何疑惑可以回复我~ 2019-04-19 22:16:50
  • Sam 回复 提问者 weixin_慕码人7523200 #2
    目录放置没有问题,你是不是mac系统?mac系统nginx不能使用80端口,换个端口号试试
    回复 有任何疑惑可以回复我~ 2019-04-20 09:30:42
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号