Re: [AOLSERVER] Virtual Hosting by Name not IP.

2003-02-21 Thread Dave Hwang
> Tim Moss <[EMAIL PROTECTED]> writes:

 > You can do this with AOLserver v4 as it comes (out of the box) - look
 > in the list archive for the example config file I sent a couple of
 > days ago, which has an example of this.

 > If you are using v3.x then there are various C, Tcl or C/Tcl add-on
 > modules that will let you do this.  Which is best I don't know - can
 > anyone else help?


There was a discussion on this topic a couple of weeks ago on the
OpenACS forum:

   http://openacs.org/forums/message-view?message_id=77330

Dave



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/


Re: [AOLSERVER] set expires

2003-02-21 Thread Tom Jackson
There is a simple way of preventing duplicate inserts that doesn't rely
on generating a unique form id.
This topic has been discussed many times at Photo.net and now
Openacs.org. OpenACS has a double click protection, but I think it still
relies on cooperation between the form and the form processing page.
What you really want is to prevent duplicate data so here is the outline
of a one page (the form processing page) solution that guarantees you
never insert duplicate data.

0. create hash_table ( hash_value varchar primary key, time timestamp
default now() );
1. set hash_value [hash_procedure [join $field_1 $field_2 ... $field_n
$other_data]]
2. if {[catch { insert hash_value into hash_table} err] } { sorry }
3. insert fields into your_table

This method should work with multiple form processing pages, assuming
all use the same combination of fields to generate the hash value.
This is a general solution that also solves the problem of someone
needing to insert lots of similar data. They insert, backup and change a
field or two, and resubmit the form.
In the case where all data could be the same for multiple rows, you
might put a time limit on the insert of duplicate data, just to prevent
accidental inserts.

--Tom Jackson


Bas Scheffers wrote:


I thought that might be your reasoning, but expiring the page will achieve
the exact oposite of that! Backing up to an expired page will make IE
either ask if you want to resubmit your data ("a box with yes and no,
ehrm, let's click yes!") or worse, impicitely do it for you.

The best ways to prevent resubmitting is to see if it already has been
done by having some special ID on the page and in the database, which you
check against before inserting/updating/whatever and throw an error
yourself, or after the submit, do a redirect to another page. Downside of
that is that if the redirect doesn't load for whaterver reason, the user
may use back and click submit on the form again. So maybe a combination of
the two is the safest way to go!

Bas.

oetjoen said:



Actually I want to prevent someone would be resubmitted the same data
more than once by using back button on internet browser. so I think its
better idea if I using the previous page has been expired.
Or anyone could give me any idea.






I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/








I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/



Re: [AOLSERVER] Virtual Hosting by Name not IP.

2003-02-21 Thread Lamar Owen
On Friday 21 February 2003 11:59, Jeremy Cowgar wrote:
> I tried the 4.0 because I am just now setting up a site running AOL Server,
> but I could not get the nspostgresql to compile with the 4.0 codebase. Is
> their some trick?

Get the 4.0beta1 nspostgres I released last week.  You also have to make sure
to load nsdb.so separately.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/



Re: [AOLSERVER] Virtual Hosting by Name not IP.

2003-02-21 Thread Jeremy Cowgar
On Fri, Feb 21, 2003 at 04:47:49PM -, Tim Moss wrote:
> You can do this with AOLserver v4 as it comes (out of the box) - look in the
> list archive for the example config file I sent a couple of days ago, which
> has an example of this.
>
> If you are using v3.x then there are various C, Tcl or C/Tcl add-on modules
> that will let you do this.
> Which is best I don't know - can anyone else help?
>

I tried the 4.0 because I am just now setting up a site running AOL Server,
but I could not get the nspostgresql to compile with the 4.0 codebase. Is
their some trick?

--
Jeremy Cowgar
[EMAIL PROTECTED]
http://cowgar.com



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/



Re: [AOLSERVER] Virtual Hosting by Name not IP.

2003-02-21 Thread Tim Moss
You can do this with AOLserver v4 as it comes (out of the box) - look in the
list archive for the example config file I sent a couple of days ago, which
has an example of this.

If you are using v3.x then there are various C, Tcl or C/Tcl add-on modules
that will let you do this.
Which is best I don't know - can anyone else help?



> -Original Message-
> From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf
> Of Jeremy Cowgar
> Sent: Friday, February 21, 2003 4:48 PM
> To: [EMAIL PROTECTED]
> Subject: [AOLSERVER] Virtual Hosting by Name not IP.
>
>
> I have searched for information on this topic but so far I am
> unable to find
> it. Is it possible to setup virtual hosts based on name, not IP?
> If so, can
> you point me to some documentation or an example?
>
> Thanks!
>
>
> Jeremy
>
>
>
> I. To remove yourself from this list:
>
> Send a message to "[EMAIL PROTECTED]"  with the following text in
> the BODY of your message:
>
> signoff aolserver
>
> II. For a complete list of listserv options please visit:
>
> http://listserv.aol.com/
>
> III. For more AOLserver information please visit:
>
> http://www.aolserver.com/
>



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/



[AOLSERVER] Virtual Hosting by Name not IP.

2003-02-21 Thread Jeremy Cowgar
I have searched for information on this topic but so far I am unable to find
it. Is it possible to setup virtual hosts based on name, not IP? If so, can
you point me to some documentation or an example?

Thanks!


Jeremy



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/



Re: [AOLSERVER] set expires

2003-02-21 Thread Bas Scheffers
I thought that might be your reasoning, but expiring the page will achieve
the exact oposite of that! Backing up to an expired page will make IE
either ask if you want to resubmit your data ("a box with yes and no,
ehrm, let's click yes!") or worse, impicitely do it for you.

The best ways to prevent resubmitting is to see if it already has been
done by having some special ID on the page and in the database, which you
check against before inserting/updating/whatever and throw an error
yourself, or after the submit, do a redirect to another page. Downside of
that is that if the redirect doesn't load for whaterver reason, the user
may use back and click submit on the form again. So maybe a combination of
the two is the safest way to go!

Bas.

oetjoen said:
> Actually I want to prevent someone would be resubmitted the same data
> more than once by using back button on internet browser. so I think its
> better idea if I using the previous page has been expired.
> Or anyone could give me any idea.



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/