AbyssalSwamp  ActivaUser
» Guest:  Register | Login | 会员列表

RSS subscription to this AbyssalSwamp  

Previous thread Next thread
     
Title: win_apache  
 
com
超级版主
Rank: 12Rank: 12Rank: 12


UID 1
Digest 2
Points 2
Posts 169
码币MB 309 Code
黄金 0 Catty
钻石 903 Pellet
Permissions 200
Register 2022-2-7
Status offline
win_apache

1:单个IP对应单个玉米 例如:www.phpunion.com对应192.168.1.1 www.feelone.net对应192.168.1.2 在httpd.conf中加入如下指令 #对应玉米所指向的IP DocumentRoot \\\"c:/web/php\\\" #www.phpunion.com要指向的目录,注意一定要有\\\"\\\" ServerName www.phpunion.com #所要绑的玉米 #对应玉米所指向的IP DocumentRoot \\\"c:/web/feel\\\" #www.feelone.net要指向的目录,注意一定要有\\\"\\\" ServerName www.feelone.net #所要绑的玉米 ~~~~~~~~~~~~~~~ 剩下的可以继续绑! 2:单个IP对应多个玉米 NameVirtualHost 192.168.1.1 #记得一定要有着句啊! #对应玉米所指向的IP DocumentRoot \\\"c:/web/php\\\" #www.phpunion.com要指向的目录,注意一定要有\\\"\\\" ServerName www.phpunion.com #所要绑的玉米 #对应玉米所指向的IP DocumentRoot \\\"c:/web/feel\\\" #www.feelone.net要指向的目录,注意一定要有\\\"\\\" ServerName www.feelone.net #所要绑的玉米 这样就绑上对应的目录了,如果没有NameVirtualHost 192.168.1.1 这个指令的话,所有的玉米就都指到php目录了. 然后重新启动apache,就可以看到所指的玉米对应相应的虚拟目录!
2007-5-22 01:40#1
View profile  Blog  Send a short message  Top
 
mozh





UID 26
Digest 0
Points 0
Posts 0
码币MB 0 Code
黄金 0 Catty
钻石 0 Pellet
Permissions 10
Register 2007-5-9
Status offline
2007-5-22 02:13#2
View profile  Blog  Send a short message  Top
 
mozh





UID 26
Digest 0
Points 0
Posts 0
码币MB 0 Code
黄金 0 Catty
钻石 0 Pellet
Permissions 10
Register 2007-5-9
Status offline
我重以为系咩添
2007-5-22 02:13#3
View profile  Blog  Send a short message  Top
     


  Printable version | Recommend to a friend | Subscribe to topic | Favorite topic  


 


All times are GMT+8, and the current time is 2026-1-16 06:17 Clear informations ->sessions/cookies - Contact Us - CAFFZ - ZAKE