index.jsp 文件放到 /htdoc/ 下即可.
解决方案 »
- 为什么只传的前面2项的值呢????在线等急!!!!!
- java抓取新闻
- Hibernate的多对多如何只插入关联?
- SVN出问题,unable to connect to a repository at url 'svn //localhost'
- 求sphinx和java项目整合!!!!!!!!!!
- 低级问题 如何把int 类型的值转换成 double 或 long 类型?
- 再次告急!刚才我的jbuilder中配置的tomcat连接池已经正常启动了,但使用测试页出现javax.naming.NamingException,请大虾再次拔刀相助!
- 如何实现socket缓冲池??
- 128内存是否能装 weblogic?
- 谁有j2eesdk-1_4-beta2-windows-eval
- 跪地诚求高人解答...在线等救
- 怎么样将一个子元素element添加到另外一个不是创建他的document中阿
我好像听别人说是只要配置apache就可以的了,是这样的嘛?又怎么配呢?
我放到htdoc这个目录下面,它怎么会转到index.jsp这个页面阿?在哪里设置的?
我的版本较老您参考一下吧!
/usr/local/apache/conf/目录下的http.conf文件中的内容的“DocumentRoot /home/*”(其中*为您的目录)
如果您想让用户使用CGI程序,不妨修改“ScriptAlias/cgi-bin/ "/home/username/cgi.bin"”
这里username是用户名字。另外"Serverroot Mypath"可以设置Mypath为顶级目录,错误信息,服务器配置,日志等文件。
“Timeout *”可设置连接失效时间。
我apache是配置成功的了,也可以访问,就是想让访问能简便点,谢谢你的意见
----------
DocumentRoot "C:/Apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory><Directory "C:/Apache2/htdocs">
/etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory><Directory "/var/www/html">
好像还是不行
JkMount *.jsp worker1
JkMount *.do worker1
JkMount /servlet/* worker1#设置开始文件
DirectoryIndex index.html index.html.var index.htm index.php index.jsp
----------
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html/"
#你可以尝试加一个
alias / "/var/www/html/"
要哭了,全部试过了,就是没效果。
DocumentRoot "/var/www/html"
<Directory "/var/www/html">结果把.jsp的内容给直接当文本文件输出了......加上(sorry, 上面给的少了/)
JkMount /*.jsp worker1
JkMount /*.do worker1
JkMount /servlet/* worker1结果显示了tomcat/webapps/ROOT/index.jsp
......呃,这是jk_model的功能之一,看看有没有办法避开.keep trying
Starting httpd: Syntax error on line 282 of /etc/httpd/conf/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]
这是怎么回事?