apache +tomcat 整合问题

apache +tomcat 整合问题



QUOTE:
[root@localhost bin]# ./apachectl -t
Syntax OK



QUOTE:
[root@localhost bin]# ./httpd -S
VirtualHost configuration:
192.168.10.240:80      is a NameVirtualHost
         default server localhost (/usr/local/apache2/conf/extra/httpd-vhosts.conf:26)
         port 80 namevhost localhost (/usr/local/apache2/conf/extra/httpd-vhosts.conf:26)
Syntax OK

各位老大这个是什么原因引起 的?
httpd-vhosts.conf

QUOTE:
NameVirtualHost 192.168.10.240:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost 192.168.10.240:80>
<Directory "/usr/local/tomcat/webapps/Root">
DirectoryIndex index.htm index.html index.jsp
</Directory>
    ServerAdmin tzk@itfm.com
    DocumentRoot /usr/local/tomcat/webapps/ROOT
    ServerName localhost:80
    ErrorLog logs/ITFM-error_log
    CustomLog logs/ITFM-access_log common
</VirtualHost>



QUOTE:
原帖由 aklus 于 2007-3-24 14:56 发表




各位老大这个是什么原因引起 的?
httpd-vhosts.conf


ServerName localhost:80
80不要了
你的不时语法错误:)
只是提示你写的有点小问题 :)