You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by nocturnal <sw...@gmail.com> on 2009/08/02 18:49:34 UTC

[users@httpd] mod_proxy will not allow CONNECT

Hi
I have mod_proxy and mod_proxy_connect compiled into httpd if i run httpd
-l.
I'm using the following mod_proxy configuration.
 <VirtualHost proxy.domain.tld:8000>
  DocumentRoot /usr/local/apache/htdocs
  Customlog logs/proxy.domain.tld-access.log combined
  ErrorLog logs/proxy.domain.tld-error.log
  HostnameLookups On

  ProxyRequests on
  AllowCONNECT 22 1022
  ProxyVia on

  ### Deny everything by default
  <Proxy *>
  Order deny,allow
  Deny from all
  </Proxy>

  <Proxy *>
  Order deny,allow
  Deny from all

  ### External (customer) sites allowed to connect
  Allow from 10.10.10.10
  </Proxy>
 </VirtualHost>
The whole web server has 8000 has Listen directive in httpd.conf also.
No matter what i try, i've tried removing all restrictions, it doesn't give
me CONNECT as an allowed method, i keep getting 405 errors when i try to use
it.
Here is output from the program proxytunnel when it tries to connect.
Tunneling to server.domain.tld:1022 (remote proxy)
Communication with local proxy:
 -> CONNECT server.domain.tld:1022 HTTP/1.0
 -> Proxy-Connection: Keep-Alive
 -> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Win32)\n
 <- HTTP/1.1 405 Method Not Allowed
HTTP return code: 405 Method Not Allowed
 <- Date: Sun, 02 Aug 2009 16:41:11 GMT
 <- Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e PHP/5.2.8
 <- Allow: GET,HEAD,POST,OPTIONS,TRACE
 <- Content-Length: 236
 <- Connection: close
 <- Content-Type: text/html; charset=iso-8859-1
ssh_exchange_identification: Connection closed by remote host

I can connect just fine from the client machine with netcat and proxytunnel
but i can't get the CONNECT method to be allowed, what am i missing?



-- 


Med vänliga hälsningar

Stefan Midjich aka nocturnal
[SWEHACK] http://swehack.se