Computer Services Centre

Indian Institute of Technology Delhi

  • Increase font size
  • Default font size
  • Decrease font size

User web pages

Print PDF

The CSC has commissioned a new server web.iitd.ernet.in for hosting web pages of all faculty and PhD students. Users who may already have web pages on the old web.iitd.ernet.in (now renamed as webold.iitd.ernet.in) are requested to move/copy their pages from webold.iitd.ernet.in:~olduserid/public_html  to ssh1.iitd.ernet.in:~userid/public_html. Your pages will become visible both internally, and externally with a url http://web.iitd.ernet.in/~userid where userid is your ldap id (email id). Note that the webold.iitd.ernet.in will be shutdown on 10th March 2011. 

To facilitate  limited access from only within IITD CSC has commissioned a separate web server privateweb.iitd.ernet.in where all users of IITD can have their personal web pages. Users can create their web pages in a directory/folder called private_html under their CSC homefolder. These web pages can then be accessed from within IITD through the URL http://privateweb.iitd.ernet.in/~userid.

 

Some of the features of the new web-page hosting servers are as follows:

  1. No separate account for creating user web pages will be necessary. All faculty and PhD students can maintain their personal web pages in a directory called public_html in their CSC home folder. The web pages are accessible as http://web.iitd.ernet.in/~userid.
  2. All users can maintain their private (accessible from within IITD) web pages in a directory called private_html in their CSC home folder. The web pages are accessible as http://privateweb.iitd.ernet.in/~userid.
  3. The CSC home folder for all users are mounted as the default home folders on all Windows and Linux machines in the CSC. Users can install and modify their web-pages from any CSC desktop. 
  4. The CSC home folders are also available on the publicly accessible ssh servers ssh1.iitd.ernet.in (for all users including faculty) and ssh2.iitd.ernet.in (for faculty only). Home directory can be access from ssh1.iitd.ernet.in and ssh2.iitd.ernet.in (faculty only) by using secure shell client (ssh client). ssh client is available by default on all versions of Unices, Linux and Mac. Windows users can download and install a popular ssh client called Putty and a popular GUI secure copy client called WinScp.
  5. The CSC home folders can also be mounted by users (after authentication) as local folders on any Windows, Mac or Linux desktops/laptops connected to the IITD LAN. Using this, the users can install/edit their web-pages from their own machines also. Please see the CSC page on Home spaces through CIFS shares for details.
  6. Users can link their own php and cgi scripts to their web-pages and these will execute under user privileges and permissions. Hence one user's files and data will be completely protected from another user, as long as the file permissions are set up suitably. Please see below for the recommended permission settings.

The steps to be followed for moving  user web pages from the old web.iitd.ernet.in  renamed as webold,iitd.ernet.in to CSC home folder are as follows:

  1. Login to webold.iitd.ernet.in using your old userid and old password. 
  2. Copy your public_html folder on webold.iitd.ernet.in to your CSC home using the command
    scp -r public_html userid@ssh1.iitd.ernet.in:
     
    where userid is the new ldap userid (your emailid). Use ldap / email password when prompted.
  3. Login to ssh1.iitd.ernet.in and set the recommended file permissions as follows:
    1. For any static web content (all non-executable files, like static HTML pages, Images, JavaScript, CSS files, etc), the corresponding file should be set to world readable (preferably 644), and all the parent directories (including the $HOME) should have the execute bit set for the world (preferably 701).
    2. For any executable (PHP or CGI scripts), as well as configuration files which are to be read only by such executables, nobody other than the owner should be given  read permissions. It is also required to set executable bit for the owner, to allow executing it as a script with the owner's ID. The permissions thus become 700 for such files (if write access has to be granted), or 500 (for read only).
    3. The bare minimum to get started is: ssh to ssh1.iitd.ernet.in or ssh2.iitd.ernet.in and use the following:
      chmod o+x $HOME
      chmod uo+x $HOME/public_html
      cd $HOME/public_html && chmod -R u+rx *.php *.cgi
  4. Please ensure that all html files have read access by all and all php and cgi scripts have the executable permissions set.

The CSC would like to thank Nitesh Mor for his help in setting up this facility.

    Last Updated on Wednesday, 25 January 2012 13:01