Score:0

How to make site map file public on site secured by shibboleth

fr flag

We use shibboleth to secure an apache virtualhost. We would like to make single file (a site map) available publicly for this site.

Is there way to code this in the virtualhost?

The current virtual host looks like this:

<VirtualHost *:443>
        ServerName my-staging.sjf.edu
        DocumentRoot /var/www/sjf/my
        <Directory "/var/www/sjf/my">
                Options -Indexes +FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>
        <Location />
            AuthType shibboleth
            ShibRequestSetting requireSession 1
            <RequireAny>
                Require env allowed
                require shib-session
            </RequireAny>
        </Location>
...
<VirtualHost *:443>

The file I would like to make public would ideally be in the site root, but perhaps somewhere else if necessary.

Score:0
pt flag

Just add a new <Location> directive for the sitemap, and configure it with Require all granted:

<VirtualHost *:443>
        ServerName my-staging.sjf.edu
        DocumentRoot /var/www/sjf/my
        <Directory "/var/www/sjf/my">
                Options -Indexes +FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        <Location />
            AuthType shibboleth
            ShibRequestSetting requireSession 1
            <RequireAny>
                Require env allowed
                require shib-session
            </RequireAny>
        </Location>

        <Location /sitemap.xml>
            Require all granted
        </Location>
<VirtualHost *:443>
Steve Vaughn avatar
fr flag
Worked nicely. Thank you
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.