Answer the question
In order to leave comments, you need to log in
Apache Yii 2 advanced?
I use open-server
so it was
<VirtualHost *:%httpport%>
DocumentRoot "%hostdir%"
ServerName "%host%"
ServerAlias "%host%" %aliases%
ScriptAlias /cgi-bin/ "%hostdir%/cgi-bin/"
</VirtualHost>
<VirtualHost *:80>
ServerName www.yii2-start.domain # You need to change it to your own domain
ServerAlias yii2-start.domain # You need to change it to your own domain
DocumentRoot "%host%"/yii2/yii2-start # You need to change it to your own path
<Directory "%host%"/yii2/yii2-start> # You need to change it to your own path
AllowOverride All
</Directory>
</VirtualHost>
D:\open\OpenServer\domains\localhost\yii2\yii2-start
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question