Personal Web Pages
Last updated November 17, 2009
OVERVIEW
This document is intended for users in the CCIS community to describe how they can create their own personal world wide web pages.
We have our web server set up so that you can publish documents via the Web from your home directory. These pages will be served out to anyone on the Internet. It is likely that they will be found by web crawlers for search engines like Google, so be sure to only include information on these pages that you would like to be made public.
Creating And Serving A Home Page
- Create the directory
~/.www. You need to be sure that this directory has world read and search permissions, and that your home directory has least world search perms. (run:chmod 755 ~/.www;chmod o+x ~– if you are uncertain). - Create a file in that directory called
index.html. This file should be in HTML format. This document will be the first page remote users would normally access to enter your personal web tree. - Poof: This document should now be available to you via the Web at the URL:
http://www.ccs.neu.edu/home/login_name/index.html
wherelogin_nameis replaced with your CCIS login name.
.www that is part of the real filename (such as /.www/index.html). It is a common mistake to confuse the real location of your HTML documents and the virtual URL that is used to access them. The http server maps the ‘top’ of your tree into your /.www directory of your home directory automatically, so you should never include the .www in your URLs. Primarily, this is intended a security measure – only files you specifically place into your physical ~/.www are available via the web.You can place any other html documents and certain other types of files, including images and sound files, into your ~/.www directory to make them available on the Web. One thing you should be aware of is how filenames are used to determine the file types. They are primarily recognized by the file suffixes. (For instance, a file whose name ends in .html or .htm is served as an HTML document, while a file whose name ends in .bin is served as an arbitrary binary file for download.)
{ 10 comments… read them below or add one }
Is this an apache server? How do I go about letting the server do a directory listing?
It is indeed. Please see our Making Directories Browsable HOWTO page on just this topic.
What about using htaccess redirects? My website is hosted elsewhere, and HTML/Javascript redirects are rather unprofessional, but the Redirect command appears to be disabled.
We do indeed turn that off by default, but we’re happy to redirect at the server level where it makes sense. Feel free to drop us a line at systems@ccs.neu.edu. Be sure to let us know just why you need it (i.e. if you are hosting everything someplace else, why have even a redirect here?…).
Can I host aspx pages on this site?
Hi Shweta,
aspx pages can be hosted on aspbox.ccs.neu.edu. To get started, please see http://howto.ccs.neu.edu/howto/web/asp-or-cgi-scripts/. aspx pages are not compatible with the apache daemon that serves personal web pages from http://www.ccs.neu.edu. Best,
-Christopher Allison
UNIX Systems Administrator
Is there a way to access my .www folder through any windows based applications ? How do i transfer my .html files from my local machine to the .www folder ? Let me know if FTP applications like filezilla can be used on the server.
Pradep
Yes, you can use any Windows SFTP program (for example: Putty’s psftp, VanDyke’s SecureFTP, FileZilla) to transfer them via any public Linux host (e.g. login.ccs.neu.edu or any of the ones linked off of this page: http://howto.ccs.neu.edu/howto/unixlinux/linux-at-ccis/).
— dNb
Supports PHP? Meaning, does it handle files with extension .php? If not, is there a way I can host php?
Our main web server only supports static content, so files with a .php extension will be treated as plain text and not executed. For PHP, you’ll want to see our HOWTO on ASP or CGI scripts.
You must log in to post a comment.