Apache configuration virtual host, Apache Virtual host _php Tutorial

Source: Internet
Author: User

Apache configuration virtual host, Apache virtual host


#在httpd. conf Open Virtual hosts Include conf/extra/httpd-vhosts.conf# and then configure # in httpd-vhosts.conf to match by IP #
 
  
   # DocumentRoot "E:/htdocs" # directoryindex index.html index.htm index.php# 
   
    # Options Followsy Mlinks # allowoverride None # Order allow,deny# 
   allow from all# #
  
 #根据端口号来匹配 #
 
  
   # DocumentRoot "E:/htdocs" # directoryindex index.html index.htm index.php# 
   
    # Options Followsy Mlinks # allowoverride None # Order allow,deny# 
   allow from all# #
  
 #根据主机名匹配
 
  
   documentroot "E:/htdocs" ServerName localhost directoryindex index.html index.htm index.php 
   
     Options followsymlinks allowoverride None Order allow,deny
    

   allow from all
 
 
  
   documentroot "E:/htdocs/dedecms" ServerName dedecms.com directoryindex index.html index.htm index.php 
   
    Options followsymlinks allowoverride None Order allow,deny
    

   allow from all
 
 
  
   documentroot "E:/htdocs/discuz" ServerName discuz.com directoryindex index.html index.htm index.php c5> Options followsymlinks allowoverride None Order allow,deny 

   allow from all
 
#在window Configuring the Host File

http://www.bkjia.com/PHPjc/976452.html www.bkjia.com true http://www.bkjia.com/PHPjc/976452.html techarticle Apache configuration Virtual host, Apache virtual host #在httpd. conf Open Virtual hosts Include conf/extra/httpd-vhosts.conf# and then in httpd-vhosts.conf Inside config # According to IP to match # Vi ...

  • 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.