Latest Apache Multi-domain multi-site configuration

Source: Internet
Author: User

Httpd.conf===>

9001 123.123. 123.123:  IP address as servernameloadmodule rewrite_module modules/mod_ Rewrite.soinclude conf/extra/httpd-vhosts.conf"\.ph (p[2-6]?| TML) $">SetHandler application/x-httpd-php</FilesMatch>

Httpd-vhost.conf===>

# Virtual Hosts<virtualhost *: the>ServerName www.abc2.comServerAlias abc2.com tianpin.bj.12543534. Clb.myqcloud.comDocumentRoot"/var/www/html"<directory"/var/www/html">Options+indexes +includes +followsymlinks +multiviewsallowoverride Allrequire All granted</Directory></VirtualHost>#<virtualhost *: the>#设置主机名ServerName www.abc.com# to set the host alias, which is also accessible with that alias (provided the domain name is resolved correctly) #ServerAlias Abc.comdocumentroot"/VAR/WWW/PTTABC"<directory"/VAR/WWW/PTTABC">#加上Indexes用于显示设定 "Show file List" (when no Web page is available) Options followsymlinks# files that have folder access control enabled. htaccess Settings allowoverride all# Request control require all granted</Directory></VirtualHost>

Latest Apache Multi-domain multi-site configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.