使用此标记(以及适当的编程语言标记)来编写与Apache HTTP Server相关的问题。不要将此标记用于其他Apache Foundation产品的问题。请注意,服务器配置问题通常更适合https://serverfault.com
在 perl 和 ubuntu 16.04 上使用 -T 开关运行时 eval 中的不安全依赖性
在 Ubuntu 16.04 上加载 foswiki 的 apache 网站时,我遇到以下文本行的小问题。 错误: Foswiki 检测到内部错误 - 请检查您的 Foswiki 日志和网络...
htaccess:尝试 ErrorDocument 时找不到 404 错误
如果发生错误但未找到错误,我正在使用 .htaccess 文件重定向到错误页面。我正在测试 error.php 页面是否正常工作,但我得到了以下结果。 404 Not Found 错误是
您好,我想使用 htaccess 将所有以 .html 结尾的 URL 重定向到子域,例如 http://example.com/video.html http://example.com/gallery/first-galery.html http://example.com/category/month...
服务器: const io = socketio(服务器,{ 科尔斯:{ 来源:“https://melodybot.me”, 方法:[“GET”,“POST”], 凭据:tr ...
apache netbeans 中的 Springboot 项目。我无法将依赖项添加到 mavenproject
(https://i.stack.imgur.com/tRTlV.png) (https://i.stack.imgur.com/jERMp.png) (https://i.stack.imgur.com/HoQjR.png) 我尝试手动添加它们、清理和构建并重新加载 POM,但它没有用
SQL 实验室结果部分中的 Apache Superset Json 列在版本 2.1.0 中以单引号显示
最近我们将 Apache 超集更新到了 2.1.0 版。我在 SQL Lab 中注意到,在我们命中一个 sql 查询后,在结果部分,json 列在“单引号”中显示键值对 ...
如何通过 htaccess 重定向文档根目录并阻止直接访问新文档根目录
我已经创建了 .htaccess 规则,它工作得很好,它们将用户重定向到新的文档根目录,但我仍然可以通过简单地输入新文档的名称来访问网站的内容
如何编辑 Apache Forbidden 错误“您无权访问此资源。服务器无法读取 htaccess 文件,为了安全拒绝访问”
我正在尝试在我的站点中设置基于 Apache2.4(基于 Suse Linux)的自定义错误。 我遇到的最高问题是当我使用 chmod lik 设置一个带有“无权限”标志的目录时...
我正在使用 Laragon。更新 Windows 后,我发现我需要关闭 McAfee 中的高级防火墙才能访问 phpMyAdmin
我正在使用 Laragon。更新 Windows 后,我发现我需要关闭 McAfee 中的高级防火墙才能运行我的 Laravel 项目并访问 phpMyAdmin 数据库。 那不是...
在 Django 中加载 pickle ML 模型导致网站冻结
我有一个使用 Apache 运行网站的 Django 应用程序,在后端,我需要运行一个机器学习模型。 我已经使用 pickle 训练并保存了模型,并将其存储在“
我正在运行由 Bitnami (https://bitnami.com/redirect/to/2307584/bitnami-mediawiki-1.39.3-r2-debian-11-amd64.ova) 打包的 Mediawiki 虚拟机,我已经为机器设置了一个域名所以
我需要使用德鲁伊制作某种分析平台。我想征求社区关于德鲁伊是否适合的想法以及实现此类想法的某种想法。 我有个...
如何使用 .htaccess 访问 DocumentRoot 外部目录
现在我正在这样做: 项目文件夹 C:/代码/mysite.test/htdocsStd DocumentRoot文件夹 C:/Codes/mysite.test/htdocsStd/public 前台vue、vite、quasar... C:/Codes/mysite.test/htdocsStd/前端 迪...
“sudo certbot --nginx”运行失败,与“配置文件/etc/nginx/nginx.conf 测试失败”有关
我在尝试运行“sudo certbot --nginx”时收到此错误代码 << Error while running nginx -c /etc/nginx/nginx.conf -t. nginx: [emerg] dlopen() "/opt/bitnami/nginx/modules/
自托管 Wordpress 无法成功调整 upload_max_filesize
我使用 cURL 将最新的 wordpress 复制到 Linode ubuntu 20.04 服务器上,并能够使用 apache2 和自定义 DNS 实时部署它,但由于 PHP 原因无法上传 PRO 插件
当我想从 php 版本 (8.0) 切换到另一个 php 版本 (8.1) 时出现错误
我安装了 Ubuntu Server 20.04。我在尝试运行时遇到此错误 须藤 a2enmod php8.1 出现以下错误!!! 错误:模块 php8.1 不存在! 我想禁用手机...
我正在尝试重现此错误:https://issues.apache.org/jira/browse/SPARK-25947 谁能帮我重现这个?
我有一个用 Ubuntu 和 apache2 设置的服务器。我为我的域创建了一个 .conf 文件,并使用 certbot 设置了 ssl。 在浏览器的网址栏中输入任何子域时,例如:www.anysubdomain.mydoma ...
我如何连接到 Apache Tomcat 上托管的 Apache Cxf Web 服务(启用了安全性)?
我在 apache tomcat 7.0.29 下部署的 apacheCxf jar 中的 ws 安全示例中使用 wssec_sign_enc 示例。 我的 web.xml 是: 我在 apache tomcat 7.0.29 下部署的 apacheCxf jar 中的 ws 安全示例中使用 wssec_sign_enc 示例。 我的 web.xml 是: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>TestingWebWsSecurity</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> <servlet> <description>Apache CXF Endpoint</description> <display-name>cxf</display-name> <servlet-name>cxf</servlet-name> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>cxf</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> <session-config> <session-timeout>60</session-timeout> </session-config> <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/cxf-beans.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> </web-app> 我的cxf-beans.xml是 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:cxf="http://cxf.apache.org/core" xmlns:wsa="http://cxf.apache.org/ws/addressing" xmlns:http="http://cxf.apache.org/transports/http/configuration" xmlns:wsrm-policy="http://schemas.xmlsoap.org/ws/2005/02/rm/policy" xmlns:wsrm-mgr="http://cxf.apache.org/ws/rm/manager" xsi:schemaLocation=" http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://schemas.xmlsoap.org/ws/2005/02/rm/policy http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsd http://cxf.apache.org/ws/rm/manager http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd "> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath*:META-INF/cxf/cxf-extension-*.xml" /> <cxf:bus> <cxf:features> <cxf:logging /> <wsa:addressing /> </cxf:features> </cxf:bus> <http:conduit name="{http://cxf.apache.org/hello_world_soap_http}GreeterPort.http-conduit"> <http:client DecoupledEndpoint="http://localhost:12000/decoupled_endpoint" /> </http:conduit> <jaxws:endpoint xmlns:tns="http://cxf.apache.org/hello_world_soap_http" id="greeter" implementor="org.apache.cxf.hello_world_soap_http.GreeterImpl" wsdlLocation="wsdl/hello_world_wssec.wsdl" endpointName="tns:GreeterPort" serviceName="tns:GreeterService" address="/GreeterPort"> <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature" /> </jaxws:features> <jaxws:outInterceptors> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor"> <constructor-arg> <map> <entry key="action" value="UsernameToken Timestamp Signature Encrypt" /> <entry key="passwordType" value="PasswordText" /> <entry key="passwordCallbackClass" value="demo.wssec.server.UTPasswordCallback" /> <entry key="user" value="Alice" /> <entry key="signatureUser" value="serverx509v1" /> <entry key="encryptionUser" value="clientx509v1" /> <entry key="encryptionPropFile" value="etc/Server_SignVerf.properties" /> <entry key="encryptionKeyIdentifier" value="IssuerSerial" /> <entry key="encryptionParts" value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body" /> <entry key="signaturePropFile" value="etc/Server_Decrypt.properties" /> <entry key="signatureParts" value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body" /> <entry key="signatureKeyIdentifier" value="DirectReference" /> <entry key="encryptionKeyTransportAlgorithm" value="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" /> <entry key="signatureAlgorithm" value="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> </map> </constructor-arg> </bean> </jaxws:outInterceptors> <jaxws:inInterceptors> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor"> <constructor-arg> <map> <entry key="action" value="UsernameToken Timestamp Signature Encrypt" /> <entry key="passwordType" value="PasswordDigest" /> <entry key="passwordCallbackClass" value="demo.wssec.server.UTPasswordCallback" /> <!-- <entry key="user" value="server" /> --> <entry key="decryptionPropFile" value="etc/Server_Decrypt.properties" /> <entry key="encryptionKeyIdentifier" value="IssuerSerial" /> <entry key="signaturePropFile" value="etc/Server_SignVerf.properties" /> <entry key="signatureKeyIdentifier" value="DirectReference" /> <entry key="encryptionKeyTransportAlgorithm" value="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" /> <entry key="signatureAlgorithm" value="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> </map> </constructor-arg> </bean> </jaxws:inInterceptors> </jaxws:endpoint> </beans> 我的wsdl文件是: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="HelloWorld" targetNamespace="http://cxf.apache.org/hello_world_soap_http" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://cxf.apache.org/hello_world_soap_http" xmlns:x1="http://cxf.apache.org/hello_world_soap_http/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <schema targetNamespace="http://cxf.apache.org/hello_world_soap_http/types" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <element name="sayHi"> <complexType/> </element> <element name="sayHiResponse"> <complexType> <sequence> <element name="responseType" type="xsd:string"/> </sequence> </complexType> </element> <element name="greetMe"> <complexType> <sequence> <element name="requestType" type="xsd:string"/> </sequence> </complexType> </element> <element name="greetMeResponse"> <complexType> <sequence> <element name="responseType" type="xsd:string"/> </sequence> </complexType> </element> <element name="greetMeOneWay"> <complexType> <sequence> <element name="requestType" type="xsd:string"/> </sequence> </complexType> </element> </schema> </wsdl:types> <wsdl:message name="sayHiRequest"> <wsdl:part element="x1:sayHi" name="in"/> </wsdl:message> <wsdl:message name="sayHiResponse"> <wsdl:part element="x1:sayHiResponse" name="out"/> </wsdl:message> <wsdl:message name="greetMeRequest"> <wsdl:part element="x1:greetMe" name="in"/> </wsdl:message> <wsdl:message name="greetMeResponse"> <wsdl:part element="x1:greetMeResponse" name="out"/> </wsdl:message> <wsdl:message name="greetMeOneWayRequest"> <wsdl:part element="x1:greetMeOneWay" name="in"/> </wsdl:message> <wsdl:portType name="Greeter"> <wsdl:operation name="sayHi"> <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/> <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/> </wsdl:operation> <wsdl:operation name="greetMe"> <wsdl:input message="tns:greetMeRequest" name="greetMeRequest"/> <wsdl:output message="tns:greetMeResponse" name="greetMeResponse"/> </wsdl:operation> <wsdl:operation name="greetMeOneWay"> <wsdl:input message="tns:greetMeOneWayRequest" name="greetMeOneWayRequest"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sayHi"> <soap:operation soapAction="" style="document"/> <wsdl:input name="sayHiRequest"> <soap:body use="literal"/> </wsdl:input> <wsdl:output name="sayHiResponse"> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="greetMe"> <soap:operation soapAction="" style="document"/> <wsdl:input name="greetMeRequest"> <soap:body use="literal"/> </wsdl:input> <wsdl:output name="greetMeResponse"> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="greetMeOneWay"> <soap:operation soapAction="" style="document"/> <wsdl:input name="greetMeOneWayRequest"> <soap:body use="literal"/> </wsdl:input> </wsdl:operation> </wsdl:binding> <wsdl:service name="GreeterService"> <wsdl:port binding="tns:Greeter_SOAPBinding" name="GreeterPort"> <soap:address location="http://localhost:12000/TestingWebWsSecurity/services/GreeterPort"/> <wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/02/addressing/wsdl"/> </wsdl:port> </wsdl:service> </wsdl:definitions> 客户代码是: package demo.wssec.client; import java.io.Closeable; import java.lang.reflect.UndeclaredThrowableException; import java.net.URL; import java.util.HashMap; import java.util.Map; import org.apache.cxf.Bus; import org.apache.cxf.BusFactory; import org.apache.cxf.bus.spring.SpringBusFactory; import org.apache.cxf.hello_world_soap_http.Greeter; import org.apache.cxf.hello_world_soap_http.GreeterService; import org.apache.cxf.ws.security.wss4j.DefaultCryptoCoverageChecker; import org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor; import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor; public final class Client { private static final String WSU_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; private Client() { } public static void main(String args[]) throws Exception { try { SpringBusFactory bf = new SpringBusFactory(); URL busFile = Client.class.getResource("wssec.xml"); Bus bus = bf.createBus(busFile.toString()); BusFactory.setDefaultBus(bus); Map<String, Object> outProps = new HashMap<String, Object>(); outProps.put("action", "UsernameToken Timestamp Signature Encrypt"); outProps.put("passwordType", "PasswordDigest"); outProps.put("user", "abcd"); outProps.put("password", "storepassword"); outProps.put("signatureUser", "clientx509v1"); outProps.put("passwordCallbackClass", "demo.wssec.client.UTPasswordCallback"); outProps.put("encryptionUser", "serverx509v1"); outProps.put("encryptionPropFile", "etc/Client_Encrypt.properties"); outProps.put("encryptionKeyIdentifier", "IssuerSerial"); outProps.put("encryptionParts", "{Element}{" + WSU_NS + "}Timestamp;" + "{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"); outProps.put("signaturePropFile", "etc/Client_Sign.properties"); outProps.put("signatureKeyIdentifier", "DirectReference"); outProps.put("signatureParts", "{Element}{" + WSU_NS + "}Timestamp;" + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;" + "{}{http://www.w3.org/2005/08/addressing}ReplyTo;"); outProps.put("encryptionKeyTransportAlgorithm", "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"); outProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1"); bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps)); Map<String, Object> inProps = new HashMap<String, Object>(); inProps.put("action", "UsernameToken Timestamp Signature Encrypt"); inProps.put("passwordType", "PasswordText"); inProps.put("passwordCallbackClass", "demo.wssec.client.UTPasswordCallback"); inProps.put("decryptionPropFile", "etc/Client_Sign.properties"); inProps.put("encryptionKeyIdentifier", "IssuerSerial"); inProps.put("signaturePropFile", "etc/Client_Encrypt.properties"); inProps.put("signatureKeyIdentifier", "DirectReference"); inProps.put("encryptionKeyTransportAlgorithm", "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"); inProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1"); bus.getInInterceptors().add(new WSS4JInInterceptor(inProps)); // Check to make sure that the SOAP Body and Timestamp were signed, // and that the SOAP Body was encrypted DefaultCryptoCoverageChecker coverageChecker = new DefaultCryptoCoverageChecker(); coverageChecker.setSignBody(true); coverageChecker.setSignTimestamp(true); coverageChecker.setEncryptBody(true); bus.getInInterceptors().add(coverageChecker); GreeterService service = new GreeterService(); Greeter port = service.getGreeterPort(); String[] names = new String[] {"Anne", "Bill", "Chris", "Sachin Tendulkar"}; // make a sequence of 4 invocations for (int i = 0; i < 4; i++) { System.out.println("Invoking greetMe..."); String response = port.greetMe(names[i]); System.out.println("response: " + response + "\n"); } // allow asynchronous resends to occur Thread.sleep(30 * 1000); if (port instanceof Closeable) { ((Closeable)port).close(); } bus.shutdown(true); } catch (UndeclaredThrowableException ex) { ex.getUndeclaredThrowable().printStackTrace(); } catch (Exception ex) { ex.printStackTrace(); } finally { System.exit(0); } } } 当我执行客户端代码时,它说: Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://localhost:12000/TestingWebWsSecurity/services/GreeterPort at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1526) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1486) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1305) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:50) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:223) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:623) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 9 more javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145) at com.sun.proxy.$Proxy40.greetMe(Unknown Source) at demo.wssec.client.Client.main(Client.java:120) Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://localhost:12000/TestingWebWsSecurity/services/GreeterPort at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1526) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1486) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1305) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:50) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:223) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:623) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) ... 2 more 找到它,我希望它能帮助别人 只需将 localhost 替换为 ip 地址,一切都会好起来的 看看类似的帖子 http://cxf.547215.n5.nabble.com/404-from-web-service-client-td5710925.html 解决方案如下:更新您的 cxf-beans.xml 使用: <cxf:bus> <cxf:inInterceptors> <ref bean="inIntercTest"/> </cxf:inInterceptors> <cxf:outInterceptors> <ref bean="outIntercTest"/> </cxf:outInterceptors> </cxf:bus> 代替: <cxf:bus> <cxf:features> <cxf:logging /> <wsa:addressing /> </cxf:features> </cxf:bus>
加载失败/opt/cpanel/ea-php70/root/usr/lib64/php/modules/:没有模块描述
我收到这个错误,我不明白为什么 我有一台使用 easyApache 4 VPS 的 CentOS 6.8 服务器 我怎样才能找出哪个模块没有加载? 加载失败 /opt/cpanel/ea-php70/root/usr/...