Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

strange DNS queries with mod_proxy

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  No permission when setting root alias  
Author Message
email9

External


Since: Jun 17, 2004
Posts: 5



(Msg. 1) Posted: Mon Jul 19, 2004 2:04 pm
Post subject: strange DNS queries with mod_proxy
Archived from groups: alt>apache>configuration (more info?)

I'm running Apache 2.0.40 on RHEL 9.0, IP address 10.10.10.20. Another
web server, 10.10.10.10, hosts example.com. The reverse-proxy box at
..20 is using mod_proxy with the following in httpd.conf:

<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyVia Off
</IfModule>

<VirtualHost *>
ServerName example.com
ServerAlias www.example.com
ProxyPass / http://www.example.com
ProxyPassReverse / http://www.example.com
</VirtualHost>



HTTP/1.1 GET / for example.com serves up the default document as
expected. However, the default document uses a style sheet
(/style/apr04.css) which must then be requested by the client.

When the client sends a GET /style/apr04.css, I see in an Ethereal
packet capture that the proxy server does a DNS lookup for
"example.comstyle". Any other request to something below the root
level, such as http://example.com/foo/bar.html, creates a DNS lookup for
"example.comfoo".

Has anyone seen this bizarre behavior before, and does anyone know how
to correct it?

Jordan

 >> Stay informed about: strange DNS queries with mod_proxy 
Back to top
Login to vote
email9

External


Since: Jun 17, 2004
Posts: 5



(Msg. 2) Posted: Wed Jul 21, 2004 1:13 pm
Post subject: Re: strange DNS queries with mod_proxy [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jordan Peterson wrote:
 > <VirtualHost *>
 > ServerName example.com
<font color=purple> > ServerAlias <a style='text-decoration: underline;' href="http://www.example.com</font" target="_blank">www.example.com</font</a>>
<font color=purple> > ProxyPass / <a style='text-decoration: underline;' href="http://www.example.com</font" target="_blank">http://www.example.com</font</a>>
<font color=purple> > ProxyPassReverse / <a style='text-decoration: underline;' href="http://www.example.com</font" target="_blank">http://www.example.com</font</a>>
 > </VirtualHost>

Fixed the problem. I should have used a trailing slash, e.g.:

ProxyPass / <a style='text-decoration: underline;' href="http://www.example.com/" target="_blank">http://www.example.com/</a>
ProxyPassReverse / <a style='text-decoration: underline;' href="http://www.example.com/" target="_blank">http://www.example.com/</a>
*NOT*
ProxyPass / <a style='text-decoration: underline;' href="http://www.example.com" target="_blank">http://www.example.com</a>
ProxyPassReverse / <a style='text-decoration: underline;' href="http://www.example.com" target="_blank">http://www.example.com</a>

Just posting for the benefit of anyone else who may encounter this
problem. Noticing this obvious syntactical error made me feel a bit silly.

Jordan<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: strange DNS queries with mod_proxy 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[1.3.2x] mod_proxy - How do I enable mod_proxy to proxypass https connections?!? Here's the error when I attempt: proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuratio...

mod_proxy - hi, I used the following to compile Apache 2.0.47 with mod_proxy.c [quote] ../configure --prefix=/usr/local/apache \ --enable-module=rewrite --enable-shared=rewrite \ --enable-module=proxy --enable-shared=proxy [unquote] but i find the following ..

mod_proxy and mod_gzip - i'm trying to get mod_proxy and mod_gzip to work together. both modules seem to work. but they will not work together. mod_gzip will only work if i tried to down load a website that is hosted on the local server, with out using mod_gzip. I have mod_prox...

mod_proxy vs. IHS (aka IBMhttpd) - Hello, sorry for the crossposting, but this matter shouldn't be too offtopic in all three groups. today we experienced a very strange problem on a seemingly trivial task. we wanted to access a websphere application over a secure reverse proxy like this...

apache_1.3.29 mod_proxy .time 0kb - Hi, is it right that the .time file in the cache directrory has 0kb with no contend? regards Hagen
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]