Comments (3)
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.
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:
from yii2-angular-boilerplate.
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)
- setup the app without docker HOT 7
- Windows installer HOT 1
- Error when running docker-compser up -d HOT 12
- 401 Unauthorized Error HOT 7
- ERROR: Service 'frontend' failed to build: Error parsing reference: HOT 6
- ERROR: Service 'api' failed to build: HOT 4
- Run App without docker HOT 1
- How to run project witout docker HOT 2
- Please Add PHPmyadmin HOT 2
- How to Open Yii2 Gii HOT 1
- Need brief explain about docker and nginx HOT 3
- Is possible to install without docker and nginx?using xampp and composer. HOT 2
- BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead. HOT 1
- BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead. HOT 1
- Login error - Username and Password cannot be blank. HOT 2
- pageSizeLimit HOT 2
- frontend and backend Dockerfile for production not working HOT 1
- API Bad Request HOT 2
- Error When `docker-compose up -d` HOT 5
- Error with " composer install --prefer-dist" when run docker-compose up -d
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-angular-boilerplate.