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/(+\.html)$ /simple/index.php?
</IfModule>
ErrorLog "/alidata/log/httpd/phpwind-error.log"
CustomLog "/alidata/log/httpd/phpwind.log" common
</VirtualHost>
页:
[1]