Problem with wildcard subdomains and ProxyPass

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

 



Hi,

I want to use Apache to proxy requests like domain.tld.MyDomain.tld to
domain.tld.

I've tried this :

<VirtualHost *:80>
     RewriteEngine on
     RewriteCond     %{HTTP_HOST}    (.*).MyDomain.tld$
     RewriteRule     (.*).MyDomain.tld$  $1
     ProxyPassMatch /http://$1/
</VirtualHost>

But of course it doesn't work.
I've tried many other solutions, but no one works.

Do you have an idea of the manner to resolve my problem ?

Thanks by advance,

Thibaut


---------------------------------------------------------------------
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