Multiple virtual hosts

Stapleton, Steven stapleton.41 at osu.edu
Tue Mar 6 11:50:43 GMT 2012


I'm trying to set up shibboleth on a second virtual host on my machine. Both virtual hosts serve the exact same thing, but for PR reasons, one group wants a 'more friedly' URL for their purposes. I am using RHEL 4 + Apache 2.0.xx (came with RHEL 4). The first virtual host works fine, the second however, does not seem work. I get a login prompt from the app server, rather than displaying the page (I've already logged into shibboleth on another server, not mine). Going to the same local path on the standard domain/url, I get the page I want, without a local login prompt.

Anyone have an idea what would cause this?

Config files below.
Thanks,
-Jim Stapleton


==================================================
The Shibboleth portion of the standard virtual host's config file:
==================================================
#
# Load the SHIBBOLETH module
#
#LoadModule mod_shib /apps/shibboleth-sp/lib/shibboleth/mod_shib_20.so

<IfModule mod_alias.c>
  <Location /shibboleth-sp>
    Allow from all
  </Location>
  Alias /shibboleth-sp/main.css /apps/shibboleth-sp/share/doc/shibboleth/main.css
  Alias /shibboleth-sp/logo.jpg /apps/shibboleth-sp/share/doc/shibboleth/logo.jpg
</IfModule>

<Location /content/idcplg>
	AuthType shibboleth
	require shibboleth
	ShibUseHeaders on
</Location>

<Location /content/>
	AuthType shibboleth
	require shibboleth
	ShibUseHeaders on
</Location>

#I probably only need this, but the others were there when I got the configuration working,
#and I didn't want to mess with it further.
<Location />
	AuthType shibboleth
	require shibboleth
	ShibUseHeaders on
</Location>
==================================================
END
==================================================

==================================================
The Shibboleth portion of the second virtual host's config file:
==================================================
#
# Load the SHIBBOLETH module
#
LoadModule mod_shib /apps/shibboleth-sp/lib/shibboleth/mod_shib_20.so

#
# Used for example logo and style sheet in error templates.
#
<IfModule mod_alias.c>
  <Location /shibboleth-sp>
    Allow from all
  </Location>
  Alias /shibboleth-sp/main.css /apps/shibboleth-sp/share/doc/shibboleth/main.css
  Alias /shibboleth-sp/logo.jpg /apps/shibboleth-sp/share/doc/shibboleth/logo.jpg
</IfModule>


<Location /content/idcplg>
	AuthType shibboleth
	require shibboleth
	ShibUseHeaders on
</Location>

<Location /content/>
	AuthType shibboleth
	require shibboleth
	ShibUseHeaders on
</Location>


<Location />
	AuthType shibboleth
	require shibboleth
	ShibUseHeaders on
</Location>

#added out of desperation, as this is what I am accessing
<Location /LAC/>
	AuthType shibboleth
	require shibboleth
	ShibUseHeaders on
</Location>

==================================================
END
==================================================


More information about the users mailing list