How the website works

From UGCS
(Difference between revisions)
Jump to: navigation, search
(New page: The UGCS webpage is pulled from the Website: namespace of this wiki. A script on poseidon (/usr/local/sbin/wiki-pull) converts the wiki pages into web pages. The data goes into /afs/.ugc...)
 
 
(One intermediate revision by one user not shown)
Line 11: Line 11:
 
# When you request www.ugcs.caltech.edu/Pagename.xhtml, it gets rewritten to www.ugcs.caltech.edu/content.php?name=Pagename.  This script includes the appropriate templates, title, and page content.
 
# When you request www.ugcs.caltech.edu/Pagename.xhtml, it gets rewritten to www.ugcs.caltech.edu/content.php?name=Pagename.  This script includes the appropriate templates, title, and page content.
  
[[Category:Sysadmin_documentation]]
+
 
 +
[[Category:Sysadmin_Documentation]]

Latest revision as of 20:24, 8 May 2009

The UGCS webpage is pulled from the Website: namespace of this wiki. A script on poseidon (/usr/local/sbin/wiki-pull) converts the wiki pages into web pages. The data goes into /afs/.ugcs/public/www/content, and the script /afs/.ugcs/public/www/content.php interprets them and forms the actual website. An apace rewrite rule turns the url (www/Page.xhtml) into a request for the appropriate wiki page. The script also pulls the Documentation: website to www/documentation/

The wiki-pull script calls a php script that Liz wrote a while ago. It automatically turns the intra-wiki links into html links. However, you'll have to give each link a name in the wiki- otherwise you'll get the Website: tag in the link and it'll be ugly.

You also have to give each page a title with =Title=- this gets turned into the page title

Brief overview (might make more sense than above)

  1. Edit a wiki page in the Website: namespace
  2. wiki-pull gets called and turns the database into the main page in /afs/.ugcs/public/www/content/xhtml/Pagename.inc and the title to www/content/Pagename.title (once an hour)
  3. A script on apollo calls `vos release public.www` so the read-only copy gets updated
  4. When you request www.ugcs.caltech.edu/Pagename.xhtml, it gets rewritten to www.ugcs.caltech.edu/content.php?name=Pagename. This script includes the appropriate templates, title, and page content.
Personal tools