首页 > 代码库 > Apache 的vhost文件配置参考

Apache 的vhost文件配置参考

<DirectoryMatch "/alidata/www/phpwind/(attachment|html|data)">
<Files ~ ".php">
Order allow,deny
Deny from all
</Files>
</DirectoryMatch>

<VirtualHost *:80>
        DocumentRoot /alidata/www/jx1949
        ServerName localhost
        ServerAlias localhost
        <Directory "/alidata/www/jx1949">
            Options Indexes FollowSymLinks
            AllowOverride all
            Order allow,deny
            Allow from all
        </Directory>
        <IfModule mod_rewrite.c>
                RewriteEngine On
                RewriteRule ^(.*)-htm-(.*)$ .php?
                RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ /simple/index.php?
        </IfModule>
        ErrorLog "/alidata/log/httpd/phpwind-error.log"
        CustomLog "/alidata/log/httpd/phpwind.log" common
</VirtualHost>


本文出自 “日常博客” 博客,请务必保留此出处http://richang.blog.51cto.com/9879853/1610513

Apache 的vhost文件配置参考