I
I
ivan_m2017-09-28 09:02:58
Composer
ivan_m, 2017-09-28 09:02:58

Why does 403 Forbidden error appear after running vagrant (yii2)?

I installed the Yii2 framework on Windows as indicated here
. I did everything according to the instructions. I didn't change any server settings. The only thing I changed was the hostname and set my own IPs.
After installation, nginx works, but returns a 403 Forbidden response when trying to access the host.
Log on \app\vagrant\nginx\log\frontend-error.log shows:
2017/09/28 11:34:33 [error] 2250#2250: *8 directory index of "/app/frontend/web/" is forbidden, client: 192.168.83.1, server: myhost.dev, request: "GET / HTTP/1.1", host: "myhost.dev"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivan_m, 2017-09-28
@ivan_m

I figured it out - the index.php file is missing in the web directory both in the frontend and in the backend .
This raises another question - why did they remove these files ???
I figured this out too - you need to run php init
Closed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question