You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-dev@tcl.apache.org by Alex Greif <al...@greifdesign.net> on 2013/08/06 22:25:31 UTC

mod_websh html problem

Hi,

I am new for websh.

I installed mod_websh and calling the myApp.ws3 handles the request file
and shows the page.
But calling /index.html throws the following error:


[Tue Aug 06 22:16:32 2013] [error] [client 192.168.0.110] extra characters
after close-brace\n    while compiling\n"<p>Time on your server is
currently {web::put [clock format [clock seconds]]}.<br>\nNote that the
above line is written as:<pre>Time on your server is ..."



the apache config is:
<VirtualHost *:80>
    ServerName websh1.example.com
    DocumentRoot /var/www_websh1
    CustomLog ${APACHE_LOG_DIR}/websh1_access.log combined
    ErrorLog ${APACHE_LOG_DIR}/websh1_error.log

    LoadModule websh_module /usr/local/lib/httpd/modules/mod_websh.so
    AddHandler websh .html
    AddHandler websh .ws3
    WebshConfig /usr/local/share/websh3.6/conf/websh.conf
</VirtualHost>


BTW I get the same error if I comment out the WebshConfig directive.
(myApp.ws3 works; index.html does not word)
It seems that the directive is ignored somehow.

Anz ideas whats goung wrong?

thanks,
ALex.



---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org


Re: mod_websh html problem

Posted by Ronnie Brunner <ro...@netcetera.com>.
Hi Alex,

I suspect that either your websh.conf or the htmlhandler.ws3 is not setup correctly. If you have not set up an 'html handler' to handle index.html as an html file containing websh code, then your file is simply sourced as Tcl, which it obviously isn't, hence the error.

Hth
Ronnie
-- 
Sent from my phone - sorry for the typos :-)

On 06.08.2013, at 22:26, "Alex Greif" <al...@greifdesign.net> wrote:

> Hi,
> 
> I am new for websh.
> 
> I installed mod_websh and calling the myApp.ws3 handles the request file
> and shows the page.
> But calling /index.html throws the following error:
> 
> 
> [Tue Aug 06 22:16:32 2013] [error] [client 192.168.0.110] extra characters
> after close-brace\n    while compiling\n"<p>Time on your server is
> currently {web::put [clock format [clock seconds]]}.<br>\nNote that the
> above line is written as:<pre>Time on your server is ..."
> 
> 
> 
> the apache config is:
> <VirtualHost *:80>
>    ServerName websh1.example.com
>    DocumentRoot /var/www_websh1
>    CustomLog ${APACHE_LOG_DIR}/websh1_access.log combined
>    ErrorLog ${APACHE_LOG_DIR}/websh1_error.log
> 
>    LoadModule websh_module /usr/local/lib/httpd/modules/mod_websh.so
>    AddHandler websh .html
>    AddHandler websh .ws3
>    WebshConfig /usr/local/share/websh3.6/conf/websh.conf
> </VirtualHost>
> 
> 
> BTW I get the same error if I comment out the WebshConfig directive.
> (myApp.ws3 works; index.html does not word)
> It seems that the directive is ignored somehow.
> 
> Anz ideas whats goung wrong?
> 
> thanks,
> ALex.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
> For additional commands, e-mail: websh-dev-help@tcl.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org