带有Rails的单用户OpenID服务器(Single-user OpenID server with Rails)
我的网站的根页面会自动通过http标头将所有用户重定向到某个子页面。
http://example.com/ → http://example.com/subpage
我想将我的域
example.com
用作OpenID。 问题是我必须在我的根页面添加一些标记,但它应该重定向子页面上的所有用户。 我可以更改重定向的类型并使用例如元标记。 但有没有更好的方法来实现它,不要打破即时http重定向?也许我可以以某种方式区分OpenID请求,只有那个时间用html响应?
My website's root page automatically redirects all users to some subpage via http header.
http://example.com/ → http://example.com/subpage
I want to use my domain
example.com
as OpenID. The problem is that I have to add some tag to my root page, but it should redirect all users on subpage. I can change the type of redirection and use e.g. meta tag. But is there a better way to implement that and don't break instant http redirect?Maybe I can somehow distinguish OpenID request and only that time respond with html?
原文:https://stackoverflow.com/questions/3588430
最满意答案
javascript,css文件放在哪里? src / main / webapp / css src / main / webapp / js
什么是顶级src? 是的,src / main / java src / main / resources src / test / java src / test / resources
我建议你使用Maven项目类型。 在Eclipse中:New> Project ...> Maven> Maven Project
Where would javascript,css files be place? src/main/webapp/css src/main/webapp/js
What is top level src normally for? yes, src/main/java src/main/resources src/test/java src/test/resources
I suggest you use a Maven project type. In Eclipse: New > Project... > Maven > Maven Project
相关问答
更多-
android 3d游戏开发 所需要的软件[2023-10-23]
eclipse -
除了IIS和Apache,还有没有其它的服务器程序[2022-05-09]
tomcat -
安卓应用程序开发使用哪个开发工具最好?[2022-11-21]
eclipse -
安卓手机编程现在用什么软件?并求下载地址。[2022-05-06]
eclipse -
我找到了以下解决方案: 在日志文件中我们可以看到: Unsupported major.minor version 52.0 正如我们在这里可以看到的: 不受支持的major.minor版本52.0 这是因为我的eclipse在Java 1.8中编译我的项目,而我的tomcat在1.7中运行。 即使我在Eclipse下修改了我的项目构建路径和编译器1.7(+ clean和rebuild)。 所以我只是将我的Tomcat java版本从1.7更改为1.8,现在一切正常。 I found the follow ...
-
eclipse中的Tomcat服务器不适用于Gradle构建项目(Tomcat server within eclipse not working for Gradle build project)[2024-01-29]
将Source配置为/WebContent并在部署中部署Path /在项目属性中的程序集为我启动了tomcat服务器。 Configuring Source as /WebContent and Deploy Path / in Deployment Assembly in project properties started the tomcat server for me. -
我使用命令mvn archetype:generate ...创建了一个maven项目mvn archetype:generate ...以生成我然后导入到Eclipse中的项目结构。 然后,我为该项目添加了一个动态网页小平面。 你不应该添加任何方面,如果你的项目有一个打包类型的战争的东西应该工作。 因此,提供用于使用原型插件创建项目的完整命令是很好的。 你用过maven-archetype-webapp原型吗? 你是否跑过这样的东西: mvn archetype:generate -DarchetypeA ...
-
javascript,css文件放在哪里? src / main / webapp / css src / main / webapp / js 什么是顶级src? 是的,src / main / java src / main / resources src / test / java src / test / resources 我建议你使用Maven项目类型。 在Eclipse中:New> Project ...> Maven> Maven Project Where would javascript ...
-
我想,你正在使用注释配置,它不需要与web.xml进行任何映射 您的servlet url模式如下所示: @WebServlet(name = "someThing", urlPatterns = {"/Hello"}) Servlet 3.0的这一新功能使您可以将servlet Hello映射到Web App firstServlet 。 I guess that, you are using annotation configuration which does not need any mappin ...
-
尝试链接的资源。 转到要在其中显示外部目录的文件夹。 现在打开文件菜单 - >新建 - >文件夹。 输入名称。 点击“高级>>”。 选择“链接到备用位置(链接文件夹)”。 浏览到外部目录。 单击完成。 这将创建从工作区到外部目录的链接。 该插件可能支持该功能。 Try a linked resource. Go to the folder in which you want your external directory to apprear. Now open the File menu -> New - ...