You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk> on 2008/06/25 23:12:11 UTC

[users@httpd] vhost sanity check..

I have this in my vhost, now I would expect stuff comming in from 
exerciselog.eu to have an header with "exerciselog.eu" as content and it 
does, however for the traningslog.dk it contains the same 
("exerciselog.eu"), so whats wrong? :

<VirtualHost *:* >
ServerName exerciselog.eu
ProxyPreserveHost Off
ServerAlias 
*.exerciselog.eu                                                                                                                          
$
ServerAdmin admin@traningslog.dk
    ProxyPass /images http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/images
    ProxyPass / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
    ProxyPassReverse / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
    ProxyPassReverseCookiePath /ZeuzWeb-0.1-SNAPSHOT /
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
RequestHeader set domain "exerciselog.eu"
</VirtualHost>
<VirtualHost *:* >
ServerName traningslog.dk
ProxyPreserveHost Off

ServerAlias *.xn--trningslog-e6a.dk
ServerAlias *..xn--trningslog-e6a.dk
ServerAlias *.traeningslog.ath.cx
ServerAlias beta.traeningslog.ath.cx
ServerAlias beta.træningslog.dk
ServerAlias *.beta.traningslog.dk
ServerAlias beta.traningslog.dk
ServerAdmin admin@xn--trningslog-e6a.dk
    ProxyPass /images http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/images
    ProxyPass / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
    ProxyPassReverse / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
    ProxyPassReverseCookiePath /ZeuzWeb-0.1-SNAPSHOT /
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
RequestHeader set domain "traningslog.dk"
</VirtualHost>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: vhost sanity check..

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Going over the config again, I noticed the $ ... I removed that and the 
shuffled the order of exerciselog.eu and traininglog.dk (and remove the 
part that set the header for traininglog.dk) and now it works:)

Nino Saturnino Martinez Vazquez Wael wrote:
> I have this in my vhost, now I would expect stuff comming in from 
> exerciselog.eu to have an header with "exerciselog.eu" as content and 
> it does, however for the traningslog.dk it contains the same 
> ("exerciselog.eu"), so whats wrong? :
>
> <VirtualHost *:* >
> ServerName exerciselog.eu
> ProxyPreserveHost Off
> ServerAlias 
> *.exerciselog.eu                                                                                                                          
> $
> ServerAdmin admin@traningslog.dk
>    ProxyPass /images http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/images
>    ProxyPass / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
>    ProxyPassReverse / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
>    ProxyPassReverseCookiePath /ZeuzWeb-0.1-SNAPSHOT /
>    <Proxy *>
>    Order deny,allow
>    Allow from all
>    </Proxy>
> RequestHeader set domain "exerciselog.eu"
> </VirtualHost>
> <VirtualHost *:* >
> ServerName traningslog.dk
> ProxyPreserveHost Off
>
> ServerAlias *.xn--trningslog-e6a.dk
> ServerAlias *..xn--trningslog-e6a.dk
> ServerAlias *.traeningslog.ath.cx
> ServerAlias beta.traeningslog.ath.cx
> ServerAlias beta.træningslog.dk
> ServerAlias *.beta.traningslog.dk
> ServerAlias beta.traningslog.dk
> ServerAdmin admin@xn--trningslog-e6a.dk
>    ProxyPass /images http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/images
>    ProxyPass / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
>    ProxyPassReverse / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
>    ProxyPassReverseCookiePath /ZeuzWeb-0.1-SNAPSHOT /
>    <Proxy *>
>    Order deny,allow
>    Allow from all
>    </Proxy>
> RequestHeader set domain "traningslog.dk"
> </VirtualHost>
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org