`
zdx3578
  • 浏览: 95364 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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

分享到:
评论

相关推荐

    Go-httpauth-Go的HTTP身份验证中间件

    在Go语言的Web开发中,安全性和访问控制是不可或缺的部分,`Go-httpauth`就是一款专为Go设计的HTTP身份验证中间件。这个中间件使得开发者可以轻松地为他们的Web应用添加基本的身份验证机制,从而保护敏感的API接口...

    httpie-jwt-auth, HTTPie的JWTAuth ( JSON网络令牌) 认证插件.zip

    httpie-jwt-auth, HTTPie的JWTAuth ( JSON网络令牌) 认证插件 httpie-jwt-auth JWTAuth ( 。JSON网络令牌) 用于 HTTPie的认证插件。安装最新稳定版本:$ pip install -U httpie-jwt-auth最新开发版

    hadoop-auth-2.2.0.jar

    hadoop-auth-2.2.0.jar

    开源项目-kfirufk-go-angular2-material-auth0-and-more.zip

    开源项目-kfirufk-go-angular2-material-auth0-and-more.zip,go and angular2 starter kit, updated to angular 2.1.0-rc.0, I would like some feedback. thanks!

    Aspnet-Hydro-Asp.Net-Mvc-Auth.zip

    Aspnet-Hydro-Asp.Net-Mvc-Auth.zip,对于hydro,请编辑用于asp.net.hydro 2fa auth的mvc和api,asp.net是一个开源的web框架,用于使用.net构建现代web应用和服务。asp.net创建基于html5、css和javascript的网站,这些...

    Go-Go-AWS-Auth-AWS(AmazonWebServices)请求登录库

    Go-AWS-Auth - AWS (Amazon Web Services) 请求登录库

    Laravel开发-laravel-x509-auth

    在"laravel-x509-auth-master"压缩包中,你可能找到源代码、示例配置文件、README文档以及其他资源,帮助你理解和使用这个扩展。阅读文档和源代码,了解如何配置和自定义中间件,以便适应你的具体需求。 总之,...

    Huawei Auth-Http Server 1.0 passwd文件泄露漏洞POC

    -u 指定单个url -l 指定url文件 先用fofa脚本爬取所有Huawei Auth-Http相关资产(fofa脚本下载地址:) python3 fofa-cwillchris.py -k body="umweb/u20.png" 然后用此脚本 ./poc.bin -l url.txt

    前端项目-ember-simple-auth.zip

    在ember-simple-auth-master文件夹中,你将找到ember-simple-auth项目的源代码,包括以下组成部分: - **lib** 目录:存放ember-simple-auth的主要源代码,分为多个模块,如session、authenticator、adapter等,每...

    ERP系统信息化资料:SAP专业文档资料09-40BC361-UserAuth.PPT

    ERP系统信息化资料:SAP专业文档资料09-40BC361-UserAuth.PPT

    Laravel开发-jwt-cas-server

    本项目 "Laravel开发-jwt-cas-server" 是基于 Laravel 5.3 的一个简单 CAS 服务器实现,利用 JWT 技术进行认证。以下是这个项目中涉及的主要知识点: 1. **Laravel 5.3**: Laravel 5.3 是 Laravel 框架的一个版本,...

    docker-nginx-basic-auth:Nginx-basic-auth的Dockerfile,用于将Docker的自动构建发布到公共Docker Hub注册表

    该存储库包含 -basic-auth的Dockerfile ,用于将的 发布到公共。 基础Docker映像 安装 安装 。 从公共下载 : docker pull igortimoshenko/docker-nginx-basic-auth (或者,您可以从Dockerfile构建映像:docker ...

    hikvision_CVE-2017-7921_auth_bypass_config_decryptor-main.zip

    标题 "hikvision_CVE-2017-7921_auth_bypass_config_decryptor-main.zip" 指向的是一个与海康威视(Hikvision)设备相关的安全漏洞,具体是CVE-2017-7921认证绕过漏洞。这个压缩包可能包含一个工具或指南,用于解析...

    Cas-mysql连接相关jar

    &lt;Resource name="jdbc/myCasDataSource" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/casdb?useSSL=false&serverTimezone=UTC" ...

    nacos-auth-2.0.4.RELEASE-API文档-中英对照版.zip

    赠送jar包:nacos-auth-2.0.4.RELEASE.jar; 赠送原API文档:nacos-auth-2.0.4.RELEASE-javadoc.jar; 赠送源代码:nacos-auth-2.0.4.RELEASE-sources.jar; 赠送Maven依赖信息文件:nacos-auth-2.0.4.RELEASE.pom;...

    hadoop-auth-2.6.0.jar

    hadoop-auth-2.6.0.jar hadoop-auth-2.6.0.jar hadoop-auth-2.6.0.jar

    Laravel开发-laravel-api-auth

    在【压缩包子文件的文件名称列表】"laravel-api-auth-master"中,"master"通常指的是主分支,意味着这是项目的最新稳定版本。这个目录可能包含了源代码、配置文件、测试用例、示例和安装指南等内容,帮助开发者理解...

    hadoop-auth-2.5.1-API文档-中文版.zip

    赠送jar包:hadoop-auth-2.5.1.jar; 赠送原API文档:hadoop-auth-2.5.1-javadoc.jar; 赠送源代码:hadoop-auth-2.5.1-sources.jar; 赠送Maven依赖信息文件:hadoop-auth-2.5.1.pom; 包含翻译后的API文档:hadoop...

    docker-nginx-basic-auth:用于基本身份验证的简单Docker映像

    docker run -d -p 80:80 --link web:web --name auth beevelop/nginx-basic-auth 尝试使用用户名foo和password bar访问和登录。 先进的 docker run -d \ -e HTPASSWD= ' foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn...

    前端开源库-express-basic-auth

    - **日志记录**:记录认证失败尝试,以便监控潜在的安全问题。 总结,`express-basic-auth`是一个方便的工具,可以快速为Express应用添加基本的认证功能。虽然简单,但在适当的情境下,它可以提供必要的安全保护。...

Global site tag (gtag.js) - Google Analytics