Hi,

This is a followup to a question I posted in IRC. The answers I got from IRC were:

Set up an A record like
@       A       <ip address>

or go through an apache/nginx proxy server.

I tried the A record and that failed because our website is hosted externally and when you go directly to the IP, it breaks. I cannot change this.

So then I tried setting it up to go through an apache proxy that I have. My internal dns looks like:

;; QUESTION SECTION:
;nsd.org.                       IN      A

;; ANSWER SECTION:
nsd.org.                86400   IN      A       10.1.21.100

I can go to http://10.1.21.100 and it is redirected to my website perfectly so I am pretty sure the proxy is set up correctly.

However, when I go to http://nsd.org I get a 400 Bad request error that the browser sent a request that the server could not understand. I set up forensic logging for more detail.

The logs for going to nsd.org are (do not work):
access.log:
10.2.9.25 - - [14/Jan/2015:10:09:22 -0800] "GET / HTTP/1.1" 400 479 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0"
forensic.log:
+28549:54b6d889:6|GET / HTTP/1.1|Host:nsd.org|User-Agent:Mozilla/5.0 (X11; Linux x86_64; rv%3a34.0) Gecko/20100101 Firefox/34.0|Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8|Accept-Language:en-US,en;q=0.5|Accept-Encoding:gzip, deflate|DNT:1|Cookie:_ga=GA1.2.1715887930.1421258778|Connection:keep-alive|Cache-Control:max-age=0

The logs when going to 10.1.21.100 are (this works):
access.log:
10.2.9.25 - - [14/Jan/2015:10:09:31 -0800] "GET / HTTP/1.1" 302 526 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0"
forensic.log:
+28548:54b6d893:8|GET / HTTP/1.1|Host:10.1.21.100|User-Agent:Mozilla/5.0 (X11; Linux x86_64; rv%3a34.0) Gecko/20100101 Firefox/34.0|Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8|Accept-Language:en-US,en;q=0.5|Accept-Encoding:gzip, deflate|DNT:1|Connection:keep-alive

So the only difference is the Host in the forensic log. My proxy server is set up with <VirtualHost *:80>.

Any ideas what I am mucking up here?

Thanks for your help.

cheers,

ski

--
"When we try to pick out anything by itself, we find it
  connected to the entire universe"            John Muir

Chris "Ski" Kacoroski, [email protected], 206-501-9803
or ski98033 on most IM services
_______________________________________________
Discuss mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
http://lopsa.org/

Reply via email to