1 .htaccess 配置
#
# Apache/PHP/ settings:
#
Options -Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteCond $1 !^(index\.php|static|config\.xml|crossdomain\.xml)
RewriteRule ^(.*)$ index.php/$1 [L]
2.apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "F:/AppServ/www/funshow/web/admin/"
ServerName admin.funshow.com
ServerAlias admin.funshow.com
<Directory "F:/AppServ/www/funshow/web/admin/">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
3.httpd-info.conf
search vhost
转载于:https://blog.51cto.com/iamloso/721173