Chapter 11, Extending Your Server With Programs
297
Server-Side JavaScript Programs
Note
Don’t give any JavaScript applications the same names as any subdirectories of
your primary document directory. If you do, the server will no longer correctly
process requests for resources in the directory. For example, if you have a
directory
server_id
/docs/bug
, and a JavaScript application named
bug
, all
requests for any files in the bug directory (or any of its subdirectories) will
attempt to launch the JavaScript application
bug
. The JavaScript application
URI takes precedence.
Application URLs
When you install a server-side JavaScript application, you must enter a name for
it. This name determines the
application URL,
the URL that clients use to access
a JavaScript application. Application URLs are of the form
http://
server.domain
/
appName
/page.html
where
server
is the name of the HTTP server,
domain
is the Internet domain
(including any subdomains),
appName
is the application name you enter when
you install it, and
page
is the name of a page in the application, such as the
default page name.
You can also access the application with the URL
http://
server.domain
/
appName/
since the server knows the default page to open.
For example, if your server is named
myserver
and your domain name is
mozilla.com
, the application name is
world
, and the default page is
hello.html
, you can access the application with either of the following
URLs:
http://myserver.mozilla.com/world/hello.html
or
http://myserver.mozilla.com/world/
When a client requests an application URL, the server runs the server-side
JavaScript code inside the default page then sends the resultant HTML page to
the client.
Содержание Netscape Enterprise Server
Страница 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Страница 31: ...Part 1 Server Basics 31 1 Server Basics Introduction to Enterprise Server Administering Enterprise Servers ...
Страница 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Страница 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Страница 64: ...Migrating a Server From a Previous Version 64 Netscape Enterprise Server Administrator s Guide ...
Страница 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Страница 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Страница 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Страница 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Страница 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Страница 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Страница 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Страница 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Страница 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Страница 390: ...Customizing the Web Publisher User Interface 390 Netscape Enterprise Server Administrator s Guide ...
Страница 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Страница 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Страница 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Страница 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Страница 504: ...504 Netscape Enterprise Server Administrator s Guide ...