PHP Toolbox Site domain name management, if a domain name with a port other than 80 is set, the web page cannot be opened. If the port is not set, it will jump directly to the hello word page. What's going on? Does anyone know?
<VirtualHost _default_:80> DocumentRoot "d:\myphp_www\PHPTutorial\WWW" <Directory "d:\myphp_www\PHPTutorial\WWW"> Options -Indexes -FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
<VirtualHost *:80> DocumentRoot "D:\myphp_www\PHPTutorial\WWW" ServerName www.myphp.com ServerAlias myphp.com <Directory "D:\myphp_www\PHPTutorial\WWW"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
<VirtualHost *:8080> DocumentRoot "D:\myphp_www\PHPTutorial\WWW\tp5\public" ServerName www.mytp5.com ServerAlias mytp5.com <Directory "D:\myphp_www\PHPTutorial\WWW\tp5\public"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
<VirtualHost *:82> DocumentRoot "D:\myphp_www\PHPTutorial\WWW\demo" ServerName www.demo.com ServerAlias demo.com <Directory "D:\myphp_www\PHPTutorial\WWW\demo"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
The port has been modified. Did you add the port number to the URL you visited?
<VirtualHost _default_:80>
DocumentRoot "d:\myphp_www\PHPTutorial\WWW"
<Directory "d:\myphp_www\PHPTutorial\WWW">
Options -Indexes -FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\myphp_www\PHPTutorial\WWW"
ServerName www.myphp.com
ServerAlias myphp.com
<Directory "D:\myphp_www\PHPTutorial\WWW">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:8080>
DocumentRoot "D:\myphp_www\PHPTutorial\WWW\tp5\public"
ServerName www.mytp5.com
ServerAlias mytp5.com
<Directory "D:\myphp_www\PHPTutorial\WWW\tp5\public">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:82>
DocumentRoot "D:\myphp_www\PHPTutorial\WWW\demo"
ServerName www.demo.com
ServerAlias demo.com
<Directory "D:\myphp_www\PHPTutorial\WWW\demo">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
这个文件里也生成了