[Info-vax] Apache... anyone built mod_limitipconn for VMS?
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Fri Jan 15 18:03:51 EST 2010
In article <00A97993.44FC570D at SendSpamHere.ORG>, VAXman- @SendSpamHere.ORG writes:
>In article <hiqqfm$1s27$1 at adenine.netfront.net>, Mark Berryman <mark at theberrymans.com> writes:
>>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
>
>Grassy-ass Mark.
>
>Is there any way to "educate" the C compiler to look there so that there's
>no need to modify the source? I'd like to some up with a procedure that's
>simple and only requires the source code.
D'oh! Nevermind... $ DEFINE SYS X11
However, it now complains about:
$ CC/NODEBUG/INCLUDE=APACHE$COMMON:[BUILD.apache.ALPHA-CSWS-V0201-1-ECO-2...] MOD_CBAND.C
#include <sys/sem.h>
.^
%CC-F-NOINCLFILEF, Cannot find file <sys/sem.h> specified in #include directive.
at line number 58 in file APACHE$COMMON:[BUILD.TMESIS_EXTENSIONS.mod_cband]mod_cband.c;1
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
http://www.quirkfactory.com/popart/asskey/eqn2.png
"Well my son, life is like a beanstalk, isn't it?"
More information about the Info-vax
mailing list