用于多个域的 wamp
wamp for multiple domains
请帮忙,我想在 wamp 上设置多个域。我做了以下更改。
C:\wamp64\bin\apache\apache2.4.23\conf\httpd.conf
Listen 9191
NameVirtualHost *:9191
<VirtualHost *:9191>
ServerName drop.local
DocumentRoot "C:/GITpBU/drop/final"
<Directory "C:/GITpBU/drop/final">
AllowOverride All
Order Allow,Deny
Allow From all
</Directory>
</VirtualHost>
Listen 9292
NameVirtualHost *:9292
<VirtualHost *:9292>
ServerName bless.local
DocumentRoot "C:/GITpBU/bless/website/public_html"
<Directory "C:/GITpBU/bless/website/public_html">
AllowOverride All
Order Allow,Deny
Allow From all
</Directory>
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 drop.local
127.0.0.1 bless.local
我已经打开了传入和传出连接的端口。
当我在 Chrome 中键入 drop.local:9191 时,我收到错误消息 Permission is denied for access to this part of the server
您不需要添加多个端口来侦听不同的域。您可以为所有网站(所有域)使用相同的端口 80。为此,您需要在 wamp 服务器中创建虚拟主机。请仔细执行此 url 中的步骤。
http://www.kristengrote.com/blog/how-to-set-up-virtual-hosts-using-wamp
请帮忙,我想在 wamp 上设置多个域。我做了以下更改。
C:\wamp64\bin\apache\apache2.4.23\conf\httpd.conf
Listen 9191
NameVirtualHost *:9191
<VirtualHost *:9191>
ServerName drop.local
DocumentRoot "C:/GITpBU/drop/final"
<Directory "C:/GITpBU/drop/final">
AllowOverride All
Order Allow,Deny
Allow From all
</Directory>
</VirtualHost>
Listen 9292
NameVirtualHost *:9292
<VirtualHost *:9292>
ServerName bless.local
DocumentRoot "C:/GITpBU/bless/website/public_html"
<Directory "C:/GITpBU/bless/website/public_html">
AllowOverride All
Order Allow,Deny
Allow From all
</Directory>
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 drop.local
127.0.0.1 bless.local
我已经打开了传入和传出连接的端口。
当我在 Chrome 中键入 drop.local:9191 时,我收到错误消息 Permission is denied for access to this part of the server
您不需要添加多个端口来侦听不同的域。您可以为所有网站(所有域)使用相同的端口 80。为此,您需要在 wamp 服务器中创建虚拟主机。请仔细执行此 url 中的步骤。 http://www.kristengrote.com/blog/how-to-set-up-virtual-hosts-using-wamp