在我的多域配置中无法访问Tomcat Manager.即使两个域中都存在管理器文件,我也会得到404.
有趣的是,我能够在本地进行此配置.但是,当我将配置传输到我的服务器时,它就崩溃了.
这是我的配置文件:
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed …Run Code Online (Sandbox Code Playgroud) 即使页面存在于磁盘上,我也会收到404.
我运行了Web服务器配置工具并重启了几次.
.cfm文件的处理程序映射(配置工具似乎有效):C:\ ColdFusion10\config\wsconfig\1\isapi_redirect.dll
虚拟路径:root/index.cfm < - 工作root/dan.cfm < - 不起作用
服务器:Windows 2008 R2,IIS 7.5和Coldfusion 10
我的其他配置:

更新1
/ wsconfig/1文件夹上的NTFS安全信息:

答案 - TLDR
将名为"jakarta"的虚拟目录映射到CFUSION INSTALL\config\wsconfig {instance id}
无需向文件夹添加APPPool权限...
Xdebug轨迹中的内存值单位是多少?字节?
例如,我有这些线:
TRACE START [2011-11-30 13:11:18]
0.2122 2618704 +489048 -> require_once(...) ...:8
...
0.4147 6847864 +64 -> strtr(string(34), array(128)) ...:21
Run Code Online (Sandbox Code Playgroud)
那么,6847864 = 6.5MB吗?
我试图强制Jetty只使用HTTPS(或从HTTP重定向到HTTPS).
到目前为止,我可以使用HTTP和HTTPS访问服务器.
这是连接器配置:
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="port"><SystemProperty name="jetty.port" default="8888"/></Set>
<Set name="maxIdleTime">30000</Set>
<Set name="Acceptors">2</Set>
<Set name="statsOn">false</Set>
<Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">1000</Set>
<Set name="lowResourcesMaxIdleTime">500</Set>
</New>
</Arg>
</Call>
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.security.SslSocketConnector">
<Set name="Port">8443</Set>
<Set name="maxIdleTime">30000</Set>
<Set name="handshakeTimeout">2000</Set>
<Set name="keystore"><SystemProperty name="jetty.home" default="." />/etc/keystore</Set>
<Set name="password">aaa</Set>
<Set name="keyPassword">bbb</Set>
<Set name="truststore"><SystemProperty name="jetty.home" default="." />/etc/keystore</Set>
<Set name="trustPassword">aaa</Set>
<Set name="handshakeTimeout">2000</Set>
</New>
</Arg>
</Call>
Run Code Online (Sandbox Code Playgroud)
我已经尝试将默认端口设置为8443(在第一个连接器中),这不起作用并生成错误.
是否可以准确知道以下 Ansible 代码将在远程服务器上执行什么命令
- name: Ensure apache is running
service: name=httpd state=started
become: true
Run Code Online (Sandbox Code Playgroud)
我相信用户应该拥有适当的 sudo 权限。然而,我不断得到sudo: a password is required。
更新#1
根据提供的评论,这是我的完整 Ansible 命令:
ANSIBLE_KEEP_REMOTE_FILES=1 sudo -u userA ansible-playbook ssl_playbook.yml -i inventories/staging --extra-vars "target=my_server_set" --private-key=/path/to/ssh.key --u userB -vvv
Run Code Online (Sandbox Code Playgroud)
如何确认我的JAR文件已在Coldfusion中加载?我在CF10上.
我目前收到此错误:
Could not find the ColdFusion component or interface org.apache.batik.transcoder.image.PNGTranscoder.
Run Code Online (Sandbox Code Playgroud)
我的网站结构如下:
/root
/root/application.cfc
/root/jar/batik-1.7/
Run Code Online (Sandbox Code Playgroud)
在我的application.cfc中,我有以下代码:
<cfset This.javaSettings = {loadPaths: ["jar/"],loadColdFusionClassPath: true,reloadOnChange: true,watchInterval: 2}>
Run Code Online (Sandbox Code Playgroud)
这是我调用一切的代码:
<cffunction name="getPng" access="public" output="true">
<cfsavecontent variable="out">
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="612px" height="792px" viewBox="0 0 612 792" enable-background="new 0 0 612 792" xml:space="preserve">
<path fill="##006838" stroke="##414042" stroke-miterlimit="10" d="M416.413,388.223c0,6.627-5.373,12-12,12H140.317
c-6.627,0-12-5.373-12-12V272.54c0-6.627,5.373-12,12-12h264.096c6.627,0,12,5.373,12,12V388.223z"/>
<text id="HomeScore" transform="matrix(1 0 0 1 358.5391 361.333)" fill="##F1F2F2" font-family="'ArialMT'" font-size="24">3</text>
<text id="Home" transform="matrix(1 0 0 1 …Run Code Online (Sandbox Code Playgroud) 我在MySQL中有一个类型为text的字段,使用以下排序规则:utf8_general_ci.
使用使用DOMDocument构建的变量填充此XML字段:
function ed_audit_node($dom, $field, $new, $old){
//create audit_detail node
$ad = $dom->createElement('audit_detail');
$fn = $dom->createElement('fieldname');
$fn->appendChild($dom->createTextNode($field));
$ad->appendChild($fn);
$ov = $dom->createElement('old_value');
$ov->appendChild($dom->createTextNode($old));
$ad->appendChild($ov);
$nv = $dom->createElement('new_value');
$nv->appendChild($dom->createTextNode($new));
$ad->appendChild($nv);
//append to document
return $ad;
}
Run Code Online (Sandbox Code Playgroud)
这是我如何保存到db($ xml来自$ dom-> saveXML()):
function ed_audit_insert($ed, $xml){
global $visitor;
$sql = <<<EOF
INSERT INTO ed.audit
(employee_id, audit_date, audit_action, audit_data, user_id)
VALUES (
{$ed[emp][employee_id]},
now(),
'{$ed[audit_action]}',
'{$xml}',
{$visitor[user_id]}
);
EOF;
$req = mysql_query($sql,$ed['db']) or die(db_query_error($sql,mysql_error(),__FUNCTION__));
//snip
}
Run Code Online (Sandbox Code Playgroud)
请参阅一个较旧的,平行的,稍微相关的关于我如何创建此XML的线程: 另一个PHP XML解析错误:"输入不正确的UTF-8,表示编码!"
有效: - 查询数据库,选择字段并使用jQuery(.ajax())输出并填充textarea.Firebug和textarea匹配数据库中的内容(与Toad确认).
什么不起作用 …
我正在尝试参数化当前正在运行且SQL注入攻击已经成熟的查询:
qryAwards = ORMExecuteQuery(
"from Award where awardID in (#form.deleteAwardList#) and Game.Season.User.userID=:uid",
{uid=session.userID}
);
if(not isNull(qryAwards) and arrayLen(qryAwards)){
for(i in qryAwards){
entityDelete(i);
}
}
Run Code Online (Sandbox Code Playgroud)
我试过这个,没有单引号的param:
qryAwards = ORMExecuteQuery(
"from Award where awardID in (:awardList) and Game.Season.User.userID=:uid",
{awardList=form.deleteAwardList, uid=session.userID}
);
Run Code Online (Sandbox Code Playgroud)
我一直收到以下错误:
The value 117,118 cannot be converted to a number.
这个,用单引号括起来:
qryAwards = ORMExecuteQuery(
"from Award where awardID in (':awardList') and Game.Season.User.userID=:uid",
{awardList=form.deleteAwardList, uid=session.userID}
);
Run Code Online (Sandbox Code Playgroud)
得到以下错误:
Invalid parameters specified for the query.
我试图满足一项要求,即在通过Shibboleth进行身份验证之后,始终将用户重定向到相同的URL。
目前,它将重定向到我们要忽略的引荐来源网址(可以更改),并用我们自己的引荐来源网址(永不更改)替换。
更新#1
不确定是否需要在SP或IDP级别上执行此操作。
我的目标是让端口80和81监听并提供来自两个不同路径的内容.我正在寻找复制我以前使用IIS和在特定端口上创建网站的内容.
我获取了基本配置文件,并在Server标记(server.xml)中添加了以下行:
<Service name="stable">
<Connector port="80" protocol="HTTP/1.1" />
<Context docBase="C:\websites\test\stable\" />
</Service>
<Service name="release">
<Connector port="81" protocol="HTTP/1.1" />
<Context docBase="C:\websites\test\release\" />
</Service>
Run Code Online (Sandbox Code Playgroud)
我正在提示我必须为我想要运行的每个端口(在主Server标记内)安装带有Connector和Context标记的Service标记.
我查看了我的日志,发现了以下内容:
16-Jan-2011 8:54:44 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
at java.lang.Thread.run(Thread.java:619)
Run Code Online (Sandbox Code Playgroud)
我知道Context在更本地化的context.xml文件中工作得更好,但我不介意重新启动,直到我开始工作.或者它可能需要在那里(不是每个APress Pro Apache TomCat6).
此时,转到IP:80不会显示任何内容,没有文件,没有错误,只是一个空白页面.即使我尝试访问index.html(在适当的docBase中复制),我得到一个没有任何错误的空白屏幕.
编辑#2
我想我会发布我的文件以防有人有更多的时间在他们的手上,并希望了解他们.
这是我的server.xml文件:http: //pastebin.com/DAunTPTg
这是我现在得到的错误:http: //pastebin.com/mrrd0116
编辑#3
为了简单起见,我试图让端口80正确响应.
根据我的书:
使用DNS配置的此虚拟主机的名称.嵌套在引擎中的其中一个主机必须具有与该引擎的defaultHost属性匹配的名称.
为什么我会指示除localhost之外的任何东西(localhost1不会工作呢?)
这就是我现在所处的位置,仍然无法正常工作:
<Service name="Stable">
<Connector
port="80"
protocol="HTTP/1.1"
connectionTimeout="20000" …Run Code Online (Sandbox Code Playgroud)