读书人

mod-jk有关问题-auth-cas

发布时间: 2012-12-19 14:13:15 作者: rapoo

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 OnFor 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 inheritmounts 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 thisvirtual server, more precisely all mounts defined by JkMountor JkUnMount. The Mounts defined by JkMountFile and JkAutoAliaswill only be inherited, if the VirtualHost does not defineit'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 globalserver to any VirtualHost.
Starting with version 1.2.26 you can also set it to "All" in theglobal 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

读书人网 >编程

热点推荐