This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
cern:website [2023/09/29 17:29] – [Personal CERN website] iwn | cern:website [2024/08/21 15:43] (current) – removed iwn | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | | ||
- | You can make a personal website to share documents in your EOS directory via the World Wide Web. Please follow the instructions on [[https:// | ||
- | |||
- | The steps are basically: | ||
- | - Create a ''/ | ||
- | - Promote it to a website via CERNBox and CERN Web services. | ||
- | - Configure access with '' | ||
- | - Configure each webpage with an index file ('' | ||
- | - Add content. | ||
- | |||
- | |||
- | ===== Setup ===== | ||
- | |||
- | ==== Setup access ==== | ||
- | |||
- | You need to configure access to CMS members as described [[https:// | ||
- | <file bash .htaccess> | ||
- | SSLRequireSSL # The modules only work using HTTPS | ||
- | |||
- | AuthType openid-connect | ||
- | Require valid-user | ||
- | AuthType openid-connect | ||
- | Require claim cern_roles: | ||
- | |||
- | Options +Indexes | ||
- | </ | ||
- | |||
- | Other AD FS groups can be found in CERN's [[https:// | ||
- | |||
- | ==== Setup index ==== | ||
- | |||
- | If you want to display documents and directories in a custom style (in particular plots), you can add an '' | ||
- | |||
- | <wrap tip>Pro tip</ | ||
- | <code bash> | ||
- | DirectoryIndex index.html index.php /< | ||
- | </ | ||
- | If someone opens your link to some directory, the browser will first look for a '' | ||
- | < | ||
- | <?php | ||
- | $pwd = preg_replace(" | ||
- | $pwd = preg_replace(" | ||
- | chdir($pwd); | ||
- | ?> | ||
- | </ | ||
- | |||
- | <wrap tip>Pro tip</ | ||
- | < | ||
- | <Files *.log> | ||
- | ForceType text/plain | ||
- | Header set Content-Type " | ||
- | </ | ||
- | </ | ||
- | In this way '' | ||
- | < | ||
- | < | ||
- | ForceType text/plain | ||
- | Header set Content-Type " | ||
- | </ | ||
- | |||
- | <Files *.rtf> | ||
- | ForceType text/rtf | ||
- | Header set Content-Type " | ||
- | </ | ||
- | </ | ||
- | |||
- | <wrap tip>Pro tip</ | ||
- | <file bash .htaccess> | ||
- | SSLRequireSSL # The modules only work using HTTPS | ||
- | Satisfy Any | ||
- | Allow From All | ||
- | Options +Indexes | ||
- | </ | ||
- | |||
- | |||
- | ===== Copy to eos ===== | ||
- | |||
- | EOS is now mounted on PSI T3, so you mount with | ||
- | <code bash> | ||
- | kinit $USER@CERN.CH && eosfusebind -g krb5 $HOME/ | ||
- | </ | ||
- | or (outdated) | ||
- | <code bash> | ||
- | mkdir ~/eos | ||
- | sshfs -o allow_other, | ||
- | </ | ||
- | Make sure not to forget or add anymore trailing ''/'' | ||
- | With each new session, you can remount using | ||
- | <code bash> | ||
- | fusermount -u ~/eos | ||
- | </ | ||
- | <wrap tip>Pro tip</ | ||
- | <code bash> | ||
- | alias meos=' | ||
- | </ | ||
- | |||
- | Alternatively, | ||
- | <code bash> | ||
- | scp test.txt < | ||
- | </ | ||
- | |||
- | It is also possible to mount your personal ''/ |