You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/03/22 11:40:10 UTC

DO NOT REPLY [Bug 46886] New: Transparent proxying of http://www.dvdanime.net/ not working

https://issues.apache.org/bugzilla/show_bug.cgi?id=46886

           Summary: Transparent proxying of http://www.dvdanime.net/ not
                    working
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: nicolas.mailhot@laposte.net


I use mod_proxy as a transparent proxy on my small lan. It seem to work well
and is much simpler than trying to configure proxy settings in every possible
app and computer

However, for some reason, it fails on http://www.dvdanime.net/ and I can't find
any workaround for the bug in the online documentation.

I get a:
"Virtual host not found or CGI access not enabled on this server" instead of
the web site content

iptables magic:
-A PREROUTING -s 192.168.1.0/24 -i eth1 -p tcp --dport http -j REDIRECT
--to-por
t tproxy
-A OUTPUT -m owner ! --gid-owner apache -p tcp --dport http -j REDIRECT
--to-por
t tproxy
-A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE

mod_proxy config:
<IfModule mod_proxy.c>

Listen 127.0.0.1:8081
Listen 192.168.1.1:8081
NameVirtualHost *:8081

<VirtualHost *:8081>

LogFormat "%h %l %u %t %{Host}i \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\"" proxy

CustomLog logs/proxy.log proxy

ProxyRequests On
NoProxy localhost 192.168.1.0/24 127.0.0.1

ProxyFtpDirCharset UTF-8

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP:Via} ^$
  RewriteRule (.*) http://%{HTTP_HOST}$1 [P]
</IfModule>

<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
<IfModule mod_mem_cache.c>

#General settings
# 1h
CacheDefaultExpire 3600
# 7j
CacheMaxExpire 604800

CacheEnable disk http://download.fedora.redhat.com/pub/fedora/linux/
CacheEnable disk http://redhat.download.fedoraproject.org/pub/fedora/linux/
CacheEnable disk http://rpm.livna.org/fedora/
CacheEnable disk http://livna-dl.reloumirrors.net/fedora/
CacheEnable disk http://koji.fedoraproject.org/static-repos/
CacheEnable disk http://koji.fedoraproject.org/packages/
CacheEnable disk http://kojipkgs.fedoraproject.org/packages/
CacheEnable disk http://download1.rpmfusion.org/free/fedora/
CacheEnable mem /

CacheRoot "/var/cache/mod_proxy"
CacheDirLength 4
CacheDirLevels 5
# 128 Mib
CacheMaxFileSize 134217728

MCacheRemovalAlgorithm GDSF
# 128 MiB
MCacheSize 131072
MCacheMaxObjectCount 32768
# 16 Mib
MCacheMaxObjectSize 16777216
# 512 KiB
MCacheMaxStreamingBuffer 524288

CacheEnable disk http://
CacheEnable disk /

</IfModule>
</IfModule>
</IfModule>

<Proxy *>
    Order Deny,Allow
    Deny from all
        Allow from 127.0.0.0/8
        Allow from 192.168.0.127
    Allow from 192.168.1.0/24
</Proxy>

</VirtualHost>

<IfModule mod_status.c>
    ExtendedStatus On
</IfModule>

</IfModule>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46886] Transparent proxying of http://www.dvdanime.net/ not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46886


Nicolas Mailhot <ni...@laposte.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




--- Comment #2 from Nicolas Mailhot <ni...@laposte.net>  2009-03-22 04:12:15 PST ---
But isn't a transparent proxy supposed to be transparent? Including to the
target host?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46886] Transparent proxying of http://www.dvdanime.net/ not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46886


Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




--- Comment #3 from Eric Covener <co...@gmail.com>  2009-05-25 08:10:59 PST ---
re-closing as invalid; take it to the users mailing list to work through your
configuration/environment (as previously triaged).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46886] Transparent proxying of http://www.dvdanime.net/ not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46886


Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Ruediger Pluem <rp...@apache.org>  2009-03-22 04:08:45 PST ---
This is no user support forum. Please sent a mail to the users list. It is most
likely that this is an error on the target host as the error message you
mentioned is not emitted by httpd.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org