Personal Web Pages

by David Blank-Edelman on October 8, 2009

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

  1. 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).
  2. 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.
  3. 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
    where login_name is replaced with your CCIS login name.

Notice
These URLs do not contain the .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 }

Nathan Heaps January 27, 2010 at 11:05 pm

Is this an apache server? How do I go about letting the server do a directory listing?

David N. Blank-Edelman January 28, 2010 at 10:52 am

It is indeed. Please see our Making Directories Browsable HOWTO page on just this topic.

Spencer Small July 2, 2010 at 9:26 pm

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.

David Blank-Edelman July 6, 2010 at 2:58 pm

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?…).

Shweta Memane March 28, 2011 at 10:32 am

Can I host aspx pages on this site?

Christopher Allison March 28, 2011 at 11:02 am

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

Pradep Panchatcharam September 19, 2011 at 3:57 pm

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

David N. Blank-Edelman September 19, 2011 at 4:23 pm

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

Emil Abraham April 20, 2012 at 1:31 am

Supports PHP? Meaning, does it handle files with extension .php? If not, is there a way I can host php?

David Blank-Edelman April 23, 2012 at 1:05 pm

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.