Wordpress 在端口4433上设置虚拟主机

Wordpress 在端口4433上设置虚拟主机,wordpress,apache,virtualhost,Wordpress,Apache,Virtualhost,我正在使用xampp使用端口4433设置一些WordPress站点,我需要设置一个虚拟主机 虚拟主机配置: NameVirtualHost *:4433 <VirtualHost *:4433> DocumentRoot "C:\xampp\htdocs" ServerName localhost </VirtualHost> <VirtualHost *:4433> DocumentRoot "C:\xampp\htdocs\ci

我正在使用xampp使用端口4433设置一些WordPress站点,我需要设置一个虚拟主机

虚拟主机配置:

NameVirtualHost *:4433

<VirtualHost *:4433>
    DocumentRoot "C:\xampp\htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:4433>
    DocumentRoot "C:\xampp\htdocs\cig-git"
    ServerName cig.com
    <Directory "C:\xampp\htdocs\cig-git">
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
我使用这些网站作为参考:和


我已经重新启动了xampp Apache服务器,重新启动了Chrome,但该站点无法运行。当我加载cig.com时,将加载使用域(不是我的)的站点。我不知道可能是什么问题。

您的服务器正在侦听端口4433吗?检查是否有文件ports.conf并对其进行编辑。我找不到“ports.conf”文件,但是有一个名为“httpd.conf”的文件,其中有一行<代码>收听4433
127.0.0.1 localhost
127.0.0.1 cig.com