我把apache2和tomcat5.5整合起来了,现在我的web版bbs是放在/bbs/www下面,另外我的另一个网站放在/www下面,web版kbs是用php写的,网站是用jsp,现在基本整合成功,还有个问题没搞明白,在/etc/apache2/site-available/下面的default里面该怎么写呢,需要为网站重新再写个么?我现在是把两个东西都塞到default里面,但好像有问题的:
/*/etc/apache2/site-available/default*/
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /bbs/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /bbs/www>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
DirectoryIndex index.jsp index.php index.html index.htm
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
<Directory "/www">
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory "/www/WEB-INF">
Order deny,allow
Deny from all
</Directory>
现在我把后面两段删除,重启apache和tomcat,一样可以运行。我是参考etony的文档做的
--
FROM 60.191.126.*