Devam Ediyor

Apache 1.3 Module - mod_vhostlock


We are a hosting company wanting to implement a custom webhosting system. We currently require an Apache 1.3 Module which will be named mod_vhostlock. Currently, we would like the module to do the following scenario:

* Upon request to a VirtualHost, Apache will attempt to stat a file. If the file exists, Apache will deny access to the VirtualHost and any files under it and generate an error code 507. This error code is not a standard error code and will be our custom error code.

The module must have the following directives:

* VirtualHostLockDir: Specifies where to look for the lock files.

* VirtualHostLockFile: Specifies the filename to look for.

In an attempt to provide a clearer example, try the following scenario. Assume the following block exists in [url removed, login to view]:

VirtualHostLockDir /usr/local/apache/vhostlocks

&VirtualHost [url removed, login to view]:80<

DocumentRoot /home/user/public_html

ServerName [url removed, login to view]

ServerAlias [url removed, login to view]

VirtualHostLockFile [url removed, login to view]


In the example above, when a user accesses [url removed, login to view] or any file under [url removed, login to view] or [url removed, login to view], Apache must check whether /usr/local/apache/vhostlocks/[url removed, login to view] exists or not.

If /usr/local/apache/vhostlocks/[url removed, login to view] exists, then Apache returns a 507 error (the custom error code) and deny any access.

If /usr/local/apache/vhostlocks/[url removed, login to view] does NOT exist, Apache will allow access as it would regularly.

Please note that this module must work with Apache 1.3 only. I do NOT need it to work with Apache 2 or Apache 2.1 (dev).

For a programmer who is familiar with Apache internals, this should be a relatively easy project. Please let us know should you have any questions prior to bidding, or comments / input on this project, and feel free to include any previous work you would liike us to know about.

Beceriler: C Programlama, Linux

Daha fazlasını görün: would 1, stat c, standard programmer, free coders, c stat, block company, try, local free, code block project, file system implement, custom block, clearer, implement file system, project module, named, attempt, wanting, free check, generate code access, know following, please note, filename, please block, upon, apache linux

İşveren Hakkında:
( 0 değerlendirme ) Pittsburgh, United States

Proje NO: #4815