Add Files to Your Web Site

Creating Web pages without using HTML
Adding a link to a SimpleText document
Adding files and folders to your site
Attaching documents to the My Shared Documents link in your home page
Preventing visitors from browsing the contents of a folder
Using different file types


To create Web pages without using HTML

  1. Create a SimpleText document. Personal Web Server can display SimpleText styles so you can be creative with your SimpleText document.
  2. While in SimpleText, choose Save from the File menu and do the following:
  3. Open the Microsoft Personal Web Server control panel and click the Links button to add the URL to your home page.
  4. Visit your Web site and look at the new file.

Related Topics
Adding links to your home page
Adding a link in a SimpleText document
Publishing a new folder
Visiting your Web site

Return to top

To add a link in a SimpleText document

  1. Create a SimpleText document, including all the text and styles.
  2. Find the text that you want to turn into a link. Make sure that all the text for the link uses the same style. (For example, if part of it is bold, the whole link must be bold.)
  3. Immediately before the text, type the URL you want the link to point to.
  4. Place quotation marks around the URL. Do not leave a space between the closing quotation mark and the first letter of the text. It should look like:

    "http://www.microsoft.com/ie"Check out the Microsoft site.

    (Make sure you use straight quotation marks, like the ones shown above, not curly quotation marks.)

  5. Select the URL (including the quotation marks) and the text that you want to link.
  6. From the Style menu, choose Underline. Now it should look like:

    "http://www.microsoft.com/ie"Check out the Microsoft site.

    Make sure that the link is underlined and that the underline does not extend to the text surrounding the link.

  7. Save the file, and drag it to your Web site folder. If you drop it inside the My Personal Web Site folder, the URL will start just like the URL for your site, but will have the name of the document appended to the end. For example:

    http://www.microsoft.com/start.htm

Related Topics
Adding a file or folder
Creating Web pages without using HTML

Return to top

To add a file or folder

Tips

Note

Related Topics
Adding Active Server Pages to Your Web Site
Creating Web pages without using HTML
Preventing visitors from browsing the contents of a folder
Understanding File Types

Return to top

Attaching documents to the My Shared Documents link in your home page

  1. Open the My Personal Web Site folder on your computer. Unless you have thrown it away, you should see a My Shared Documents folder.
  2. Drag the documents that you want visitors to be able to see when they click the Access Shared Documents link on your home page into My Shared Documents folder.

Return to top

To prevent visitors from browsing the contents of a folder

Related Topics
Adding a file or folder

Return to top

Using different file types

When a visitor to your Web site clicks a link, Personal Web Server sends the file to the visitor's browser where it is then displayed. However, before the file can be displayed, PWS must also tell the browser what type of file it is sending. It does this by sending the document's MIME type (Multipurpose Internet Mail Extension).

How does it know the MIME type? Personal Web Server looks for any of these three pieces of information: the file's extension, document type and Internet Config.

Personal Web Server's Order of Operations

  1. To ensure that Personal Web Server serves documents properly, there are a few basic mappings that do not rely on Internet Config. Table 1 lists the file extensions and MIME types that Personal Web Server uses regardless of the MIME type specified in Internet Config.
  2. If no extension is found, Personal Web Server checks to see if the file is a SimpleText file.
  3. Personal Web Server reviews the settings in Internet Config, first checking the file extension and then the file type
  4. Personal Web Server will look for the file extensions (see Table 2) and then file types (see Table 3 ) that it recognizes automatically.

Table 1: Extensions that PWS maps regardless of Internet Config's settings
ExtensionMIME TypeDescriptionAction
htm or htmltext/htmlHTML document
fcgitext/htmlFrontier CGINot processed for ASP
jistext/htmlJIS (Japanese) encodedNot processed for ASP
nptext/html

asptext/htmlActive Server Pages
cgitext/htmlCommon Gateway Interface
acgitext/htmlAcynchronous CGI
ttext/htmlWebSiphon CGI Template
fmtext/htmlFile Maker Pro ACGI
maptext/htmlImage Map
processtext/htmlASP Form Processing Document
mimeapplication/octet-streamRaw Data
rawapplication/octet-streamRaw Data
macapplication/octet-streamMacintosh FileBinHex encode
jpgimage/jpegJPEG image

Table 2: Extensions that PWS recognizes automatically
File kind Extension Description Action
CGI.cgi
Runs CGI
ACGI.acgi
Runs ACGI
Frontier ACGI.fcgi
Runs Frontier.acgi located in your HTML files folder.
File Maker Pro ACGI.fm
Runs FM.acgi located in your HTML files folder.
Image Map.map
Handles Image Map operations.
Raw Mime.mime

AppleScriptCGI.script
Runs AppleScript.
Mac File.mac
Binhex encodes file before sending.
Standard HTML.htm or .html

JPEG Image.jpg or .jpegimage/jpeg
GIF Image.gifimage/gif
Basic Audio.auaudio/basic
AIFF Audio.aiff or .aifaudio/x-aiff
Binhex.hqxapplication/mac-binhex40
QuickTime Movie.movvideo/quicktime
MPEG Video.mpegvideo/mpeg
Adobe Acrobat PDF File.pdfapplication/pdf
Plain Text.texttext/plain
Plain Text.txttext/plain
Macromedia Director.dcr or .dirapplication/x-director
Microsoft Word .doc, .rtf, .dot, wbkapplication/msword
Microsoft Excel.xla, .xls, .xlcapplication/x-msexcel
Microsoft PowerPoint.ppt or .potapplication/x-mspowerpoint

Table 3: File types that PWS recognizes automatically
File TypeMIME typeDescription
'XCEL' application/x-msexcelMicrosoft Excel file
'MSWD' application/mswordMicrosoft Word file
'PPTS' application/x-mspowerpointMicrosoft PowerPoint file
'AIFF'audio/x-aiffAIFF Audio File
'GIFf'image/gifGIF Image
'JPEG'image/jpegJPEG Image
'MooV'video/quicktimeQuickTime Movie
'MPEG'video/mpegMPEG Video
'PDF 'application/pdfAdobe Acrobat File

Note

Related Topic
Adding files and folders to your Web site

Return to top