ProxyExpressEnable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In apache 2.4 i'd like to use the new ProxyExpressEnable on a
wildcarded VirtualHost, and put a some more specific VirtualHosts for
reverse proxies which have more specific configurations or
customizations, not provided by the default ProxyExpress reverse proxy
behaviour.

But ProxyExpressEnable does not allow you to capture the case where no
ServerName is matched from the map file, to provide the "we dont host"
error message.

Maybe if it was possible to do :

<VirtualHost revproxy.internal:80>
    ServerAlias *.example.com

    ProxyExpressEnable on
    ProxyExpressDBMType SDBM
    ProxyExpressDBMFile conf/revproxy_auto

    # fictional proxy express directive
    ProxyExpressDefaultHost i_dont_know.internal

    RewiteCond %{HTTP_HOST} i_dont_know.internal
    RewriteRule ^/  /bad_host_error_page.html [L]
</VirtualHost>

<VirtualHost revproxy.internal:80>
    ServerName complex_config.example.com
    ProxyPass /app1 app1.server.internal
    ProxyPass /app1 app1.server.internal
    ProxyPass /app2 app2.server.internal
    ProxyPass /app2 app2.server.internal
</VirtualHost>

This would allow ProxyExpress for trivial preverse proxy configs, and
still catching the error case where you dont host the host header.

It would also then allow more specific or non-typical configs ?

So problems are :

1. catching the case when a host is not matched in ProxyExpressDBMFile
and returning an error page.
2. the previously mentioned problem wit apache 2.4 where
complex_config.example.com is not used when there is an "ServerAlias
*.example.com"

Cheers
Brett

-- 
The only thing that interferes with my learning is my education.

Albert Einstein

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux