[Info-vax] Apache... anyone built mod_limitipconn for VMS?

Mark Berryman mark at theberrymans.com
Fri Jan 15 17:33:25 EST 2010


VAXman- @SendSpamHere.ORG wrote:
> In article <c06482ea-71cd-4194-bcb1-986a355f614e at e27g2000yqd.googlegroups.com>, Mark  Round <mark.round at gmail.com> writes:
>>> Clients have normal access to the web site but downloads in the form of
>>> ZIP archives (and these are large ZIP archives) are limited to only one
>>> download per IP (eg. client).
>> Unless they happen to be behind a proxy, as is the case for many ISPs
>> or businesses. In which case, restricting access by IP could be
>> blocking a lot more than 1 person.
>>
>> Could mod_cband help in an alternative way ? It also features IP
>> limits like limitipconn, but also offers a bunch of other bandwidth-
>> related features, so you could have a downloads.domain.com vhost which
>> has these limits in place. No idea if it'll compile on VMS (did you
>> use APXS, by the way?) but may be worth a shot...
> 
> No, just compile and link as a shareable image with a linker option deck 
> with the following:
> 
> IDENTIFICATION="CSWS V2.1-1"            ! VMS port version
> BUILD_IDENT="HTTPD V2.0.52"             ! HTTP release build
> GSMATCH=LEQUAL,2,0                      ! major.minor ID: 2.0
> 
> APACHE$HTTPD_SHR/Shareable              ! HTTPD Shareable Library
> APACHE$APU_SHR/Shareable                ! APU Shareable Library
> APACHE$APR_SHR/Shareable                ! APR Shareable Library
> 
> SYMBOL_VECTOR=(LIMITIPCONN_MODULE=DATA)
> 
> 
>> See http://codee.pl/cband.html for more info...
>>
>>    * Lightweight bandwidth limiting module for Apache2
>>    * per-user bandwidth limiting
>>    * per-virtualhost bandwidth limiting
>>    * per-destination bandwidth limiting
>>    * Limiting:
>>          o Bandwidth total usage (bandwidth quota)
>>          o Maximal download speed (bandwidth throttling)
>>          o Maximal requests-per-second speed
>>          o Maximal simultanous IP connections
>>    * Support for virtualhosts
>>    * Support for defined users
>>    * Support for /cband-status handler
>>    * Support for /cband-status-me handler
> 
> OK.  I have downloaded the code.  The compile complains about 
> 
> #include <sys/shm.h>
> .^
> %CC-F-NOINCLFILEF, Cannot find file <sys/shm.h> specified in #include directive.
> at line number 55 in file APACHE$COMMON:[000000.BUILD.TMESIS_EXTENSIONS.mod_cband]mod_cband.c;1
> 
> I'll have to look into this.  Perhaps, it's available in the porting library.
> 

Looking for that in sys is a coding error.  It should be 
<X11/extensions/shm.h>.  You can then get the necessary library by 
linking against SYS$SHARE:DECW$XEXTLIBSHR.EXE.

Mark Berryman

--- news://freenews.netfront.net/ - complaints: news at netfront.net ---



More information about the Info-vax mailing list