问答详情
源自:2-3 自定义网站根目录

为什么 改完没有用啊 求解

# symbolic links and aliases may be used to point to other locations.

#

DocumentRoot "g:/Demo"

<Directory "g:/Demo">

    #


提问者:慕用6566211 2017-06-02 22:00

个回答

  • 野生码农在线co腚
    2017-06-04 00:46:06

    <VirtualHost *:80>
        DocumentRoot "E:/test"
        ServerName x.com
        <Directory "E:/test">
          Options +Indexes +FollowSymLinks +ExecCGI
          AllowOverride All
          Order allow,deny
          Allow from all
          Require all granted
          RewriteEngine on
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule . index.php

      </Directory>
    </VirtualHost>