tags:

views:

35

answers:

0

Hi guys,

I have a question about the damn configuration of apache (I HATE IT).
I have a cms that hosts multiple domains on the same port.

What i am trying to do is getting all domainnames on port 80 to be send to port 8080.
Also i have a cash dir based on the domainname and before all this a rewrite that strips the www. from the domain.
this is what i have so far:

# no www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1$1 [R=301,L]

<VirtualHost *:80>
        ServerName *
        RewriteEngine On
        ProxyPreserveHost On

        <Proxy balancer://webCMS>
                BalancerMember http://127.0.0.1:8080
        </Proxy>
</VirtualHost>

Yes i googled. and yes i found the apache documentation. But man! i don't understand it. :(