The content of this document may be incorrect or outdated.
Print this article Edit this article
ECN Accounts: Creating a Web Page in Your Home Directory
Please Note
The information contained in this document for creating your personal web page is no longer supported by ECN. Please refer to ECN's Web Hosting Options for more information.The instructions below are not a supported way to create a web page on ECN's system, we recommend that you use Zope to create your website instead. Zope allows more power and security in web site creation and maintenance than the old system. More information about creating and maintaining web sites in Zope can be found in the Zope FAQs.
Below is the technical details on how the Engineering Computer Network has set up their Web Server. Based on this information, you can create a departmental homepage, your personal homepage or another type of homepage. In the details below, I am using a user's question on how to set up a Club Homepage but he did not know if he wanted it to be in his home directory or under the DocumentRoot directory.
Details:
1. login name = home directory
2. unix translates ~login-name to home directory
3. httpd translates ~login-name to home directory/public-web/
4. http translates, if no ~login-name, to /DocumentRoot
DocumentRoot is usually the convention:
/home/<host>/<partition>/www/htdocs/<host> is the machine which serves your departmental or personal homepage.
- If you want the club homepage to reside in your home directory AND
you want
your own homepage separate from the club's homepage:
The unix path for the club homepage would be:
~user/public-web/ClubDir/Index.html
The url for the club homepage would be:http://host.ecn.purdue.edu/~user/Clubdir/ >>> Club Homepage
The unix path for your homepage would be:~user/public-web/Index.html
The url for your home page would be:http://host.ecn.purdue.edu/~user/ >>> Your Homepage
- If the club has a login;
The unix path would be:
~user(login)/public-web/Index.html >>> Club Homepage
The url for club login would be:http://host.ecn.purdue.edu/~user/ >>> Homepage
Your Site Specialist would have to create a login for your club. You can also have a group in addition to this login so the others in your group can write to the file(s). -
If the club homepage is to be located under /DocumentRoot, you cannot use
~login, you can have an owner and a group;
the convention of this unix path would be:
/home/<host>/<partition>/www/htdocs/Index.html >>> Dept. Homepage
For example, Engineering path is /home/ups/var/www/htdocs/Index.html >>> Schools of Engineering Homepageand ECN's path is
/home/ups/var/www/htdocs/Index.html/ECN/Index.html >>> ECN Homepage
your url could be:http://host.ecn.purdue.edu/DeptDir/ClubDir/
DeptDir being your department name (or whatever your dept. is calling this directory). The unix path for this being:/var/www/htdocs/DeptDir/ClubDir/Index.html
No public-web (that's for ~ or logins).And your group would have permissions under ONLY the directory ClubDir.
So your club would reside in the directory under /var/www/htdocs with (most likely) other departmental pieces and pages. But the directories would be controlled by the various owners/groups and the top level /var/www/htdocs/Index.html has executable permission only and is usually owned by the webmaster or root (different sites are doing it differently). The directories below it (such as yours) have rw + x on for your group.
You would have to contact your site webmaster to create this directory.
Last Modified:
Dec 19, 2016 11:12 am US/Eastern
Created:
Aug 9, 2006 12:59 pm GMT-4
by
admin
JumpURL: