mod-jk问题-auth-cas

apache2  ubuntu apt-get install   ubuntu 10

tomcat6

 

 

zdx@ubuntu:/etc/apache2/conf.d$ sudo /etc/init.d/apache2 restart
Syntax error on line 1 of /etc/apache2/conf.d/uriworkermap.properties:
Invalid command '/casapp/*=loadbalancer', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!
zdx@ubuntu:/etc/apache2/conf.d$ ls

 

http://www.gilluminate.com/2005/07/07/apache-httpd-and-tomcat-connector-with-mod_jk/

, I was getting the error because I had workers.properties stored in /etc/apache2/conf.d/
I moved it to /etc/apache/ and it worked.

 

 

 

 

[Sun Mar 20 07:14:58 2011][22008:3060927344] [debug] jk_translate::mod_jk.c (3434): missing uri map for localhost.localdomain:/casapp/index.jsp
[Sun Mar 20 07:14:58 2011][22008:3060927344] [debug] jk_map_to_storage::mod_jk.c (3593): missing uri map for localhost.localdomain:/casapp/index.jsp

 

 

http://blog.csdn.net/BlueCY/archive/2010/09/20/5897103.aspx

 

JkMountCopy On

For Apache you can define individual uriworkermap files per virtual host.
The directive JkMountFile can be used in the main server and in each virtual host.
If a virtual host does not use JkMountfile, but JkMountCopy is set to 'On',
then it inherits the JkMountFile from the main server. If you want all vhost to inherit

mounts from the main server, you can set JkMountCopy to 'All' in the main server.






JkMountCopy


If this directive is set to "On" in some virtual server, the mounts from the global server will be copied to this virtual server, more precisely all mounts defined by JkMount or JkUnMount. The Mounts defined by JkMountFile and JkAutoAlias will only be inherited, if the VirtualHost does not define it's own JkMountFile or JkAutoAlias.
If you want all vhost to inherit mounts from the main server, you can set JkMountCopy to 'All' in the main server.
This directive is only allowed inside VirtualHost (with value "On") and in the global server (with value "All").
The default is Off, so no mounts will be inherited from the global server to any VirtualHost.
Starting with version 1.2.26 you can also set it to "All" in the global virtual server. This will switch the default to On.

 

 

 

 

[error] MOD_AUTH_CAS : CASCookiePath '/dev /null ' is not a directory or
does not end in a trailing '/'!

 

http://www.howtoforge.com/how-to-set-up-apache-tomcat-mod_jk-sso-cas-mod_auth_cas

 

http://jasig.275507.n4.nabble.com/mod-auth-cas-crashing-Apache-td262958.html   

 

OK, I moved them outside the vhost and that seems to have done thetrick. Thanks very much!

 

 

 

<Directory "/casapp/">
AuthType CAS
Require valid-user
</Directory>

</VirtualHost>

LoadModule auth_cas_module /usr/lib/apache2/modules/mod_auth_cas.so
CASCookiePath "/tmp/cas//"
CASloginURL https://192.168.245.139:8443/cas/login
CASValidateURL https://192.168.245.139:8443/cas/serviceValidate
CASCertificatePath /home/zdx/cas-key.cer

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值