- 论坛徽章:
- 0
|
这是我的部分httpd.conf文件
- UseCanonicalName Off
- #
- # DocumentRoot: The directory out of which you will serve your
- # documents. By default, all requests are taken from this directory, but
- # symbolic links and aliases may be used to point to other locations.
- #
- #DocumentRoot "/home/vhosts/www.wonniu.com/wwwroot"
- VirtualDocumentRoot /home/vhosts/%0/wwwroot
- RewriteEngine On
- RewriteLog "logs/rewrite_log"
- RewriteLogLevel 9
- #RewriteOptions MaxRedirects=200
- #
- # Each directory to which Apache has access can be configured with respect
- # to which services and features are allowed and/or disabled in that
- # directory (and its subdirectories).
- #
- # First, we configure the "default" to be a very restrictive set of
- # features.
- #
- <Directory />
- Options FollowSymLinks
- AllowOverride All
- </Directory>
- #
- # Note that from this point forward you must specifically allow
- # particular features to be enabled - so if something's not working as
- # you might expect, make sure that you have specifically enabled it
- # below.
- #
- #
- # This should be changed to whatever you set DocumentRoot to.
- #
- #
- # UserDir: The name of the directory that is appended onto a user's home
- # directory if a ~user request is received.
- #
- #UserDir public_html
- #
- # Control access to UserDir directories. The following is an example
- # for a site where these directories are restricted to read-only.
- #
- <Directory /home/vhosts/*/wwwroot>
- Options FollowSymLinks
- AllowOverride All
- </Directory>
复制代码 |
|