Virtual Host cannot create with XAMPP server

后端 未结 1 788
情书的邮戳
情书的邮戳 2021-01-26 18:25

I add the following codes in httpd-vhost.conf file.


DocumentRoot \"C:/xampp/htdocs/mmcast\"
ServerName mmcast.dev
 

        
1条回答
  •  隐瞒了意图╮
    2021-01-26 18:34

    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 
    
        ServerName mmcast.dev
        DocumentRoot "C:\xampp\htdocs\mmcast"
        SetEnv APPLICATION_ENV "development"
        
             DirectoryIndex index.php
             AllowOverride All
             Order allow,deny
             Allow from all
        
      
    

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

    0 讨论(0)
提交回复
热议问题