At IU, what is Mypage, and how can I publish a web page there?
UITS provides Mypage for serving personal web pages. Anyone with a Network ID may create a personal web page on Mercury and publish it using Mypage. The Mypage service removes the burden of serving web pages from IU's general-purpose Unix systems.To learn about the policies for posting information on Mypage, see At IU, what is the policy for information on personal web pages?
On this page:
- Information about Mercury/Mypage accounts
- Making a secure connection
- Creating your personal home page
- Working with your pages on the server
- Accessing your personal home page
- Controlling who can see your pages
- Sharing files with others through your personal home page
- Publicizing your personal home page
Information about Mercury/Mypage accounts
The Mypage service at Indiana University is for personal web pages
only. Mypage is a great place to share your resume, your research
findings, and even your family photos. If you will be using your web
pages for official IU business (e.g. instruction, research,
administration), you should probably request an account on IU's
central web server, Webserve, which hosts accounts on
www.indiana.edu, www.iupui.edu,
www.iuk.edu, and www.iun.edu. Accounts on
Webserve offer access to some web utilities not available through
Mypage. For more, see the IU
Webmaster's Accounts page. To determine which account (Mypage or
Webserve) is best for you, read about the
differences between the two.
Mypage pages are hosted on Mercury; that is where you will log in and create, upload, or update your pages. If you have an IU Network ID but not a Mercury account, you can create one using the Account Management Service (AMS). Visit:
https://itaccounts.iu.edu/Log in with your Network ID and follow the instructions for creating a Mercury account. Your account should be available within an hour after you create it.
Your Mercury account has a quota of 1GB. Quota increases are not currently available.
Note: The IU South Bend Mypage service is different from the Mypage service noted here; see IUSB's Web Publishing: Mypage.
Making a secure connection
To log into your account on Mercury or upload files to it, you must use a secure client like SSH Secure Shell for Windows, or MacSSH or MacSFTP for Macintosh. For help, see:
- At IU, what SSH/SFTP clients are supported and where can I get them?
- What is SFTP, and how do I use it to transfer files?
- In SSH Secure Shell for Windows, how do I transfer files?
- In Mac OS X, how do I use Cyberduck to transfer files?
If you use an HTML editor (e.g., Dreamweaver), you can use the software's built-in upload feature to move files to Mercury only if it permits secure uploads. Check the program's documentation for information about secure file transfer.
To connect to Mercury, use the server name
mercury.uits.indiana.edu. Log in with your IU Network
ID username and passphrase.
Creating your personal home page
Learning HTML
Web pages are ordinary text files that also contain some special instructions, or tags, to tell web browsers how to handle the text. For example, some tags create links or give text a special appearance. These tags constitute HTML (Hypertext Markup Language).
Many online resources are available for learning how to use HTML to create web pages, for example:
At IU Bloomington and IUPUI, IT Training & Education offers a number of workshops that will help you learn about creating web pages, including creating and working with graphics. You can browse workshops by topic to view the current offerings.
You can also learn a great deal about HTML by looking at the source text (text coded with HTML tags) of pages already on the web. Your browser can usually show you the source of any web page you are viewing. For more information, see How can I view the HTML code of web pages?
Choosing a tool for writing and editing HTML files
You have the following options for writing and editing your HTML files:
- You can use the text editors Nano and vi on
Mercury. Nano is similar to Pico, and if you are familiar with Nano,
Pico, or vi, this is probably the easiest and most convenient way to
create or edit your pages. For example, enter
nano home-template.htmlto use Nano to edit the template home page file created automatically in yourwwwdirectory.Note: If you edit the template file created by
mv home-template.html home.htmlspinwebto create your home page, you may want to rename it fromhome-template.htmlto simplyhome.html. To do so, at the Unix prompt, enter: - You can also create web pages on your computer at home or in your
office, using any text editor or word processor with which you are
familiar. Some of these programs, such as WordPerfect, Microsoft Word,
and BBedit, come with tools that assist in creating HTML documents.
Note: If you use a word processing program, make sure to save the file you create as a plain text file (or as HTML text, if that option is available) rather than the default word processing file format. Also, if you create your files using a word processor or an HTML editor on a home, office, or Student Technology Center (STC) computer, you will need to transfer them to Mercury. See Uploading your files below.
- You can use an HTML program specifically designed for creating web
pages (for example, Adobe Dreamweaver). These programs help you manage
HTML tags and format your text.
If you use an HTML editor with built-in file-transfer capabilities, you can upload files to Mercury only if the program permits secure file transfer. For help, consult the software's documentation.
Naming your home page
For your page to be listed in the Directory of
Personal Home Pages, your home page must be named
home.html. If you don't want your page listed in the
directory, choose one of the following alternative filenames for your
home page: home.htm, home.shtml,
index.html, index.htm, or
index.shtml. If you do not use any of these filenames,
the URL http://mypage.iu.edu/~username
(where username is your username) will return an error.
Working with your pages on the server
Uploading your files
Once you have created your web pages, you'll need to make sure they're in the proper place in your Mercury account.
If you created your web page on Mercury using Nano from within your
www directory (where username
is your username), your files are already in the right place.
However, if you created a web page on an STC workstation or personal computer, you will need to move the file to Mercury. You need to use a secure FTP (SFTP) program such as MacSFTP for Macintosh or SSH Secure Shell for Windows. For help, see:
- In SSH Secure Shell for Windows, how do I transfer files?
- In Mac OS X, how do I use Cyberduck to transfer files?
Navigating on Mercury
Because Mercury is a Unix system, you may want to familiarize yourself with basic Unix commands. See:
In particular, note the following commonly used commands:
- To see all the files in the directory that you're in,
enter
ls.
- To create a new subdirectory, enter
mkdir directoryname(replacedirectorynamewith the name of the subdirectory you'd like to create). If you have problems viewing files in the new subdirectory in a browser, runspinwebat the command line on Mercury.
- To move to a different directory, enter
cd directoryname(replacedirectorynamewith the name of the directory to which you'd like to move).
If your Unix configuration files ever become corrupt or stop working,
you can run the ezreset command to back up the current
configuration files and replace them with the versions included with
new accounts. For more, see At IU, what is ezreset, and how can I use it to reset my accounts to their default settings?
Spinweb and file permissions
The correct file permissions should be set by default so that your
pages will be visible to you and to others in a web browser. If you
have trouble viewing your pages, run spinweb while logged
into your Mercury account. This should correct any problems and ensure
that the permissions are set correctly on your www
directory and any subdirectories.
Alternately, you can set proper permissions by using the Unix
chmod command. While logged into Mercury and at your
home directory, enter chmod -R 755 ~/www . This
command sets the permission on ~/www and all files and
directories within it so they are accessible via the web.
Accessing your personal home page
Once your files are in place and the permissions are set correctly, you can view your personal home page by using a web browser to go to a URL similar to the following:
http://mypage.iu.edu/~username/Replace username with your username. This URL will take
you to the home.html file in your www
directory. Thus, the full URL for your home page will be
the following, with username replaced by your username:
For files other than home.html that are in the top level
of the www directory, the URL must include the
filename. For instance, if your username is dvader and
you have a file in your www directory called
secrets.html, the URL for the secrets.html
page would be:
If the file is inside a subdirectory of the www
directory, its URL includes the name of that directory, the
/ (slash) character, and the filename. For
example, if dvader has a directory called
death-star inside his www directory, and the
death-star directory contains a file called
blueprints.html, the URL for blueprints.html
would be:
Controlling who can see your pages
You may serve personal pages over a secure server. Newly created
Mercury accounts automatically have a wwws directory.
You can have some control over who is able to view your web pages by
using .htaccess files in your wwws directory
and its subdirectories. For more information, see Controlling
Web Page Access. The information refers to Webserve, but also
applies to Mercury.
Be especially careful that your permissions are set correctly, and
keep in mind that you can specify access by IU Network ID only in your
wwws directory. If you had a Steel account with
.htaccess files in your www directory, they
will no longer function as expected. Move those pages and their
.htaccess files to your wwws directory.
Sharing files with others through your personal home page
Your Mypage space is a good way to share files with others outside of
IU. To upload the file you would like to share, make a secure FTP
connection to Mercury as described above (for information on
transferring files, see In SSH Secure Shell for Windows, how do I transfer files? or In Mac OS X, how do I use Cyberduck to transfer files?).
Once you transfer the file, run spinweb to make sure the
file permissions are set correctly. When you have done that, others
can access the file. If it is in your www directory on
Mercury, the URL will be similar to the following:
Replace username with your username, and filename
with the name of the file you uploaded.
For information about limiting access to your files, see How do I limit access to my World Wide Web pages?
Publicizing your personal home page
You have the following options for letting others know about your personal home page:
- If you have a file named
home.htmlin yourwwwdirectory on Mercury and have runspinwebafter creating it, this page will be automatically listed in IU's Directory of Personal Home Pages. For more information about using this directory, see At IU, how do I add or remove a link from the Directory of Personal Home Pages to my web page?
- You may wish to add your home page address to your IU Address Book
entry. For help, see At IU, how do I change information displayed in the online IU Address Book and the Global Address List?
- Another option is to create a signature file for your email that
contains the URL for your home page. This is a popular way of
publicizing your home page because the signature file will be
automatically appended to every email message you send. For help, see
In email, what is a signature?
- You may submit your web page's URL to a search engine such as Yahoo! or WebCrawler, but they can display it only if they don't use a robot to verify the address. Some search engines use robots; some don't. UITS has a "no-robots" policy on the Mypage web server. Reindexing large numbers of web pages is too costly and is harmful to the performance of the Mypage web Server.
Last modified on November 25, 2009.







