WebSTAR 4 Manual & Technical Reference

Manual Contents | Index | Previous Page | Next Page

Web Server Troubleshooting

This chapter helps you locate and fix problems with web serving.

Please note that updated information for all troubleshooting is available at http://www.starnine.com/support/ .

WebSTAR crashes at its first attempt to serve a page

The Browser Admin URL returns "document contains no data"

Plug-In Problems

WebSTAR comes with various useful Plug-ins. In addition, Plug-In developers have created many third-party Plug-Ins to provide additional modules to WebSTAR.

If you have trouble with Plug-Ins, follow these steps:

Plug-Ins load as part of the server at launch and are more likely to cause crashes than CGIs. If you can substitute a CGI for any of your installed Plug-Ins, it may help in determining which specific Plug-In is problematic.
There are often 3-way conflicts. Try running without any Plug-Ins or CGIs, then add them back in one by one (quitting and relaunching WebSTAR each time), until a culprit is discovered. Then try that Plug-In or CGI alone, to determine if it is problematic by itself or only in combination with others.
If you've written your own CGI or Plug-In, you may need to do some more debugging.
WebSTAR Plug-Ins
In order for the directory index listing to be displayed for a particular folder, the folder must contain a text file named ".message".
The image map must be in NCSA format, and the suffix must be " .map ". To test the Plug-in, try the image map files in the Tools and Examples folder.
Try the Form Mail example from the Tools & Examples folder to see if you have the Plug-In installed correctly.You can also use this as a model for your own Form Mail form.
Third-Party Plug-ins

Web pages aren't being served correctly

Make sure that you have replaced default.html with your preferred home page. If you're using a different name, make sure you have the new file in the WebSTAR root folder, and have set WebSTAR to see the correct name.
If even a plain file does not serve correctly, carefully check the path to the file in your HTML..
If a plain HTML file serves correctly, check to see that there is a Suffix Mapping entry for the specific file type you are trying to serve.
If you can successfully serve the file from WebSTAR, and can correctly view/hear/open it with your own browser, it is more likely that the browser of the user who is reporting problems needs configuration, rather than the server.
 
http://www.domain.com/the-file-you-want-served
(replacing www.domain.com with your host name): does it work? If so, move the file to the location where you want it, and check your HTML to see that the path to the file includes all folders in the path.
If the file doesn't serve correctly upon a direct request while it is located in the root WebSTAR folder, you may have a more serious hard drive or file system problem. You should run a disk utility and rebuild the Desktop file.
  • Some HTML files are truncated .
  • If you're getting broken files --flush the cache, Command-F in either the WebSTAR server or Admin applications.
  • You have Java files containing "$" in the filename, WebSTAR cannot serve those files. A "$" as part of a URL is interpreted as something to be processed by a CGI or Plug-In. See WebSTAR JRun Servlet Runner for more information on how to get your Java working.
  • Images served from WebSTAR are broken or cut off in the browser

    People report that their browser crashes when they view certain pages

    The WebSTAR status window is displaying lots of strange error messages

    After moving WebSTAR to a new machine, Java doesn't work anymore.

    To move your WebSTAR server and site to a new machine, all you have to do is copy the WebSTAR folder and all its contents. WebSTAR keeps all its files, such as settings, log, etc., in its own folder. This is what makes it possible to run more than one copy on a single machine with each copy having different settings.
    If you have placed aliases within the WebSTAR folder which reference files or folders outside the WebSTAR folder or if you have used SSI included files which are referenced by explicit path, you will have to reconfigure those on the new machine as well.

    Browsers are getting "broken pipes" messages

     
    http://www.starnine.com/extendingwebstar.html
    
    
    for tools that enable you to watch the connection and monitor packets being sent. This can help determine where things are getting lost in the path from browser to server and back to the browser.

    V irtual Hosts requests are not being routed properly

     
    192.1.1.1  	www.domain.com  	English	  :widget:
    the browser must connect to the IP address "192.1.1.1" and pass to the server a Host: field of "www.domain.com" and include the English language field, in order for the request to get routed to the correct root folder.
    If you only have one host for this IP address, it's better to just use the IP Address field, like this:
     
    192.1.1.1	  Any             	Any  	    :widget:
    This entry routes all browser requests for the IP address "192.1.1.1" to the folder domain located inside the WebSTAR folder.
  • Virtual Host entries are order dependent. For example, if you wanted to route browser requests to a specific folder based upon the language specified in the browser, the specific Virtual Host entry for that language should be listed before the more generic entry. The proper order to make this works would be:
  •  
    192.1.1.1  	Any             	French  	:mechanisme:
     
    192.1.1.1	  Any	             	Any	     :widget:

    Problems configuring Open Transport to support multiple IP addresses

    For information, see IP Multihoming: Special Configuration .


    Manual Contents | Index | Previous Page | Next Page