Virtual Host cannot create with XAMPP server

依然范特西╮ 提交于 2019-12-02 11:00:41

Very first confirn you have an entry in hosts file -

127.0.0.1   mmcast.dev

Second, check httpd.conf file - there are multiple < directory tag and if necessary make all Require all granted

Third, in httpd-vhost.conf file write bellow lines

# you can put any port whatever you feel comfortable! I normally use 127.0.0.1:144 and counting for every project
Listen 127.0.0.1:81 
<VirtualHost 127.0.0.1:81>
    ServerName mmcast.dev
    DocumentRoot "C:\xampp\htdocs\mmcast"
    SetEnv APPLICATION_ENV "development"
    <Directory "C:\xampp\htdocs\mmcast">
         DirectoryIndex index.php
         AllowOverride All
         Order allow,deny
         Allow from all
    </Directory>
</VirtualHost>  

Fourthly, RESTART XAMPP Server. and try in browser https://127.0.0.1:81

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!