gpt4 book ai didi

http - 我正在尝试使用我的其他域

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:26:16 24 4
gpt4 key购买 nike

我刚获得一个新域,我正尝试将它用于其他站点,但无法正常工作。它仍然将我发送到我的其他域名。我试着查找如何去做,但我找不到办法去做,我该怎么办??这是代码,

ServerName dstokesncstudio.org


<VirtualHost 69.132.203.191:80>
ServerName dstokesncstudio.org:80
ServerAlias www.dstokesncstudio.org
DocumentRoot "C:/htdocs/www/dstokesncstudio"
DirectoryIndex index.html

TransferLog "C:/htdocs/www/dstokesncstudio/logs/access.log"
ErrorLog "C:/htdocs/www/dstokesncstudio/logs/error.log"

<Directory "C:/htdocs/www/dstokesncstudio">
DirectoryIndex index.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>


</VirtualHost>


ServerName dejesusconstruction.com
<VirtualHost 69.132.203.191:8080>
ServerName www.dejesusconstruction.com:8080
ServerAlias www.dejesusconstruction.com
DocumentRoot "C:/htdocs/www/dstokesncstudio/jesus"
DirectoryIndex index.html


<Directory "C:/htdocs/www/dstokesncstudio/jesus">
DirectoryIndex index.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>



<VirtualHost 69.132.203.191:80>
ServerName dstokesncstudio.org

</VirtualHost>

<VirtualHost 69.132.203.191:8080>
ServerName dejesusconstruction.com

</VirtualHost>

最佳答案

作为

http://ping.eu/nslookup/

dstokesncstudio.org     => 216.239.38.21,216.239.32.21,...
dejesusconstruction.com => 216.239.38.21,216.239.32.21,...

不是 69.132.203.191

我想你想要基于名称的虚拟主机 https://httpd.apache.org/docs/2.4/vhosts/name-based.html

在您的情况下,删除 VirtualHost ... 之外的 ServerName ... 并添加到顶部

NameVirtualHost *:80
NameVirtualHost *:8080

如果您还想在端口 80 上访问第二个域,则不需要第二行。

现在从 VirtualHost 中删除 IP,如上面的链接所述,瞧,您应该访问域。

关于http - 我正在尝试使用我的其他域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39314810/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com