D
D
des1roer2015-06-23 08:15:59
Apache HTTP Server
des1roer, 2015-06-23 08:15:59

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>

need to add
<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>

the project lies
D:\open\OpenServer\domains\localhost\yii2\yii2-start

how to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-06-23
@ExileeD

In openserver, you can manually write the path to the document root and the domain itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question