Xampp上的多个子域

| 我想开始在本地开发站点,然后将其移植到Web。当我计划使用子域运行Wordpress网络时,我需要设置Xampp安装程序,以允许我运行子域安装程序。 不知道该怎么做,也没有在网络上找到太多信息。有人可以指出我正确的方向吗?我见过人们也在设法更改URL。我似乎无法通过http:// localhost。     
已邀请:
首先,您需要两件事,而与Wordpress无关。 假设您将使用一个本地网址,例如\“ your_test_domain.local \”,因此: #1在xampp httpd-vhosts.conf(xampp \\ apache \\ conf \\ extra \\ httpd-vhosts.conf)上添加虚拟服务器。 例如:
<VirtualHost *>
    DocumentRoot \"C:\\xampp\\htdocs\\your_site_folder\"
    ServerName your_test_domain.local
    ServerAlias your_test_domain.local
    <Directory \"C:\\xampp\\htdocs\\your_site_folder\">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
这意味着,如果您浏览\“ your_site_folder.local \”,您将看到xampp htdocs文件夹中\“ your_site_folder \”文件夹中的内容。对? #2并且,您需要在Windows上编辑hosts文件(猜测您使用的是win):Windows \\ System32 \\ drivers \\ etc \\,并添加以下行:
127.0.0.1   your_test_domain.local
启动apache以达到此效果。对于子域,同样的事情,您只需要创建另一个虚拟主机和另一个主机重定向,而对于\“ sub_domain.your_test_domain.local \” 因此,一旦获得了这些东西,您还需要一些插件才能在wordpress上安装。我使用域映射插件,剩下的事情要做,但这是另一回事了。从那里开始,您将学习其余内容。 希望能有所帮助。     
试试这个连结 http://www.howtoforge.com/forums/showthread.php?t=23 还请注意xampp的根index.php文件,因为它具有重定向...     

要回复问题请先登录注册