Probleme bei der Verwaltung von PHP-Toolbox-Site-Domänennamen
火柴2018-07-10 15:27:34
0
3
1045
PHP-Toolbox-Site-Domänennamenverwaltung, Domänennamen mit anderen Ports als 80 können keine Webseiten öffnen. Wenn der Port nicht festgelegt ist, wird direkt zur Hallo-Wort-Seite gesprungen. Weiß jemand?
<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>
修改了端口,你访问的url里有没有加上端口号
<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>
这个文件里也生成了