From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7b06e13d4d7542d1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-18 09:03:02 PST Message-ID: <3E526532.922594B4@sympatico.ca> From: David Marceau X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.17-10mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Web Server status page References: <3E525CF1.C74104E4@hotmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 18 Feb 2003 11:54:10 -0500 NNTP-Posting-Host: 65.92.164.7 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1045587633 65.92.164.7 (Tue, 18 Feb 2003 12:00:33 EST) NNTP-Posting-Date: Tue, 18 Feb 2003 12:00:33 EST Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:34204 Date: 2003-02-18T11:54:10-05:00 List-Id: Darren Ingram wrote: > > Hi > > I am trying to get a status page to work within AWS (1.2). > I have my server setup as: > AWS.Server.Start (Web_Server => WS, > Name => "Status Test", > Port => Port, --from command line > Max_Connection => 10, > Admin_URI => "/status_page", > Callback => status_cb'Access); --call back function > > within the call back function i have just made the server return a valid html page when requested, else it returns a 'page not found' page. > > When i run the program and request /status_page the program stops with a segmentation error - but works in other cases (eg requesting /index.html). I have the aws_status.thtm and the .png files within the program directory. > Do i need something in the call back routine to handle the showing of the status page? > > Thanks for any help > Darren 1)compile with -g (that's with debug information) 2)gdb yourexecutable 3)when it displays the segmentation error, info stack [enter]. 4)send your explicit results to the AWS mailing list mentioned below and not CLA(comp.lang.ada). I don't see anything odd about your statement above except that it doesn't have the default "/Admin-Page" aws string value. You got that "page not found" message because your admin_uri string didn't match what you typed into your web browser. If I do understand correctly, it is case sensitive for the the uri string. i.e. the following should display your status page. http://www.youwebsite.org/status_page To see exactly how it works checkout the ada_server_protocol_handler.adb and search for admin_uri. One more thing read the aws docs concerning the configuration. Send any other questions to the Ada Web Server Mailing list: AWS mailing list AWS@lists.act-europe.fr http://lists.act-europe.fr/mailman/listinfo/aws I hope this helps :) Cheers, David Marceau