问题标签 [server-name]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
643 浏览

sql-server - 如何在 SQL Server Management Studio 中获取服务器名称?

我使用 SQL Server 管理工作室。我想连接本地服务器。但是,我缺少本地服务器名称。

我输入了local,localhost.,但它无法连接。

如何在 SQL Server Management Studio 中获取本地服务器名称?

请让我知道您可以检查哪条路径。

在此处输入图像描述

与 SQL Server 建立连接时发生网络相关或安装程序相关错误。服务器找不到或无法访问。验证实例名称是否正确以及 SQL Server 是否配置为允许远程连接。

在此处输入图像描述

0 投票
1 回答
2130 浏览

variables - Nginx reverse proxy didnt load site correctly

I have an nginx configuration which listens to any subdomain *.mydomain.com, and I want to use subdomain as variable, to proxy request to other site. Here is my nginx configuration

}

As I request the site directly and it loads perfectly

Site placed on AWS S3, and bucket static website address cnamed to mydomain

However, when I try to access via user1.mydomain.com, the page didn't load images, and css

This is the same site

And in browser network panel shows

Difference between direct and proxy access

This issue is made, because I have many sites stored in S3 bucket and located in different folders (the folder name is used as subdomain). And I want to use a single domain to access all of them via subdomains.

Thanks in advance

0 投票
1 回答
4216 浏览

nginx - 在 nginx 配置服务器名称中使用通配符

我想在 nginx 配置服务器名称中使用通配符

例子)

但它显示

有没有办法解决这个问题?

0 投票
1 回答
921 浏览

.net - 如何在 C# 中获取服务器名称和实例名称列表

我想显示与 SQL Server Management Studio 相同的服务器名称列表。

当我使用

在返回列表中,服务器名称列表为真,但实例名称为假。在我的 PC 中,服务器名称为[name of pc]\SQLEXPRESS,但实例名称的返回值为 none。

谢谢你。

0 投票
1 回答
557 浏览

apache - 如何在主机客户端的 docker 容器中映射服务器名称 apache?

我有一个带有 apache 的 docker 容器,并使用虚拟主机配置了我的 .conf 文件,从客户端 test.dev 调用虚拟主机 docker 未映射。如果我调用 localhost 它可以正常工作。

谢谢!!

0 投票
1 回答
101 浏览

nginx - 如何使用子域服务器名配置代理

我在 nginx 中有以下虚拟主机配置:

当我使用类似的 server_name 时sub.domain.org,我得到默认的 nginx 回退并且我的服务器不匹配。

当我使用类似的 server_name 时customroute,我会得到正确的行为并且我的服务器是匹配的。

我用谷歌搜索了这个问题,我相信 nginx 支持子域匹配,所以我不确定出了什么问题。我检查了 access.log 和 error.log,但没有得到相关日志。

知道如何诊断吗?

我应该能够在 nginx 的调试模式下显示路由匹配逻辑,但我不知道如何实现这一点。

任何帮助表示赞赏。

0 投票
0 回答
65 浏览

nginx - 配置 nginx 以支持多子域和上游

我一直在尝试将 nginx 设置为代理,其中请求基于子域路由到上游。我希望示例更清楚

所以如果我请求https://google.test.com它应该去https://www.google.com

使用此当前设置,nginx 会为我查询的任何站点返回 404。虽然我可以看到该请求转到我查询的上游站点(在本例中为 google.com)。

如果我缺少任何东西,就得不到。

0 投票
0 回答
76 浏览

ssms - 如何将 Analysis Services 连接到 SQL Server Management Studio18

我知道我已经使用 SQL SERVER Management Studio 安装了 Analysis Services,但我不知道如何将它连接到 Analysis Services。当我尝试使用“系统名称”连接数据库引擎时,它工作得很好,但它不能与分析服务一起工作我得到的错误

0 投票
1 回答
24 浏览

nginx - nginx 使用 IP 和本地名称将流量定向到非域名

在 Windows 服务器上使用 nginx 我想使用非域名名称将流量引导到不同的端口,第一个有效但第二个永远无法到达:为什么?怎么了? http://192.xxx.xxx.xxx/game:工作 http://192.xxx.xxx.xxx/cms:永远达不到。如果我更改名称,则 cms 可以正常工作,并且游戏永远无法到达。


“Richard Smith”提到的新代码块:

0 投票
2 回答
142 浏览

python - 烧瓶开发中的虚拟服务器名称

是否可以在生产期间在 Flask 中创建一个虚拟服务器名称?例如,我想要以下内容:www.foo.com用于开发。

这样的路线:

将在 到达foo.com/bar/。我试过改变配置:

但我得到一个OSError: [Errno 49] Can't assign requested address