2. httpd-vhosts.conf文件
末尾添加VirtualHost
#末尾添加 以上是[php][xampp]部署基於CodeIgniter框架的項目的詳細內容。更多資訊請關注PHP中文網其他相關文章![php][xampp]部署基於CodeIgniter框架的項目
1.
httpd.conf
檔
58
行,修改部署的連接埠Listen 8090
246-247
行,修改部署根目錄<code class="sourceCode php">DocumentRoot <span class="st">"D:/CodeRepository"</span>
<<span class="kw">Directory</span> <span class="st">"D:/CodeRepository"</span>></code>
2.
httpd-vhosts.conf
檔
VirtualHost
<code class="sourceCode php"><VirtualHost *:<span class="dv">8090</span>>
DocumentRoot <span class="st">"D:/CodeRepository/dianligongdan/"</span>
ServerName <span class="fl">127.0.0.1</span>
</VirtualHost></code>