On 21/06/2013, at 2:18 AM, Matthew Reinbold <[email protected]> wrote:

> WSGI Script Swap
> I temporarily replaced the script. The resulting output on the 'production' 
> URL was:
> 
> mod_wsgi.application_group = '18525-api02.servers.mycompanyname.com|/v1'
> 
> The result for the demo URL was:
> 
> mod_wsgi.application_group = '18525-api02.servers.mycompanyname.com|/demo'
> 
>  
> ServerName in VirtualHost
> The server name, as defined in the VirtualHost, is 'ServerName 
> 18525-api02.servers.mycompanyname.com:443'

ServerName should not include the port number. Thus you should have just:

ServerName 18525-api02.servers.mycompanyname.com

If ServerName doesn't match the Host header in a request for any VirtualHost, 
then Apache will fall back to using the first VirtualHost it found when reading 
the configuration or the one marked as the default. Thus, the only reason it 
may be working for you at all at the moment is because that VirtualHost is the 
first.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to