歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> LAMP配置虛擬目錄

LAMP配置虛擬目錄

日期:2017/3/3 11:32:16   编辑:Linux技術

1. httpd.conf中添加 Listen 81

2.

1  <VirtualHost 127.0.0.2:81>
 2       DocumentRoot E:\ws\2011\DiscuzSpace\upload
 3     ServerName 127.0.0.2:81
 4 </VirtualHost>
 5 <Directory "E:\ws\2011\DiscuzSpace\upload">
 6     Options Indexes FollowSymLinks Multiviews
 7     AllowOverride All
 8     Order Allow,Deny
 9     Allow from all
10 </Directory>

1 <VirtualHost 127.0.0.5:81>
 2     DocumentRoot E:\php-ws-source\myphp
 3     ServerName 127.0.0.5:81
 4 </VirtualHost>
 5 <Directory "E:\php-ws-source\myphp">
 6     Options Indexes FollowSymLinks Multiviews
 7     AllowOverride All
 8     Order Allow,Deny
 9     Allow from all
10     DirectoryIndex index.html
11 </Directory>

Copyright © Linux教程網 All Rights Reserved