Skip to content

Instantly share code, notes, and snippets.

@traylenator
Created November 6, 2013 12:22
Show Gist options
  • Save traylenator/7335230 to your computer and use it in GitHub Desktop.
Save traylenator/7335230 to your computer and use it in GitHub Desktop.
Stratum 0 cvmfs configuration.
<VirtualHost *:80>
ServerName stratum-zero-lbp.cern.ch
## Vhost docroot
DocumentRoot /var/www/html
## Alias declarations for resources outside the DocumentRoot
Alias /opt/ams /srv/cvmfs2/ams/pub/catalogs
Alias /cvmfs/ams.cern.ch /srv/cvmfs2/ams/pub/catalogs
Alias /opt/atlas /srv/cvmfs2/atlas/pub/catalogs
Alias /opt/atlas-condb /srv/cvmfs/atlas-condb/pub/catalogs
Alias /cvmfs/atlas-condb.cern.ch /srv/cvmfs/atlas-condb/pub/catalogs
Alias /cvmfs/atlas.cern.ch /srv/cvmfs2/atlas/pub/catalogs
Alias /opt/alice /srv/cvmfs/alice/pub/catalogs
Alias /cvmfs/alice.cern.ch /srv/cvmfs/alice/pub/catalogs
Alias /opt/cms /srv/cvmfs/cms/pub/catalogs
Alias /cvmfs/cms.cern.ch /srv/cvmfs/cms/pub/catalogs
Alias /opt/geant4 /srv/cvmfs/geant4/pub/catalogs
Alias /cvmfs/geant4.cern.ch /srv/cvmfs/geant4/pub/catalogs
Alias /opt/grid /srv/cvmfs/grid/pub/catalogs
Alias /cvmfs/grid.cern.ch /srv/cvmfs/grid/pub/catalogs
Alias /opt/hepsoft /srv/cvmfs/hepsoft/pub/catalogs
Alias /cvmfs/hepsoft.cern.ch /srv/cvmfs/hepsoft/pub/catalogs
Alias /opt/hone /srv/cvmfs/hone/pub/catalogs
Alias /cvmfs/hone.cern.ch /srv/cvmfs/hone/pub/catalogs
Alias /opt/lhcb-conddb /srv/cvmfs/lhcb-condb/pub/catalogs
Alias /cvmfs/lhcb-conddb.cern.ch /srv/cvmfs/lhcb-condb/pub/catalogs
Alias /opt/lhcb /srv/cvmfs/lhcb/pub/catalogs
Alias /cvmfs/lhcb.cern.ch /srv/cvmfs/lhcb/pub/catalogs
Alias /opt/belle /srv/cvmfs/belle/pub/catalogs
Alias /cvmfs/belle.cern.ch /srv/cvmfs/belle/pub/catalogs
Alias /opt/na49 /srv/cvmfs/na49/pub/catalogs
Alias /cvmfs/na49.cern.ch /srv/cvmfs/na49/pub/catalogs
Alias /opt/na61 /srv/cvmfs/na61/pub/catalogs
Alias /cvmfs/na61.cern.ch /srv/cvmfs/na61/pub/catalogs
Alias /opt/boss /srv/cvmfs/boss/pub/catalogs
Alias /cvmfs/boss.cern.ch /srv/cvmfs/boss/pub/catalogs
Alias /opt/sft /srv/cvmfs/sft/pub/catalogs
Alias /cvmfs/sft.cern.ch /srv/cvmfs/sft/pub/catalogs
Alias /opt/ilc /srv/cvmfs/ilc/ilc.cern.ch/pub/catalogs
Alias /cvmfs/ilc.cern.ch /srv/cvmfs2/ilc/ilc.cern.ch
Alias /cvmfs/bbp.epfl.ch /srv/cvmfs2/bbp/bbp.epfl.ch
## Directories, there should at least be a declaration for /var/www/html
<Directory /var/www/html>
AllowOverride None
Order allow,deny
Allow from none
</Directory>
<Directory /srv/cvmfs2/ams>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/atlas-condb>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs2/atlas>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/cms>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/geant4>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/grid>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/hepsoft>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/hone>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/lhcb-conddb>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/lhcb>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/belle>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/na49>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/na61>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/boss>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs/sft>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs2/ilc/ilc.cern.ch>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
<Directory /srv/cvmfs2/bbp/bbp.epfl.ch>
Header unset Last-Modified
Options -MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
EnableMMAP Off
AddType application/x-cvmfs .cvmfspublished .cvmfswhitelist
ExpiresActive On
ExpiresDefault "access plus 3 days"
ExpiresByType text/html "access plus 5 minutes"
ExpiresByType application/x-cvmfs "access plus 15 minutes"
RequestHeader unset If-Modified-Since
</Directory>
## Logging
ErrorLog /var/log/httpd/stratum-zero-lbp.cern.ch_error.log
LogLevel warn
ServerSignature Off
CustomLog /var/log/httpd/stratum-zero-lbp.cern.ch_access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment