Git Product home page Git Product logo

Comments (3)

chrisleekr avatar chrisleekr commented on May 23, 2024

Hi @dev7ch,

Have you configured API as well?
Are you able to access http://api.boilerplate.local? If yes, can you send me what you see when you access http://api.boilerplate.local

from yii2-angular-boilerplate.

dev7ch avatar dev7ch commented on May 23, 2024

Hi @chrisleekr,
thanks for your fast reply.

yes, i added http://api.boilerplate.local to my /etc/hosts as described in your very good documentation.

So, i am able to access the url in browser and just see my ~/Sites directory as i would enter localhost in the browser.

If i open http://localhost/yii2-angular4-boilerplate/api/web/in the broswer it shows me:

{"name":"Bad Request","message":"The system could not process your request. Please check and try again.","code":0,"status":400,"type":"yii\\web\\BadRequestHttpException"}

and at least a GET with my rest client as image below:

image

from yii2-angular-boilerplate.

dev7ch avatar dev7ch commented on May 23, 2024

Hi @chrisleekr,
the error is resolved, some configurations on my local machine have been missing.

I needed to edit my virtual hosts configs and add the VirtualDocumentRoot and ServerName, e.g. at /private/etc/apache2/extras/httpd-vhost.conf.

<VirtualHost *:80>
  ServerName api.boilerplate.local
  VirtualDocumentRoot "/Users/silvan/Sites/yii2-angular4-boilerplate/api/web"
</VirtualHost>

Now all works fine as expected, thx 👍

from yii2-angular-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.