apache反向代理hhtps(apache reverse proxy hhtps)
设置Apache反向代理客户端==>代理==>服务器
这是在我本地测试的Windows机器上,在我的主机文件中设置了一个条目,将代理DNS映射到127.0.0.1
httpd.conf文件
<VirtualHost *:443> ServerName <proxy Server> SSLEngine On SSLProxyEngine On ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> SSLCertificateFile "<cert for proxy server>" SSLCertificateKeyFile "<key for proxy server>" ProxyPass / https://appserver.com/ ProxyPassReverse / https://appserver.com/ </VirtualHost>
我在启动时看不到error.log中的任何错误。 当我发出请求https://proxy.com时 ,access.log或error.log中没有条目。
任何人都可以在配置中看到问题或给出一些想法? 谢谢Rahul
Setting up apache reverse proxy Client ==> Proxy ==> Server
This is on a windows machine on my local for testing have set an entry in my host file mapping the proxy dns to 127.0.0.1
httpd.conf
<VirtualHost *:443> ServerName <proxy Server> SSLEngine On SSLProxyEngine On ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> SSLCertificateFile "<cert for proxy server>" SSLCertificateKeyFile "<key for proxy server>" ProxyPass / https://appserver.com/ ProxyPassReverse / https://appserver.com/ </VirtualHost>
I don't see any errors in the error.log while starting. When I make a request https://proxy.com there is no entry in access.log or error.log.
Can anyone see an issue with in the config or give some ideas? Thanks Rahul
原文:https://stackoverflow.com/questions/42194950
最满意答案
dotnet-xunit是一个每个项目的CLI工具
使用这些工具需要为要使用的每个工具在项目文件中添加一个
<DotNetCliToolReference>
元素。 在<DotNetCliToolReference>
元素中,您引用工具所在的包并指定您需要的版本。 运行dotnet恢复后,该工具及其依赖关系将被恢复。因此请检查您的.csproj包含
<ItemGroup> <DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0" /> </ItemGroup>
然后做
dotnet restore
dotnet-xunit is a per-project CLI tool
Consuming these tools requires you to add a
<DotNetCliToolReference>
element to your project file for each tool you want to use. Inside the<DotNetCliToolReference>
element, you reference the package in which the tool resides and specify the version you need. After running dotnet restore, the tool and its dependencies are restored.So check that your .csproj contains
<ItemGroup> <DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0" /> </ItemGroup>
then do
dotnet restore
相关问答
更多-
如何从命令行为不同的框架运行dnx xunit测试?(How to run dnx xunit test from the commandline for a different framework?)[2024-02-18]
这个答案有点晚,但你不必做任何事情。 如果测试项目的project.json文件中有多个框架,则dotnet test命令将运行所有框架的测试。 This answer is a bit late but you don't have to do anything. If you have multiple frameworks in your test project's project.json file dotnet test command will run the test for all the ... -
打开xunit.runner.utility.dotnet的封面运行覆盖率(Open cover running coverage for xunit.runner.utility.dotnet)[2023-10-06]
我想通了,确保在project.json文件中将debugType设置为full。 然后我就能看到报道了。 以前这被设置为“便携式”。 "debugType": "full" I figured it out, make sure in the project.json file the debugType is set to full. Then I was able to see the coverage. Previously this was set to "portable". "debug ... -
dotnet-xunit是一个每个项目的CLI工具 使用这些工具需要为要使用的每个工具在项目文件中添加一个
元素。 在 元素中,您引用工具所在的包并指定您需要的版本。 运行dotnet恢复后,该工具及其依赖关系将被恢复。 因此请检查您的.csproj包含 < ... -
无法读取ConnectionString的原因是,appsettings.json默认情况下不会被复制到输出目录。 仅当您将“ 复制到输出目录”配置为“ 复制”(如果较新或复制始终将其复制到输出目录)时。 您可以通过查看Configure方法中的env.ContentRootPath 。 从Visual Studio中启动时,ContentRootPath是项目目录。 C:\ Users \用户有人\源\回购\ MyApp的\ MyApp的 从命令行启动时,ContentRootPath是输出目录。 C:\ ...
-
您不应该在同一目录中同时运行“dotnet new console”和“dotnet new xunit”。 他们是不同的项目,他们有不同的切入点。 Found a solution to be able to run both dotnet test and dotnet run here. The problem is that a test project builds its own Program.cs file. You want to add following to your .csproj ...
-
您应该将您的库分发为nuget包。 .NET核心仅通过Nuget与依赖项一起使用。 即使当您使用VS UI添加引用(“添加引用”命令)在后台引用中添加为nuget包时:如果您打开project.json文件,您将看到您的库使用相同的“package:version”格式指定在“依赖”部分中)。 要将代码打包到Nuget包中,请使用dotnet pack命令。 如果您不使用任何公共Nuget来源,您可以托管自己的Nuget Feed 。 You should distribute your Libraries ...
-
NCover在这里提供帮助。 这可能会提出更多问题:-)但这是一个好的开始。 如果您有更多信息,请通过support@ncover.com与我们联系。 首先,创建一个工作命令行来运行xunit测试。 然后,创建一个NCover项目来覆盖xunit。 关于xunit进程的正则表达式应该是所有必需的。 我不知道xunit进程被调用了什么,但是这将是:匹配类型=正则表达式,进程mathcimg =“xunit” 接下来,将NCover Run命令放在xunit命令前面。 这是我们关于NCover Run的帮助文档 ...
-
缺少依赖项,应该添加这些依赖项以获得在Visual Studio 2017和控制台中运行测试的能力:您需要在Visual Studio Test任务中的IED \ Extensions \ TestPlatform文件夹和框架选项中指定vstest.console.exe: You need to specify vstest.console.exe in IED\Extensions\TestPlatform folder and framework options in Visual Studio Test task:简短的回答是你不能阻止NuGet.exe版本2使用nuget install xunit -version 2.1.0从命令行下载nuget install xunit -version 2.1.0 。 在Visual Studio中执行相同操作时,下载的依赖项仅限于项目的目标框架支持的依赖项。 当您使用nuget install xunit -version 2.1.0 ,没有项目,因此没有目标框架,因此所有依赖项都被认为是兼容的,因此它们都将被下载。 对于xunit 2.1.0,它的一个依赖项是Syst ...
相关文章
更多- Apache 反向代理后 对象找不到
- 使用代理解决Android SDK Manager下载太慢的问题
- Apache POI的使用
- apache solr之我们的应用
- Apache SOLR and Carrot2集成
- Apache Nutch(一)
- win2003系统APACHE、IIS6共用80端口最简单解决方案
- JAVA设计模式学习13——代理模式
- 设计模式之代理模式(静态代理和动态代理)
- apache的作用是什么?
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)