191 reputation
4
bio website
location
age
visits member for 1 year, 7 months
seen yesterday

Sep
24
awarded  Editor
Sep
24
revised Apache, SERVER_NAME overridden by HTTP_HOST
Added dos script code to get ServerName value from httpd.conf
Sep
24
comment Apache, SERVER_NAME overridden by HTTP_HOST
I can't write readable code in a comment, so re-read my answer above....
Sep
23
comment Apache, SERVER_NAME overridden by HTTP_HOST
As for "is there a way to get or a variable that provide the ServerName value from the httpd.conf?" What process or client needs this variable? Does the http client (browser) need it? Does a local server daemon need it? For what purpose? I ask because, on Windows, you can use a dos command like 'findstr ServerName C:\path_to_apache.conf' and it will print the line with ServerName in it, thus with a little extra processing in a dos batch file (or power shell if you prefer) you can create a variable from it.
Sep
23
comment Apache, SERVER_NAME overridden by HTTP_HOST
Hi Aviel, Apache often does not complain about 'ServerName' because the name is arbitrary, meaning it is allowed to be anything you want it to be. For instance, you might just call it web01 or web02 for internal purposes. ServerName has nothing to do with HTTP_HOST, the name used by clients to access the server. Apache might complain about ServerName on start up if it conflicts with an existing/different DNS or local hosts file entry. Complaints, if any, are logged in the Apache error log (e.g. error_log, error.log, or whatever naming convention you are using to log Apache errors).
Sep
23
answered Apache, SERVER_NAME overridden by HTTP_HOST
Aug
21
awarded  Revival
Aug
20
comment nginx connection timeout & client closed connection issue
This could be a problem with the developers' connection to the server, not the server. Since you cannot recreate the problem and the server itself is registering a client connection timeout, we need to suspect the developer may be behind a firewall and they have internal networking issues that cause this.
Aug
19
awarded  Teacher
Aug
19
answered TCP packet being retransmitted 7 times when sysctl tcp_retries1 is set to 3 - why?
May
9
awarded  Supporter
Jan
28
answered Time is off in Zabbix graphs
May
8
comment .htaccess RewriteCond for REMOTE_ADDR while behind Load Balancer?
Also, on some apache servers, the backslash will confuse the server. Simply put !^123.123.123.123 (without the backslashes, to mean if not IP 123.123.123.123) if you cannot get an iteration with backslashes to work.
May
8
answered .htaccess RewriteCond for REMOTE_ADDR while behind Load Balancer?