Table of Contents
Where to create HTML documents on Ruby
Individual HTML documents served by Ruby must reside in the directory named public_html inside your home directory.
These files will have a URL of http://ils.unc.edu/~username/whatever.html.
To get the files to your Ruby directory, use [ http://sils.unc.edu/itrc/its/faq.php?id=4681 ] SFTP for PC or [ http://sils.unc.edu/itrc/its/faq.php?id=4629#d0e154 ] SFTP for Mac.
Enabling Web Access
Before you or anyone else can access your files through a Web browser, you must first change the access permissions for your root folder on Ruby.
Here are two options for doing this...
Using UNIX commands in the UNIX shell:
-
Navigate to your root directory (/export/home/u/username/). This is where you start when you first log in. You could also type
cdto get there. -
Type
chmod 711 .(chmod space 711 space period). Do not forget the space and the period after the 711.
Using the SSH graphical user interface (SSH Secure File Transfer):
-
Navigate to your root directory (/export/home/u/username/). This is where you start when you first log in. You could also select the
icon.
-
Hit the
button.
-
Find your folder in the list.
-
Right click on your folder and select
Properties. -
Make sure your Permissions are set like this:
Failure to do this will yield a 403 error when trying to view your Web pages.
Where to create HTML documents on Isis
To create HTML documents on Isis, please consult the ITS helpdoc: [ http://help.unc.edu/1848 ] Creating Web Pages in AFS
Learning HTML, CSS, XML, XSL, XHTML, PHP, ...
The [ http://www.w3.org/ ] World Wide Web Consortium (also known as the W3C) has the specifications for these languages and more. They also have [ http://www.w3schools.com/default.asp ] online Web tutorials to get you started. If you're just getting started making Web pages, visit the [ http://www.w3schools.com/html/default.asp ] HTML Tutorial. More advanced Web developers should browse the list to find what they need.
There are also many useful books in the SILS Lab that can be checked out with your OneCard. O'Reilly's Web Design in a Nutshell is a handy reference for the initiated and a good place to start for newbies.