New answers tagged

0

Redirect 301 /STRING http://example.com/ The mod_alias Redirect directive is prefix-matching, so the above will match requests for both /STRING and /STRING_PAGE. You need to use RedirectMatch (also part of mod_alias) if you want an exact match - this uses regular expressions to match against the requested URL. For example, to match /STRING only then try ...


1

What you are asking is not possible at the web server level. The server does not know what host name is requested until after it has accepted the connection. Here is what happens when you request a URL such as server.example.com or server16.example.com: The client looks up the IP address for the host name. In either case, it will get the same IP address....


1

Turns out it was the global ServerName setting... why that should have any effect, especially considering that it shouldn't be used in the first place since http doesn't have any concept of or use for a "server name" when using virtual-host settings with SNI and the HTTP host header... Just replace ServerName domainA.com:80 with ServerName why-are-you-even-...


2

Nginx is a reverse proxy in your example, which means it terminates the HTTP exchange. Clients do not know that there is anything after Nginx, for them, Nginx is the webserver and the source of the response. As such the TLS handshake will also finish at Nginx and hence Nginx needs to have the server certificate and associated key to be able to properly set ...


Top 50 recent answers are included