search

Home  >  Q&A  >  body text

Why can’t I access the virtual URL I created?

1.hosts file has been modified, but other pages pop up

冰冰的糖冰冰的糖2538 days ago1044

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-12-16 21:42:18

    Look at the vhost file

    reply
    0
  • Day

    Day2017-12-15 14:21:35

    Take a look at the vhosts.conf file.

    reply
    0
  • 冰冰的糖

    <VirtualHost *:80> DocumentRoot "C:\myphp_www\PHPTutorial\WWW\demo" ServerName www.demo.com ServerAlias ​​demo.com <Directory "C:\myphp_www\PHPTutorial\WWW\demo"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> This path seems to be correct, right?

    冰冰的糖 · 2017-12-15 14:33:50
  • Day

    Day2017-12-15 13:02:44

    Look at the default site path of the Vhost file in your Apache directory. It may be because there is no file in your default path!

    reply
    0
  • 冰冰的糖

    Is this httpd-vhosts.conf or vhosts.conf?

    冰冰的糖 · 2017-12-15 14:20:14
  • Cancelreply