User Tools

Site Tools


bigsister:howto:views

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bigsister:howto:views [2017/06/06 08:53]
Thomas Aeby [Creating a View]
bigsister:howto:views [2017/06/05 21:05] (current)
Line 20: Line 20:
 <​code>​ <​code>​
 %Group %Group
-LAB_srv1(Lab Server 1)  LAB +srv1(Lab Server 1)  LAB 
-LAB_srv2(Lab Server 2)  LAB+srv2(Lab Server 2)  LAB
  
 %View testlab %View testlab
Line 30: Line 30:
 %title auto %title auto
 %refto none %refto none
-%refto ​LAB_srv1.disk html/LAB_srv1.disk.html +%refto ​srv1.disk html/srv1.disk.html 
-%refto ​LAB_srv1.http html/LAB_srv1.http.html+%refto ​srv1.http html/srv1.http.html
 %itemref html %itemref html
 %image lab/​display-map.cfg %image lab/​display-map.cfg
Line 47: Line 47:
  
 %Frameset index top Test_Lab %Frameset index top Test_Lab
 +</​code>​
 +
 +===== CGI troubles =====
 +
 +Each view requires its own CGI directory, thus, the web server needs to know that it needs to map and actually execute the CGIs. When using Apache you will need i.e.:
 +
 +<​code>​
 +ScriptAliasMatch ^/​bigsis/​.*/​cgi/​(.*) /​usr/​share/​bigsister/​cgi/​$1
 +</​code>​
 +
 +in your Apache configuration.
 +===== Limitting access =====
 +
 +BigSister by itself does not serve content to a user's browser and thus does not itself provide means for authentication and access. In order to limit access to views, you need to configure your web server to do so. An example configuration for Apache might look like:
 +
 +<​code>​
 +<​Location /​bigsis/​lab>​
 +AuthUserFile /​etc/​apache2/​users/​passwd
 +AuthGroupFile /​etc/​apache2/​users/​group
 +AuthType Basic
 +AuthName BigSister
 +Require group labstaff
 +</​Location>​
 +</​code>​
 +
 +Usually, you will also want to limit access to the BigSister base directory, since therein you still find everything. Thus, you will probably add another access limitation like this one:
 +
 +<​code>​
 +<​Location /bigsis>
 +AuthUserFile /​etc/​apache2/​users/​passwd
 +AuthGroupFile /​etc/​apache2/​users/​group
 +AuthType Basic
 +AuthName BigSister
 +Require group itstaff
 +</​Location>​
 </​code>​ </​code>​
  
bigsister/howto/views.1496731991.txt.gz · Last modified: 2017/06/06 08:53 by Thomas Aeby