The CSC has commissioned a new server web.iitd.ac.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.ac.in) are requested to move/copy their pages from webold.iitd.ac.in:~olduserid/public_html to ssh1.iitd.ac.in:~userid/public_html. Your pages will become visible both internally, and externally with a url http://web.iitd.ac.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.ac.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.ac.in/~userid.
Some of the features of the new web-page hosting servers are as follows:
- 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.ac.in/~userid.
- 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.ac.in/~userid.
- 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.
- The CSC home folders are also available on the publicly accessible ssh servers ssh1.iitd.ac.in (for all users including faculty) and ssh2.iitd.ac.in (for faculty only). Home directory can be access from ssh1.iitd.ac.in and ssh2.iitd.ac.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.
- 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.
- 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:
- Login to webold.iitd.ernet.in using your old userid and old password.
- Copy your public_html folder on webold.iitd.ernet.in to your CSC home using the command
scp -r public_html firstname.lastname@example.org:where userid is the new ldap userid (your emailid). Use ldap / email password when prompted.
- Login to ssh1.iitd.ac.in and set the recommended file permissions as follows:
- 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).
- 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
- 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.