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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to