标签:abc 列表 view rect name 站点 des handle 多站点
httpd.conf===>
Listen 80 Listen 9001 ServerName 123.123.123.123:80 用IP地址作为servername LoadModule rewrite_module modules/mod_rewrite.so Include conf/extra/httpd-vhosts.conf <FilesMatch "\.ph(p[2-6]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch>
httpd-vhost.conf===>
# Virtual Hosts <VirtualHost *:80> ServerName www.abc2.com ServerAlias abc2.com tianpin.bj.12543534.clb.myqcloud.com DocumentRoot "/var/www/html" <Directory "/var/www/html"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost> # <VirtualHost *:80> #设置主机名 ServerName www.abc.com #设置主机别名,即用该别名也可以访问(前提是域名解析正确) #ServerAlias abc.com DocumentRoot "/var/www/pttabc" <Directory "/var/www/pttabc"> #加上Indexes用于显示设定“可显示文件列表”(当无可显示网页的时候) Options FollowSymLinks #启用文件夹访问控制的文件.htaccess设置 AllowOverride All #请求控制 Require all granted </Directory> </VirtualHost>
标签:abc 列表 view rect name 站点 des handle 多站点
原文地址:http://www.cnblogs.com/as3lib/p/7007050.html