What is "Wishes" and what are they for?
Apache HTTP Server
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP ServerGo to page: « previous | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | next »

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Wednesday, 24 January 2007
Turning Off Access Log Arthur Kreitman 22:00:04
 I don't see an option to stop logging http requests. Is there one?

comment 4 answer | Add comment
Using multiple virtual hosts with SSL on a single IP system Bijan Vakili 20:53:40
 Hi,



I have a Solaris 10 system running Apache 2.0.52. I'd like to know how
to have multiple virtual host names map to the same name while each
supports its own SSL certificate and key file.



The current setup is as follows:



...

NameVirtualHost *:443

...

# Host #1

<VirtualHost *:443>

ServerName host1.domain.com

SSLCertificateFile /etc/apache2/ssl/ho­st1.domain.com.crt

SSLCertificateKeyFi­le /etc/apache2/ssl/ho­st1.domain.com.key

...

</VirtualHost>



# Host #2

<VirtualHost *:443>

ServerName host2.domain.com

SSLCertificateFile /etc/apache2/ssl/ho­st2.domain.com.crt

SSLCertificateKeyFi­le /etc/apache2/ssl/ho­st2.domain.com.key

...

</VirtualHost>



The first certificate works for "host1". However, "host2" is still
using the SSL certificate for "host1". It seems as if the subsequent
SSLCertificateXXX directives are being ignored.



Can anyone tell me what I'm doing wrong?





Thanks in advance,



Bijan Vakili

Senior Software Developer



Cryptologic Inc.

55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
Phone 416.545-1455 Ext 5892
E-Mail: bijan.vakili@crypto­logic.com
<mailto:bijan.vakil­i@cryptologic.com>

SKYPE: bijanvakili

This message, including any attachments, is confidential and/or
privileged and contains information intended only for the person(s)
named above. Any other distribution, copying or disclosure is strictly
prohibited. If you are not the intended recipient or have received this
message in error, please notify us immediately by reply email and
permanently delete the original transmission from all of your systems
and hard drives, including any attachments, without making a copy.



comment 3 answer | Add comment
Massive number of users and authentication Nestor Burma 19:21:34
 Hello,

I'm working on a web (and, obviously, Apache)-based
app that will manage tens of thousands of users. Each
user will have his own "private" URL space (which
content will be application-defined­ and
application-managed­).

We want to password-protect those URLs/directories so
that only the "owner" will get access to them. We
would also very much like it to be through Apache
authentication schemes, and not a logon-like script.

For small numbers of users, we could play with
.htaccess in the associated private directories, and
some DBM or database to store the users credentials.
But would this scale for tens of thousands of users ?
Is there some better solution than to manage one
.htaccess file per private directory ?

Tia,

Nb.






___________________­____________________­____________________­________________
D couvrez une nouvelle fa on d'obtenir des r ponses toutes vos questions !
Profitez des connaissances, des opinions et des exp riences des internautes sur Yahoo! Questions/R ponses
http://fr.answers.y­ahoo.com

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 2 answer | Add comment
Terms for bucket types Graham Leggett 18:40:10
 Hi all,

APR contains support for buckets represented by physical memory (HEAP and
IMMORTAL), as well as "virtual" buckets that consume virtually no memory
themselves, but that represent possibly large blocks of data (FILE).

Is there a term used within APR to categorize buckets of these two types?

Would "physical" buckets and "virtual" buckets make sense?

Regards,
Graham
--



comment 1 answer | Add comment
[BUG?] apr_proc_other_chil­d_refresh passes wrong status flavor to maintenance function Jeff Trawick 17:44:22
 In this code, a Unix-style signum|exitcode|bit­s is passed to the
maintenance function from within apr_proc_other_chil­d_refresh().

waitret = waitpid(ocr->proc->­pid, &status, WNOHANG);
if (waitret == ocr->proc->pid) {
ocr->proc = NULL;
(*ocr->maintenance)­ (APR_OC_REASON_DEAT­H, ocr->data, status);
}

But for other calls to the maintenance function with
APR_OC_REASON_DEATH­ we expect that a signum_or_exitcode is passed to
the maintenance function (API breakage mentioned separately via
http://svn.apache.o­rg/viewvc?view=rev&r­evision=499417). It doesn't
make sense to pass a Unix-style status here.

Thoughts?

Add comment
[PATCH] document when other-child maintenance function can look at status Jeff Trawick 17:38:55
 Index: include/apr_thread_­proc.h
===================­====================­====================­========
--- include/apr_thread_­proc.h (revision 499409)
+++ include/apr_thread_­proc.h (working copy)
@@ -675,6 +675,8 @@
* and should be replaced in the APR 1.0 API with a bitflag of which
* proc->in/out/err handles should be health checked.
* @bug no platform currently tests the pipes health.
+ * @remark The maintenance function should ignore status unless reason
+ * is APR_OC_REASON_DEATH­.
*/
APR_DECLARE(void) apr_proc_other_chil­d_register(apr_proc_­t *proc,
void (*maintenance) (int reason,

Add comment
SSIs will include error page even if status code != 200 Christoph Kiehl 17:37:07
 Hi,

I mounted a tomcat with mod_jk to /foo and I include a jsp in a static html page
like this:

<!--#include virtual="/foo/bar.j­sp" -->

Everything works quite fine, as long as the status code returned for
"/foo/bar.jsp" is 200. If it is something else like 404 or 503 I would expect
"[an error occured while pro....]" or whatever I configured the printed error
msg to be. But instead the error page sent by tomcat is included. The logfile
says the following:

[..]
unable to include "/foo/bar.jsp" in parsed file /index.html
[..]

If I try to include a nonexistent page which is served directly by the httpd
like "/bar/foo.html", which returns a 404, everything works as expected.

Is there anything I can about that?

BR,
Christoph


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Apache-Jboss Connector - file was not found Alessandro Ilardo 16:40:19
 I'm trying to set up an AJP connector between Apache 2 (red hat) and
Jboss 3.2 (windows server)

<VirtualHost *:80>
ServerName server1.domain.com
DocumentRoot "/var/www/html"
JkMount /id/admin/* jboss322
</VirtualHost>


worker.list=tomcat5­59,jboss322
worker.tomcat559.ma­intain=60
worker.tomcat559.ty­pe=ajp13
worker.tomcat559.po­rt=8009
worker.tomcat559.ho­st=server2.domain.co­m
worker.jboss322.mai­ntain=60
worker.jboss322.typ­e=ajp13
worker.jboss322.por­t=8009
worker.jboss322.hos­t=server3.domain.com­

If I call the following url
http://server1.doma­in.com/id/admin/
The web application running on Jboss correctly asks me for a user
identification. Once I enter the user name and password a file not found
back to me.

Error. The file was not found. (filename =
/etc/httpd/htdocs/i­m/admin/index.jsp)

On Jboss I get the following message
[Channel Socket] Connection timeout reached


Is that error related to the session?
Thanks in advance

Regards
Alessandro Ilardo




-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 4 answer | Add comment
RE: first email to this list - WAP and apache Boyle Owen 13:18:07
 

-----Original Message-----> From: cyberarian [mailto:cyberarian@gmail.com] > Sent: Wednesday, January 24, 2007 8:43 AM> To: users@httpd.apache.­org> Subject: Re: [users@httpd] first email to this list>
Thanks for prompt response. My HTML files are running quite > fine in my browser by visiting http://localhost> what to do next?

You just put a WAP file (ie, page.wml) in the server (eg,
http://server/page.­wml) then hit that URL from the phone.

I get the feeling you're not really sure about how WAP works... It's
really just the same as normal HTTP - the only difference is that the
content is in a different mark-up language (eg, WML or HDML instead of
HTML). The other big difference is that the phone doesn't connect
directly to the server, rather, it sends a request to an HTTP gateway
computer in the base station and it is the gateway that makes the
request (via the internet) to the server. So the phone -> gateway link
is over GPRS/UTMS/EDGE or whatever and the gateway -> server link is
over Plain Old HTTP.

If all you've got is an apache server on localhost then it obviosuly
won't work - your server needs to be accessible on the public internet,
with a registered domain name and public IP and everything.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.
cyberarian>
On 1/24/07, Boyle Owen <Owen.Boyle@swx.com­> wrote: >
-----Original Message-----> > From: cyberarian [mailto:cyberarian@gmail.com ]> > Sent: Wednesday, January 24, 2007 7:33 AM> > To: users@httpd.apache.­org> > Subject: [users@httpd] first email to this list> >
Hi all i m the new user of this list. can someone guide me > > how to use apache webserver for wap files. I have an> > index.wap file. How can i use it from my mobile using my> > apache web server?> >
The WAP file goes on the apache server. The mobile > phone is the client - > it fetches the file from the server and renders (ie, > displays) it.>
Forget about WAP for the minute - get apache running > with a plain HTML> file that you can see in a browser then start worrying > about WAP.>
Rgds,> Owen Boyle> Disclaimer: Any disclaimer attached to this message may > be ignored.>
This message is for the named person's use only. It may > contain confidential, proprietary or legally privileged > information. No confidentiality or privilege is waived or > lost by any mistransmission. If you receive this message in > error, please notify the sender urgently and then immediately > delete the message and any copies of it from your system. > Please also immediately destroy any hardcopies of the > message. You must not, directly or indirectly, use, disclose, > distribute, print, or copy any part of this message if you > are not the intended recipient. The sender's company reserves > the right to monitor all e-mail communications through their > networks. Any views expressed in this message are those of > the individual sender, except where the message states > otherwise and the sender is authorised to state them to be > the views of the sender's company. >
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache > HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html > for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: > users-digest-unsubs­cribe@httpd.apache.o­rg > <mailto:users-diges­t-unsubscribe@httpd.­apache.org> > For additional commands, e-mail: users-help@httpd.ap­ache.org>

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 1 answer | Add comment
first email to this list Cyberarian 10:43:00
 Hi all i m the new user of this list. can someone guide me how to use
apache webserver for wap files. I have an index.wap file. How can i use it
from my mobile using my apache web server?
comment 2 answer | Add comment
php installation problem Diye Wariebi 03:50:02
 Can anyone point me in the right direction

I have installed Apache-2.0.40 (RedHat rpm) and installed the binary
version of mysql 4.0.9-gamma. Using RedHat 8.0

When I try to install php 4.3.0 from source everything goes ok until I
type "make install" when I get the following error.

[root@srv1 php-4.3.0]# make install

Installing PHP CLI binary: /usr/local/bin/
Installing PHP SAPI module

/usr/lib/httpd/buil­d/instdso.sh
SH_LIBTOOL='/usr/li­b/httpd/build/libtoo­l' libphp4.la

/usr/lib/httpd/modu­les
sh: line 1: /usr/lib/httpd/buil­d/instdso.sh: No such file or directory

apxs:Error: Command failed with rc=8323072


I have search for the file instdso.sh and can't find it anywhere on my
server.

Where am I going wrong?


--
Diye Wariebi <diye@escapethenet.­co.uk>


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 10 answers | Add comment
Auth via SQL Nathan Kellogg 00:43:38
 Has anyone successfully setup user authentication using an SQL database?


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 7 answers | Add comment
Unable to bind to port 443 on 2.2.4 Abhay K 00:43:38
 I am trying to use same instance of Aapche to process
requests on port 80 (http) and port 443 (https).
I could not start apache built with mod_ssl and ran with trace
and found that the Apache process binds to port 443 successfully
but the child process fails stating that port is already in use.

I am not sure if it is due to my configuration. I edited virtual host
for 443
in conf/extra/httpd-ss­l.conf. Do I need to specify virtual host
entry in httpd.conf? Do I also need to specify Listen 443
in httpd.conf?



comment 2 answer | Add comment
Does apache check client certificate even if SSLVerifyClient is none? Deval Shah 00:43:38
 Hello,
I have a configuration in Apache file setup for SSL. I am not doing client
authentication as
SSLVerifyClient is commented ie.
#SSLVerifyClient none

It works fine for few people. When a client sends a certificate it does not
work. Our logs indicate this error:
SSL Library Error: 336151570 error:14094412:SSL
routines:SSL3_READ_­BYTES:sslv3 alert bad certificate Subject CN in
certificate not server name or identical to CA!?

Any idea what I should do to resolve this?

Thank you in advance
Deval



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 4 answer | Add comment
Tuesday, 23 January 2007
IP based http->https redirection Dragan Zubac 23:59:46
 Is it possible to redirect http->https traffic for all IP addresses
range,except for specific IP address range for which not to redirect
anything and behave normal (http->http,https->­https) ?

Sincerely

Dragan Zubac


___________________­____________________­____________________­___________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagel­abs.com/email
___________________­____________________­____________________­___________

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 1 answer | Add comment
Compile failure in apr/threadproc/unix­/thread.c David Jones 23:39:57
 I am hitting compile problems due to the interaction of Revision 65199 in
apr/threadproc/unix­/thread.c and
#define PTHREAD_ATTR_SETDET­ACHSTATE_ARG2_ADDR.

Problem 1: Line int arg = DETACH_ARG(v); where v is undefined.

patch to use the defined value on instead of undefined v


svn diff apr/threadproc/unix­/thread.c
Index: apr/threadproc/unix­/thread.c
===================­====================­====================­========
--- apr/threadproc/unix­/thread.c (revision 494820)
+++ apr/threadproc/unix­/thread.c (working copy)
@@ -65,7 +65,7 @@
{
apr_status_t stat;
#ifdef PTHREAD_ATTR_SETDET­ACHSTATE_ARG2_ADDR
- int arg = DETACH_ARG(v);
+ int arg = DETACH_ARG(on);

if ((stat = pthread_attr_setdet­achstate(&attr->attr­, &arg)) == 0) {
#else
===================­====================­====================­=========



Revision info for reference:
===================­====================­====================­====================­=
Revision 65199 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 14 22:24:56 2004 UTC (2 years, 6 months ago) by jorton
File length: 7792 byte(s)
Diff to previous 65195 (colored)

* threadproc/unix/thr­ead.c (apr_threadattr_det­ach_set): Fix for Mac OS
X: pass valid arguments to pthread_attr_setdet­achstate.

* include/apr_thread_­proc.h: Clarify apr_threadattr_deta­ch_{set,get}
interfaces.

PR: 28472
Submitted by: INOUE Seiichiro <inoue ariel-networks.com


--- apr/apr/trunk/threa­dproc/unix/thread.c 2004/06/14 15:08:43 65195
+++ apr/apr/trunk/threa­dproc/unix/thread.c 2004/06/14 22:24:56 65199
@@ -57,18 +57,20 @@
return stat;
}

+#define DETACH_ARG(v) ((v) ? PTHREAD_CREATE_DETA­CHED :
PTHREAD_CREATE_JOIN­ABLE)
+
APR_DECLARE(apr_sta­tus_t) apr_threadattr_deta­ch_set(apr_threadatt­r_t *attr,
apr_int32_t on)
{
apr_status_t stat;
#ifdef PTHREAD_ATTR_SETDET­ACHSTATE_ARG2_ADDR
- int arg = on;
+ int arg = DETACH_ARG(v);

if ((stat = pthread_attr_setdet­achstate(&attr->attr­, &arg)) == 0) {
#else
- if ((stat = pthread_attr_setdet­achstate(&attr->attr­, on)) == 0) {
+ if ((stat = pthread_attr_setdet­achstate(&attr->attr­,
+ DETACH_ARG(on))) == 0) {
#endif
-
return APR_SUCCESS;
}
else {
===================­====================­====================­====================­=======

Problem 2:
Constants PTHREAD_CREATE_DETA­CHED and PTHREAD_CREATE_JOIN­ABLE are undefined
in zOS, so I get undefines from:

#define DETACH_ARG(v) ((v) ? PTHREAD_CREATE_DETA­CHED :
PTHREAD_CREATE_JOIN­ABLE)


So add something like this to apr/include/apr_thr­ead_proc.c?:




Index: apr/include/apr_thr­ead_proc.h
===================­====================­====================­========
--- apr/include/apr_thr­ead_proc.h (revision 494820)
+++ apr/include/apr_thr­ead_proc.h (working copy)
@@ -212,6 +212,13 @@
*/
APR_DECLARE(apr_sta­tus_t) apr_threadattr_deta­ch_set(apr_threadatt­r_t *attr,
apr_int32_t on);
+#ifndef PTHREAD_CREATE_JOIN­ABLE
+#define PTHREAD_CREATE_JOIN­ABLE 0
+#endif
+
+#ifndef PTHREAD_CREATE_DETA­CHED
+#define PTHREAD_CREATE_DETA­CHED 1
+#endif

/**
* Get the detach state for this threadattr.


--
David Jones
oscaremma@gmail.com­
comment 2 answer | Add comment
mounted file system for DocumentRoot Jim Austin 22:21:51
 Hello,
Sorry if I have overlooked the answer in the archives but:
I've tried to use a mounted file system for my DocumentRoot to no avail.
Is there a way to do this?
Thanks for any feedback!


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org





-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 2 answer | Add comment
Multiple worker pools? Greg Cox 20:19:33
 Hi,

I've got a cluster of 3 machines running Apache 2.0.52 (hello,
stuck-on-RHEL4!) as a front-end to 2 Weblogic apps. One app (A) runs fine
all the time; one app (B) will hold open weblogic connections to an outside
vendor when said vendor explodes. When B blocks, it starts sucking up spare
worker threads on apache (since it's proxying to weblogic) until there
aren't any left, and both A and B become unreachable from the web for even
calls to server-status.

A and B have separate names and are IP-differentiated (not name-based)
VirtualHosts. Is there a way to make one Apache daemon handle separate
thread pools for the separate virtualhosts and their proxies? I'd rather
not set up separate daemons, since the people who would administer it could
easily get confused over the maintenance upgrades down the line, but I'm
coming up blank.

Any suggestions welcomed. Thanks!

___________________­____________________­____________________­______
Valentine s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping
http://shopping.msn­.com/content/shp/?ct­Id=8323,ptnrid=37,pt­nrdata=24095&tcode=w­lmtagline


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 1 answer | Add comment
Multicast + poll with APR Laurent Pointal 19:41:45
 [ this is more an APR usage question, thanks to redirect me to another
more appropriate list if any ]


Platform: Windows (XP SP2), MS Visual C++ 2003 7.1.3088


I'm trying to setup multicast reception with polling sockets.

Q? Is this possible: multicast + DGRAM (UDP) + polling ?


If no, what would be the better way to process (I tried to avoid having
N threads suspended each on its own socket... and to avoid having active
wait with a loop testing N sockets with immediate return for each) ?


If yes, here is my current usage and problem with APR and polling:

apr_pool_create
apr_pcalloc
=> create a memory pool associated to the socket
for my management, allocate memory in the
pool
apr_parse_addr_port­
=> resolve DNS things if any
apr_sockaddr_info_g­et
=> fill'in apr_sockaddr_t structure from address string
(using family APR_UNSPEC and flags APR_IPV4_ADDR_OK)
apr_socket_create
=> make the socket
(using type SOCK_DGRAM and protocol APR_PROTO_UDP
and same sock_addr family as sockaddr_info)
apr_socket_opt_set
=> set socket blocking (APR_SO_NONBLOCK, 0) [see note 1]
apr_socket_timeout_­set
=> set infinite timeout (-1) [see note 1]
apr_socket_opt_set
=> allow address reuse (APR_SO_REUSEADDR, 1)
apr_socket_bind
=> bind socket to sock_addr

*** I have a failure here, using address 239.192.10.10:12345­ ***
*** Error APR 730049 ***
*** [in english ~= requested address is not valid in its context] ***
*** I tried blocking/non-blocki­ng socket options, same result ***

For multicast, I have the following operations:
apr_mcast_hops
=> setup mcast routing zone
apr_mcast_loopback
=> allow loopback on mcast
apr_mcast_join
=> join mcast group

apr_pollset_add
=> add socket to poll for APR_POLLIN


The listing is at the end of this email (note 2).


Thanks for any help/idea.

L.Pointal.




[note 1] I read for portable blocking in
http://dev.ariel-ne­tworks.com/apr/apr-t­utorial/html/apr-tut­orial-13.html#ss13.4­

[note 2] Partial source (I removed status tests and logs generation for
readability):

...................­........;

/** A specific socket management structure. */
struct _bvnet_socket_manag­ement_t
{
/** Internal check code.
_BVNET_INTERNAL_MAG­IC
*/
u_long internal_magic ;
/** Memory pool for this socket related operations. */
apr_pool_t* mempool ;
/** Host and port used to bind socket. */
char* hostnameport ;
/** Multicast use on this socket. */
int ttlmcast ;
/** Address for binding. */
char* addr ;
/** Port for binding. */
apr_port_t port ;
/** Socket address binding informations. */
apr_sockaddr_t* sock_addr ;
/** Socket reference. */
apr_socket_t* sock ;
/** Socket poll file descriptor. */
apr_pollfd_t pfd ;
} ;
typedef struct _bvnet_socket_manag­ement_t _bvnet_socket_manag­ement_t ;


/** The global application listening structure.
*/
struct _bvnet_listening_t
{
/** Memory pool for listening structures. */
apr_pool_t* mempool ;
/** Socket management to use when listener work in a separate
thread. */
_bvnet_socket_manag­ement_t* listener_ctrl_sm ;
/** Currently receiving messages.
This is a hash on message identifier giving message reception
structures.
*/
apr_hash_t* running_messages_ha­sh ;
/** Messages which have been completly received.
Here we just keep a time stamp for each received message.
From time to time, a function must process this map and remove all
entries where time stamps
*/
apr_hash_t* received_messages_h­ash ;
/** Pool of sockets to listen to. */
apr_pollset_t* listening_sockets_p­oll ;
/** Descriptors for these sockets. */
apr_pollfd_t* sockets_table ;
/** Number of descriptors. */
int sockets_table_count­ ;
} ;

typedef struct _bvnet_listening_t _bvnet_listening_t ;

/** Data for all listenings.
*/
_bvnet_listening_t my_listenings ;


................


//=================­====================­====================­================
apr_status_t
_bvnet_make_listen_­to(const char* hostnameport, int makewritable, int
ttlmcast, _bvnet_socket_manag­ement_t** return_sm)
{
apr_status_t status ;
apr_pool_t* mempool = NULL ;
_bvnet_socket_manag­ement_t* sm = NULL ;
char* scope_id ;

*return_sm = NULL ;

// Make a poll for the socket.
status = apr_pool_create(&me­mpool,my_listenings.­mempool) ;

// Allocate room in the poll for socket management (set it to zeroes).
sm = apr_pcalloc(mempool­,sizeof(_bvnet_socke­t_management_t)) ;
sm->internal_magic = _BVNET_INTERNAL_MAG­IC ;
sm->ttlmcast = ttlmcast ;
sm->mempool = mempool ;

// We keep a copy of original hostname and port - may be nice for logs.
sm->hostnameport = apr_pstrdup (sm->mempool,hostna­meport) ;

// Extract port from hosname and port.
status = apr_parse_addr_port­ (
&sm->addr, // char ** addr,
&scope_id, // char ** scope_id,
&sm->port, // apr_port_t * port,
sm->hostnameport, // const char * str,
sm->mempool// apr_pool_t * p
) ;


// Create socket address to bind to.
status = apr_sockaddr_info_g­et(
&sm->sock_addr, //apr_sockaddr_t ** sa,
sm->addr, //const char * hostname,
// family: Let the system decide which address family to use,
//in place of APR_INET[6].
APR_UNSPEC, //apr_int32_t family,
sm->port, //apr_port_t port,
// flags: Use IPV4 if available, and fallback to IPV6
// only if cant find IPV4.
APR_IPV4_ADDR_OK, //apr_int32_t flags,
sm->mempool // apr_pool_t * p
) ;

// Create socket.
status = apr_socket_create(
&sm->sock, //apr_socket_t ** new_sock,
sm->sock_addr->fami­ly, //int family,
SOCK_DGRAM, //int type,
APR_PROTO_UDP, //int protocol,
sm->mempool //apr_pool_t * cont
) ;

// Set socket options.
// !!! See portability issue in INOUE Seiichiro tutorial !!!
// !!! (section 13.4 - real network programming) !!!
// !!! Options selected to have indefinitely blocking. !!!
// !!! => modified to become non-blocking (blocking commented out)
status = apr_socket_opt_set(­sm->sock,APR_SO_NONB­LOCK, 0) ; // blocking

apr_socket_timeout_­set(sm->sock, -1) ; // blocking forever

apr_socket_opt_set(­sm->sock,APR_SO_REUS­EADDR, 1) ; // can reuse address

// Now, can bind socket to address, and set it listening.
status = apr_socket_bind(sm-­>sock, sm->sock_addr) ;

// Not found many documentation about APR and its multicast functions
// (there is the ref doc, but no more general guidelines and example
// like in Inoue tutorial).
if (sm->ttlmcast != BVNET_TTL_NO_MCAST)­
{
// Set maximum TTL - this set the maximum zone that
// multicast packets
// can reach (host, service, enterprise...).
status = apr_mcast_hops(sm->­sock, //apr_socket_t * sock,
sm->ttlmcast //apr_byte_t ttl
) ;

// ? Is the loopback notion only process relative or complete
// host relative.
// Because we may want no loopback on different parts of
// same process (considering better alternatives), but want
// loopback between different
// process on the same host.
// In doubt, set it to true (want loopback). At least, this is an
// existing solution for in-process communications.
status = apr_mcast_loopback(­
sm->sock, //apr_socket_t * sock,
1 //apr_byte_t opt
) ;

// Join the multicast group to listen on it.
status = apr_mcast_join(
sm->sock, // apr_socket_t * sock,
sm->sock_addr, // apr_sockaddr_t * join,
NULL, // apr_sockaddr_t * iface,
NULL // apr_sockaddr_t * source
) ;
}

// Install the socket in the poll.
sm->pfd.p = sm->mempool ; //apr_pool_t * p
sm->pfd.desc_type = APR_POLL_SOCKET ; //apr_datatype_e desc_type
sm->pfd.reqevents = APR_POLLIN ; //apr_int16_t reqevents
sm->pfd.rtnevents = 0 ; //apr_int16_t rtnevents
sm->pfd.desc.s = sm->sock ; //apr_descriptor desc
sm->pfd.client_data­ = sm ; //void * client_data

status = apr_pollset_add(my_­listenings.listening­_sockets_poll,&sm->p­fd) ;

*return_sm = sm ;
return APR_SUCCESS ;
}







--
Laurent POINTAL
CNRS-LIMSI d pt. CHM, groupes AMI et PS
Courriel: laurent.pointal@lim­si.fr (prof)
laurent.pointal@lap­oste.net (perso)
Ouebe: http://www.limsi.fr­/Individu/pointal/
T l. 01 69 85 81 06 (prof)
Fax. 01 69 85 80 88



comment 1 answer | Add comment
Installation Problems Martyn Longhurst 15:40:06
 Hi,

I'm trying to install Apache 2.0.43 on a Solaris 8 platform. So far
it's not going too well. The logs say the installation went off
without a hitch, but the server won't start thereafter. I keep getting
a libsendfile.so.1 not found error. Can anyone help?

Regards,
Martyn Longhurst


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 29 answers | Add comment
Performance on mod_proxy? Qingshan Xie 09:46:41
 Hi,

I am not sure how good Apache mod_proxy on its
Load-Balance and Failover, in regarding its
Performance, Capacity Limit, Security, etc? Can
someone help me?

Thx, Q.Xie



___________________­____________________­____________________­____________________­_____
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.­com/unlimited

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 6 answers | Add comment
mod_proxy Michael Barinek 09:34:26
 I receive a 403 Access forbidden error when using mod_proxy.c and Apache
2.0.43

Any suggestions?

Here is my httpd.conf...

<IfModule mod_proxy.c>
ProxyRequests On

<Proxy *>
Order deny,allow
Deny from all
Allow from localhost
</Proxy>

ProxyPass /examples/jsp/ http://localhost:88­88/examples/jsp/
ProxyPassReverse /examples/jsp/ http://localhost:88­88/examples/jsp/

ProxyPass /MSPetShop/ http://localhost:88­89/MSPetShop/
ProxyPassReverse /MSPetShop/ http://localhost:88­89/MSPetShop/

ProxyVia On

</IfModule>

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 24 answer | Add comment
Apache gives SSL Library error complaining about common name - Help Deval Shah 05:34:10
 Hello,
I have posted this question earlier but got no response. I am stating it
again. Please help with some ideas.
I have a certificate installed for my domain from Thawte. Now if anyone
tries to access the webpage using a browser it works perfect.
One of our clients has a proxy server. When they access to our website using
their proxy they cannot access it. They get 500 Internal Server Error. Our
logs indicates the following error:

[debug] ssl_engine_kernel.c­(1762): OpenSSL: Read: SSLv3 read client
certificate A
[debug] ssl_engine_kernel.c­(1781): OpenSSL: Exit: failed in SSLv3 read
client certificate A
SSL library error 1 in handshake (server abc.com:443)
SSL Library Error: 336151570 error:14094412:SSL
routines:SSL3_READ_­BYTES:sslv3 alert bad certificate Subject CN in
certificate not server name or identical to CA!?
Connection closed to child 1 with abortive shutdown (server abc.com:443)

Now according to them they are doing everything perfect as they can access
another of our SSL server perfectly well. What am I missing - I am sure our
SSL certificate is valid as browser does not give any error.
I am not using Client certificate authentication as I have SSLVerifyClient
none

Any help is appreciated.

Thanks
Deval



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 3 answer | Add comment
Apache gives alert bad certificate error Deval Shah 04:25:31
 Hello,
I have posted this question earlier but got no response. I am stating it
again. Please help with some ideas.
I have a certificate installed for my domain from Thawte. Now if anyone
tries to access the webpage using a browser it works perfect.
One of our clients has a proxy server. When they access to our website using
their proxy they cannot access it. They get 500 Internal Server Error. Our
logs indicates the following error:

[debug] ssl_engine_kernel.c­(1762): OpenSSL: Read: SSLv3 read client
certificate A
[debug] ssl_engine_kernel.c­(1781): OpenSSL: Exit: failed in SSLv3 read
client certificate A
SSL library error 1 in handshake (server abc.com:443)
SSL Library Error: 336151570 error:14094412:SSL
routines:SSL3_READ_­BYTES:sslv3 alert bad certificate Subject CN in
certificate not server name or identical to CA!?
Connection closed to child 1 with abortive shutdown (server abc.com:443)

Now according to them they are doing everything perfect as they can access
another of our SSL server perfectly well. What am I missing - I am sure our
SSL certificate is valid as browser does not give any error.
I am not using Client certificate authentication as I have SSLVerifyClient
none

Any help is appreciated.

Thanks
Deval



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
newbie Ken Brown 03:37:08
 is there a way of calling a prog from a url i.e. i want a program 2 execute
if someone selects a url www.site.com/url will start ma program

i tried

alias /foo /bar?param=1

to no avail



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


comment 43 answer | Add comment

Add new topic:

How:  Register )
 
Логин:   Пароль:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP ServerGo to page: « previous | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | next »

see also:
Google Co-op Feed Generator
Re: 30 Day Free Trial. Start Today And…
OT/ Scammers, don't you love them!
пройди тесты:
see also:
Xa-xa-xa!!!
http://zikhao.qaix.com/i/temp/87/16...
Nada nemnogo zapolnit dnev...

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .