Skip to content
Snippets Groups Projects
secure-afs-request.conf.erb 991 B
Newer Older
Adam Lewenberg's avatar
Adam Lewenberg committed
<VirtualHost *:80>
  ServerAdmin adamhl@.stanford.edu
  ServerName <%= @vhost %>

  # Redirect _all_ port 80 traffic to the secure side
  Redirect / https://<%= @vhost %>/
</VirtualHost>

<VirtualHost *:443>
  ServerAdmin adamhl@.stanford.edu
  ServerName <%= @vhost %>

Adam Lewenberg's avatar
Adam Lewenberg committed
  DocumentRoot /usr/share/secure-afs-request/cgi-bin
Adam Lewenberg's avatar
Adam Lewenberg committed

  TraceEnable off
  AddHandler cgi-script .cgi .pl

  ## SSL
Adam Lewenberg's avatar
Adam Lewenberg committed
  SSLEngine On
  SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:!MEDIUM:!LOW:!SSLv2:!EXP
  SSLCertificateFile    /etc/ssl/certs/<%= @vhost %>.pem
  SSLCertificateKeyFile /etc/ssl/private/<%= @vhost %>.key

  ### Shibboleth (SAML) section
  <Location /Shibboleth.sso>
    SetHandler shib
  </Location>

Adam Lewenberg's avatar
Adam Lewenberg committed
  <Directory /usr/share/secure-afs-request/cgi-bin>
    SetHandler cgi-script
    Options ExecCGI IncludesNoExec
    SetOutputFilter INCLUDES
Adam Lewenberg's avatar
Adam Lewenberg committed
    #
    AuthType shibboleth
Adam Lewenberg's avatar
Adam Lewenberg committed
    ShibRequestSetting requireSession 1
    <RequireAll>
      require shibboleth
    </RequireAll>
  </Directory
Adam Lewenberg's avatar
Adam Lewenberg committed

</VirtualHost>