User Tools

Site Tools


cern:website

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cern:website [2020/05/13 12:20] iwncern:website [2023/09/28 16:21] – [Setup index] iwn
Line 4: Line 4:
  
 The steps are basically: The steps are basically:
-  - Create a ''/eos/user/${USER::1}/${USER::1}/www'' directory on EOS (''lxplus'').+  - Create a ''/eos/user/${USER::1}/$USER/www'' directory on EOS (''lxplus'').
   - Promote it to a website via CERNBox and CERN Web services.   - Promote it to a website via CERNBox and CERN Web services.
   - Configure access with ''.htaccess''.   - Configure access with ''.htaccess''.
Line 13: Line 13:
 ===== Setup ===== ===== Setup =====
  
-===== Setup access =====+==== Setup access ====
  
 You need to configure access to CMS members as described [[https://espace.cern.ch/webservices-help/websitemanagement/ConfiguringAFSSites/Pages/AccesscontrolonAFSsites.aspx|here]] with an Apache ''[[https://httpd.apache.org/docs/2.4/howto/htaccess.html|.htaccess]]'' file in you ''www'' folder: You need to configure access to CMS members as described [[https://espace.cern.ch/webservices-help/websitemanagement/ConfiguringAFSSites/Pages/AccesscontrolonAFSsites.aspx|here]] with an Apache ''[[https://httpd.apache.org/docs/2.4/howto/htaccess.html|.htaccess]]'' file in you ''www'' folder:
Line 19: Line 19:
 SSLRequireSSL # The modules only work using HTTPS SSLRequireSSL # The modules only work using HTTPS
  
-AuthType shibboleth +AuthType openid-connect 
-ShibRequireSession On +  Require valid-user 
-ShibRequireAll On +AuthType openid-connect 
-ShibExportAssertion Off +Require claim cern_roles:view-site-root
-Require valid-user +
-Require ADFS_GROUP cms-physics-access+
  
 Options +Indexes Options +Indexes
Line 31: Line 29:
 Other AD FS groups can be found in CERN's [[https://e-groups.cern.ch/e-groups/EgroupsSearch.do|E-groups]]. Other AD FS groups can be found in CERN's [[https://e-groups.cern.ch/e-groups/EgroupsSearch.do|E-groups]].
  
- +==== Setup index ====
-===== Setup indexing =====+
  
 If you want to display documents and directories in a custom style (in particular plots), you can add an ''index.html'' or ''index.php'' file, for example [[cern:index|this one]]. If you want to display documents and directories in a custom style (in particular plots), you can add an ''index.html'' or ''index.php'' file, for example [[cern:index|this one]].
Line 58: Line 55:
 In this way ''.log'' files accessible on your website will be opened as a plain ASCII text file in the browser, instead of being downloaded. More content types ("MIME types") can be found [[https://www.lifewire.com/file-extensions-and-mime-types-3469109|here]]. To configure multiple extensions in the same way (''?i:'' is for case-insensitivity): In this way ''.log'' files accessible on your website will be opened as a plain ASCII text file in the browser, instead of being downloaded. More content types ("MIME types") can be found [[https://www.lifewire.com/file-extensions-and-mime-types-3469109|here]]. To configure multiple extensions in the same way (''?i:'' is for case-insensitivity):
 <code> <code>
-<FilesMatch "\.(?i:log|py|sh)$">+<FilesMatch "\.(?i:log|py|sh|tex)$">
   ForceType text/plain   ForceType text/plain
   Header set Content-Type "text/plain"   Header set Content-Type "text/plain"
 </FilesMatch> </FilesMatch>
 +
 +<Files *.rtf>
 +  ForceType text/rtf
 +  Header set Content-Type "text/rtf"
 +</Files>
 </code> </code>
  
cern/website.txt · Last modified: 2023/09/29 17:29 by iwn