Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

At IU, what should I do if people get an error message when they try to view my web page?

On this page:


"404" or "File not found" errors

If you or others receive a "404" or "File not found" error message when trying to view your Indiana University web page, the web browser has not been able to locate the page you are trying to access. Check the URL to make sure it is correct. In particular, consider the following:

  • URLs are case sensitive: Hobbies.html is different from HOBBIES.HTML, hobbies.html, or hobbies.HTML.

  • Names of files must match exactly: hobbies.html is not the same as hobbies.htm, nor is home.html the same as home.htm.

  • Make sure your pages are in your www directory or a subdirectory of www.

  • Do not include the www directory in the URL. A correct URL would appear as follows: http://mypage.iu.edu/~dvader/sith.html http://www.indiana.edu/~deathstar/contact.html

    The following would be incorrect:

    http://mypage.iu.edu/~dvader/www/sith.html http://www.indiana.edu/~deathstar/www/contact.html

    The web browser considers ~/www to be the top directory. Adding an extra www to the URL causes the browser to look for a subdirectory of ~/www called www.

  • Check the link pointing to the page that is returning the errors. Make sure there are quotes around the page's address, for example: <a href="foobar.html">

    Note: Some word processing programs use smart quotes. You cannot use smart quotes in this case. For help, consult the documentation for your word processing program.

  • Make sure the address is in the correct format. If you are using relative URLs, refer to What is the difference between an absolute and a relative URL?

    If you use absolute URLs, make sure the entire hostname is included in the address. If you include only the name of the computer, many people, especially those outside of the university, will not be able to view your page. A correct URL will look like the following:

    <a href="http://mypage.iu.edu/~jdoe/foobar.html">

Note: The IU South Bend Mypage service is different from the Mypage service noted here; see IUSB's Web Publishing: Mypage.

Back to top

"403" or "Forbidden" errors

If you or others receive "403" or "Forbidden" errors when trying to view your web page at IU, the web browser does not have permission to access your page. To change the permissions, follow the appropriate steps below based on where your page is hosted.

Before starting, check the web page's URL to make sure all of your files are where they are supposed to be and have correct names.

Changing file permissions on the command line on Mypage

If your web pages are on Mypage, use the spinweb command to set the correct permissions. Log into Mercury and, at the Unix prompt, enter:

spinweb

Return to the page that was causing the error, and then click the Refresh button in your browser window.

You can also enter the Unix chmod command:

chmod -R 755 ~/www

For more, see In Unix, how do I change the permissions for a file?

Back to top

Changing file permissions at the command line on Webserve

If your web pages are on IU's central web server (Webserve), log into your account and enter:

chmod -R 755 ~/www

This command makes the ~/www directory, including all of the files and subdirectories in ~/www, accessible by web browsers. On Webserve (www.indiana.edu, www.iupui.edu, www.iun.edu, and www.iuk.edu), the default name of your web directory is www, and it is located in your home directory. If the name of your World Wide Web directory is something other than www, or if your web directory is located anywhere other than your home directory, you will need to replace ~/www with the appropriate directory name and path.

Note: For security reasons, certain file types should not be made world-readable. For example, perl or PHP files should be set to be readable for owner only.

Back to top

Changing permissions using a graphical interface

If you wish to use a graphical interface, use one capable of using SFTP, such as WinSCP or Cyberduck. For more, see SSH/SFTP clients supported at IU.

For help with Cyberduck, see Changing File Permissions using Cyberduck.

Back to top

Directory indexing and home page filenames

Directory indexing is disabled by default on IU's web servers. Therefore, your home page must have one of the filenames listed below. For details, see For my web page, what is directory indexing, and how do I enable it?

For personal home pages on Mercury/Mypage at IU, if your home page is not named one of the following, you will get an error:

home.html home.htm home.shtml index.html index.htm index.shtml

Unless you have a file in the www directory with one of those names, the following URL will return an error (where username is your username):

http://mypage.iu.edu/~username/

For web accounts on Webserve, if your home page is not named one of the following, you will get an error:

index.html home.html index.htm home.htm index.shtml index.cgi index.php4 index.phtml index.php
This is document adho in domain all.
Last modified on November 13, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.