Re: Oxygen icons for Apache

2010-04-21 Thread Aron Szabo

Hi!

I would definetly like to see them in the official release.

Yours,
Aron Szabo
pointless.hu

On 04/21/2010 05:44 PM, Javier Llorente wrote:

Hello,

Apache's current icons are a bit out-of-date, so I've created a collection of
icons for Apache; it has oxygen+crystal+custom icons, a config file and a
README.

Perhaps it could be included in Apache, so that sys admins have another option
:-)

You can see it live at http://www.javierllorente.com/tmp/
The package apache2-icons-oxygen is already part of the openSUSE Apache
subproject

rpm and src.rpm packages for CentOS, Fedora, RHEL, SLE and openSUSE can be
found at
http://download.opensuse.org/repositories/Apache/

The source files are located on the Build Service:
https://build.opensuse.org/package/show?package=apache2-icons-
oxygenproject=Apache

Comments and suggestions are welcome!

Greetings,




Re: Apache2 Shared Memory problem

2007-02-12 Thread Aron Szabo

Hello!

static int module_translate_name(request_rec * r) {
module_config *s_cfg = ap_get_module_config(r-server-module_config,
fp_module);
apr_datum_t db_domain_t;
apr_datum_t db_path_t;


apr_dbm_open_ex(s_cfg-file,DB,/tmp/vhosts.db,APR_DBM_RWCREATE,666,r-pool);

db_domain_t.dptr = r-hostname;
db_domain_t.dsize = strlen(r-hostname);
apr_dbm_fetch(s_cfg-file, db_domain_t,db_path_t);


ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, r-server, DB! %s PID:
%ld,db_path_t.dptr,(long int)getpid());

if(db_path_t.dptr) {
r-filename = apr_pstrcat(r-pool, db_path_t.dptr, r-uri, 
NULL);
} else {
apr_dbm_close(s_cfg-file);
return DECLINED;
}
  apr_dbm_close(s_cfg-file);
return OK;
}

Now my problem is that opening the berkeley db file fails when i want
to translate this.

If i open the database per child then it works ok but if i have a
structure like this:

www.1234.com = /var/www

if i access the url after apache restart it works the child fetches
the data from the database. But if i change the database with an
external program than the child does not fetch the data from the
database again and uses the old data.

is there a way to do this ?

Yours,
Aron


On 2/11/07, Nick Kew [EMAIL PROTECTED] wrote:

On Sun, 11 Feb 2007 15:23:52 +
Nick Kew [EMAIL PROTECTED] wrote:

 On Sun, 11 Feb 2007 15:51:37 +0100
 Michael Wallner [EMAIL PROTECTED] wrote:

  Looking at apr/memory/unix/apr_pools.c, APRs allocator is anything
  but a generic infrastructure for implementing my own allocator.

 If it was, then I daresay memory pools

... should've read shared memory pools, of course!


--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/



Apache2 Shared Memory problem

2007-02-11 Thread Aron Szabo

Hello!

I`m wrtiting a vhost module for apache2.
I need an array or a hash or an apache table to be WRITABLE/READABLE
from every apache child.
This vhost module is a modified version of vhost-mysql . But I dont
want to do an sql query on every request so i want to cache it after
the request in an apache table (vhost; path) or a hash or something.

Any help is appreciated!

Thanks!

Yours,
Aron


Re: Apache2 Shared Memory problem

2007-02-11 Thread Aron Szabo

Hmm ... yes the shm way is too complicated for me :/
I will use apr_dbm (which you already mentioned)

(10:35:51 AM) niq: use apr_dbm or apr_memcache

Thanks again!

Yours,
Aron


On 2/11/07, Nick Kew [EMAIL PROTECTED] wrote:

On Sun, 11 Feb 2007 13:46:11 +0100
Aron Szabo [EMAIL PROTECTED] wrote:

 Hello!

 I`m wrtiting a vhost module for apache2.

This should really be on the modules list.

 I need an array or a hash or an apache table to be WRITABLE/READABLE
 from every apache child.
 This vhost module is a modified version of vhost-mysql . But I dont
 want to do an sql query on every request so i want to cache it after
 the request in an apache table (vhost; path) or a hash or something.

From that description (which you didn't give on IRC), you're probably
better off forgetting about shared memory, and using a per-process
cache (with any permanent changes going to the database, of course).

From what you said on IRC, you've already tried apr_shm.
That's no use for pointers when dereferencing them takes you
out of shared memory.  You could add apr_rmm to give you
pointers, but that still doesn't give you the higher-level
structs (like array or hash).  For that you'd need a shared
memory pool, which you might get by implementing a new
apr_allocator on top of apr_shm/apr_rmm.

If that was an attractive option, I expect someone would have
done it already.  I already mentioned the easier alternatives
on IRC.


--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/