大家好,
我现在在apache上配置有多个网站,所以会使用多个端口, 每个都有自己的域名, 我现在要问的是, 如何通过域名可访问到不同的端口对应的网站?
如:
<VirtualHost *:80>
DocumentRoot "F:\cms\student\StudentSystem"
ServerName student.com
AddDefaultCharset utf-8
ServerAlias www.student.com
ErrorLog "logs/student.wpw.com-error.log"
CustomLog "logs/student.wpw.com-access.log" common
</VirtualHost>
<VirtualHost *:8104>
DocumentRoot "F:\cms\jxt"
ServerName jxt.com
AddDefaultCharset utf-8
ServerAlias www.jxt.com
ErrorLog "logs/jxt.wpw.com-error.log"
CustomLog "logs/jxt.wpw.com-access.log" common
</VirtualHost>
<VirtualHost *:8105>
DocumentRoot "F:\cms\xuexiao"
ServerName xuexiao.com
AddDefaultCharset utf-8
ServerAlias www.xuexiao.com
ErrorLog "logs/xx.wpw.com-error.log"
CustomLog "logs/xx.wpw.com-access.log" common
</VirtualHost>
谢谢大家!!!
--
修改:darlingpeng FROM 59.49.77.*
FROM 59.49.77.*