【问题标题】:wamp server doesn't go onlinewamp 服务器没有上线
【发布时间】:2015-01-13 06:54:10
【问题描述】:

我与 Wamp Server 合作完成我的工作。今天我操纵 httpd.config 直接连接到目录。由于我删除了这一行,wamp 服务器没有上线,在我更改到以前的状态并重新启动 wamp 后,它仍然处于脱机状态。我使用 Windows 7 和 Apache 2.4.7 版

<Directory C:\wamp\www\Zend\workspaces\test\public>

DirectoryIndex index.php

AllowOverride All

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

【问题讨论】:

    标签: apache localhost wamp


    【解决方案1】:

    你能试试吗?


    DocumentRoot "C:/wamp/www/Zend/workspaces" 服务器名称 local-portal.com DirectoryIndex index.php #AllowOverride 全部 #允许所有人 #要求所有授予

    或者这个


    DocumentRoot "C:/wamp/www/Zend/workspaces" 服务器名称 local-portal.com DirectoryIndex index.php #AllowOverride 全部 #允许所有人 #要求所有授予

    <IfModule dir_module>
        DirectoryIndex index.php
    </IfModule>
    

    【讨论】:

    • 是的,但它不会改变。无需重新安装 wamp 即可恢复原始 httpd.config?
    • 我觉得没有任何颠覆程序就无法恢复它。但这里解释了如何在不丢失数据的情况下重建 wamp flowingmotion.jojordan.org/2013/07/19/…
    【解决方案2】:

    这是您更改的 httpd.conf 部分吗?

    <Directory "c:/wamp/www">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.4/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks
    
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   AllowOverride FileInfo AuthConfig Limit
        #
        AllowOverride All
    
        #
        # Controls who can get stuff from this server.
        #
    #   onlineoffline tag - don't remove
         Order Deny,Allow
         Deny from all
         Allow from 127.0.0.1
         Allow from ::1
         Allow from localhost
    </Directory>
    

    如果您想将另一个目录设为目录根目录,那么更好的方法是为每个项目创建一个虚拟主机或多个虚拟主机。

    请参阅这篇文章了解如何做到这一点。忽略标题,这是一篇描述如何设置虚拟主机的帖子。 Project Links do not work on Wamp Server

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-27
      • 1970-01-01
      • 2017-03-25
      • 1970-01-01
      • 2014-04-30
      • 1970-01-01
      相关资源
      最近更新 更多