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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。