RE: [EMAIL PROTECTED] Upgrading Apache 2.0.59 from open mode to SSL mode under Redhat Linux
> -Original Message- > From: Ambarish Mitra [mailto:[EMAIL PROTECTED] > Sent: Friday, January 04, 2008 6:59 AM > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] Upgrading Apache 2.0.59 from open mode > to SSL mode under Redhat Linux > > Hi all, > > I have a working version of apache 2.0.59 in open mode under > Linux, and I > want to move it to SSL mode. Apparently, it was not compiled with SSL > support. > > When I do "apachectl -l", in the list of compiled in modules, > mod_ssl.c does > not come. > > My question is: For moving it from open mode to SSL mode, do I have to > uninstall the current working apache2 and re-install again > will SSL support? > Or, is there a way to just plugin the mod_ssl module into apache2? With apache 2, SSL support just involves compiling the mod_ssl module and then loading it (see http://httpd.apache.org/docs/2.0/mod/mod_so.html#loadmodule). You only need to compile the module - you don't need to recompile apache again. See http://httpd.apache.org/docs/2.0/dso.html - probably you need "usage summary", point 1. NB1: You *do* need to have the OpenSSL library installed. Get the latest version from http://www.openssl.org/, install it and then let apache find it by setting the SSL_BASE environment variable, eg: SSL_BASE=/path/to/openssl export SSL_BASE (in the shell you do the compilation). NB2: Once you get mod_ssl active, apache won't magically switch to "SSL mode" - you still need certificates, Listen 443, and to set up an SSL VH - see docs for details. > > I looked into the modssl.org site, and all information there are for > apache1.x, and not for apache 2.x. With apache 1.3, SSL support was provided as a third-party module (ie, external to apache.org). From apache 2 onwards, mod_ssl was brought into apache.org and is now available as an optional extension module (ie, it is in the apache distro). So, as you noticed, you don't need anything from modssl.org. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > > Any help/pointers will be helpful. > > My OS: Redhat Linux Advances Server 4. > > Thanks for your time. > > > > > > > DISCLAIMER > == > This e-mail may contain privileged and confidential > information which is the property of Persistent Systems Ltd. > It is intended only for the use of the individual or entity > to which it is addressed. If you are not the intended > recipient, you are not authorized to read, retain, copy, > print, distribute or use this message. If you have received > this communication in error, please notify the sender and > delete all copies of this message. Persistent Systems Ltd. > does not accept any liability for virus infected mails. > > - > The official User-To-User support forum of the Apache HTTP > Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. 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. The sender's company reserves the right to monitor all e-mail communications through their networks. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] bump: AUTHZ env variable?
On Fri, 04 Jan 2008 10:47:54 +0100 Pavel Stratil <[EMAIL PROTECTED]> wrote: > anyone please? thanks! Simple answer, you can't. Apache only looks up the group(s) required in a "Require group ..." directive. Longer answer: you could (a) hack mod_authz_groupfile[1] (b) Use a query-based authz (LDAP or DBD) (c) Write your own handler to look it up. [1] if I've got the name right. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Inserting HTML Code Using Apache Proxy
On Fri, 4 Jan 2008 01:13:49 -0500 <[EMAIL PROTECTED]> wrote: > Is there a way to do code insertion into the body of each retrieved > page? If so, can someone point me to the appropriate mod_ or doc > where I can learn more about it? http://apache.webthing.com/mod_publisher/macro.html -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] bump: AUTHZ env variable?
anyone please? thanks! --- Begin Message --- Hi, i'm using digest authentication with flatfile htpasswd and htgroup files. what i'd like would be to get to php the group(s) that the user is member of. I assume that this is stored in some envvar... which one? is it accessible from php? The only envvar that i found to have some meaningful values in php was $_SERVER['PHP_AUTH_DIGEST'] ... if not, is there a way to pass down this info somehow via mod-env? how? Thanks, Pavel - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- End Message --- - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Problem with apr_pool
I'm using Apache Axis2c with Apache httpd.I tried to send a big MTOM file with the Axis2c.But when use the MALLOC it normally calls the apr malloc.But when we use a big file this malloc fails.This cause because of apr_pool limitation.This is not a problem with Apache Axis2c but with httpd. I simply want to know how to change the APR pool size.Is there a limited amount of memory we can use for malloc using apr.If this is not clear i'll explain more.This is very important to me. Regs lahiru - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] mod_rewrite 'B' flag
Hi! On http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html, an option is described: == 'B' (escape backreferences) Apache has to unescape URLs before mapping them, so backreferences will be unescaped at the time they are applied. Using the B flag, non-alphanumeric characters in backreferences will be escaped. For example, consider the rule: RewriteRule ^(.*)$ index.php?show=$1 This will map /C++ to index.php?show=C++. But it will also map /C%2b%2b to index.php?show=C++, because the %2b has been unescaped. With the B flag, it will instead map to index.php?show=>/C%2b%2b. This escaping is particularly necessary in a proxy situation, when the backend may break if presented with an unescaped URL. == Before I upgrade, can someone confirm that this option will do what I expect it to do? Given a request for: "/Hello/One%2FTwo%2FThree/World/" with "AllowEncodedSlashes" turned on. 1.) Without the 'B' flag: "RewriteRule ^(.*)$ http://domain$1 [P]" proxies the request to: "http://domain/Hello/One/Two/Three/World/"; 2.) *With* the 'B' flag: RewriteRule ^(.*)$ http://domain$1 [P,B] will proxy the request to: "http://domain/Hello/One%2FTwo%2FThree/World/"; Is that correct, or have I misunderstood? Also, am I correct in thinking this option isn't included in the latest stable 2.2 release and will be released with 2.2.7? I only ask because I found it mentioned at http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/CHANGES?view=diff&r1=589614&r2=589615&pathrev=589615 If this *is* the case, why is it already mentioned in the online documentation? Regards, Mike - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] mode_rewrite hostnames and wikiwords
Hello apache experts:-) I am trying to rewrite a url which conatins a hostname, converting the hostname to a wikiword. What I have so far is: RewriteRule ^/doc/([a-z,A-Z]*.*)\.([a-z,A-Z]*.*)$ /doc/$1$2 [N] RewriteRule ^/doc/([A-Z]*.*)$ /twiki/bin/view/Main/$1 [PT] which takes a URL that looks like http://www.example.com/doc/hostname.example.com and runs it as http://www.example.com/doc/hostnameexamplecom which is close but I would really like to run it as http://www.example.com/doc/HostnameExampleCom Is this possible and if so, how is it done? Many thanks Phil - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mode_rewrite hostnames and wikiwords
Phil Wild wrote: Hello apache experts:-) I am trying to rewrite a url which conatins a hostname, converting the hostname to a wikiword. What I have so far is: RewriteRule ^/doc/([a-z,A-Z]*.*)\.([a-z,A-Z]*.*)$ /doc/$1$2 [N] RewriteRule ^/doc/([A-Z]*.*)$ /twiki/bin/view/Main/$1 [PT] which takes a URL that looks like http://www.example.com/doc/hostname.example.com and runs it as http://www.example.com/doc/hostnameexamplecom which is close but I would really like to run it as http://www.example.com/doc/HostnameExampleCom Is this possible and if so, how is it done? Something like this maybe? RewriteEngine On RewriteMapuppercase int:toupper RewriteRule ^/doc/((.*)\.)?([a-z])(.*)$ /doc/$2${uppercase:$3}$4 [N] RewriteRule ^/doc/(.*) /twiki/bin/view/Main/$1 [PT] Mike - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Way to source-control Web files?
Hi, We have a probblem, which i feel is probably seen in a lot of places elsewhere with multiple apache and tomcat installations. that is that, how does one manage the configuration/source-control the apache and tomcat config files, especially when the contents of the files are different on different servers? Does anyone have any ideas/inputs as to a standardised way of doing this? - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] problem with posted data in UTF-8 and reverse proxy
Hi, Please excuse the Tomcat references below, my question is actually about the HTTPD reverse proxy feature. I have a web app that, when viewed by hitting the Tomcat 6.0.14 server it runs on handles the input of multi-byte characters using the UTF-8 encoding. The application is a web mail client, and it uses HTTP POST to send the fields of the message composer window to the server. When I put this exact same tomcat/webapp behind the HTTPD 2.2.6 reverse proxy, the Chinese characters POST'd via the composer window gets some other encoding than UTF-8. The end result is that when the user views the result (say they send the mail message to themselves) the Chinese characters are not decoded correctly. For example, I type this into a textarea for the body of the message in the composing form: 你好 哈哈 孔文 When I post this directly to tomcat/webapp, I see it again when I recieve the e-mail a few seconds later (Tomcat has a /* servlet filter that forces UTF-8 encoding on all request and response parameters, also all JSPs have <%@ page contentType="text/html; charset=UTF-8" %>, and also and tomcat container definition has URIEncoding="UTF-8"...) When I post through the HTTPD 2.2.6 reverse proxy, the end result appears like: ä½ å¥½ 哈哈 唿–‡ I've tried as many work arounds as I could search/find/think of including: AddDefaultCharset none vs. AddDefaultCharset UTF-8 Neither of these solves the problem. Has anyone ever encountered this before? I am happy with the HTTPD as a reverse proxy other than this encoding issue, and I'm using HTTPD for a bunch of other functions as well (WebDAV, virtual hosting, subversion repository, etc.) So, I prefer to solve this reverse proxy problem rather than use some other proxy server. Thanks! Scott - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Way to source-control Web files?
Use a version control tool such as CVS or Subversion. Then from each server you check out the code from the repository. You can easily roll back to previous versions if you need to. -CM On Jan 4, 2008 5:11 PM, SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN < [EMAIL PROTECTED]> wrote: > Hi, We have a probblem, which i feel is probably seen in a lot of places > elsewhere with multiple apache and tomcat installations. that is that, how > does one manage the configuration/source-control the apache and tomcat > config files, especially when the contents of the files are different on > different servers? Does anyone have any ideas/inputs as to a standardised > way of doing this? > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] > " from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [EMAIL PROTECTED] problem with posted data in UTF-8 and reverse proxy
Scott Douglass did speak thusly: Hi, Please excuse the Tomcat references below, my question is actually about the HTTPD reverse proxy feature. I have a web app that, when viewed by hitting the Tomcat 6.0.14 server it runs on handles the input of multi-byte characters using the UTF-8 encoding. The application is a web mail client, and it uses HTTP POST to send the fields of the message composer window to the server. When I put this exact same tomcat/webapp behind the HTTPD 2.2.6 reverse proxy, the Chinese characters POST'd via the composer window gets some other encoding than UTF-8. The end result is that when the user views the result (say they send the mail message to themselves) the Chinese characters are not decoded correctly. For example, I type this into a textarea for the body of the message in the composing form: ä½ å¥½ åå åæ When I post this directly to tomcat/webapp, I see it again when I recieve the e-mail a few seconds later (Tomcat has a /* servlet filter that forces UTF-8 encoding on all request and response parameters, also all JSPs have <%@ page contentType="text/html; charset=UTF-8" %>, and also and tomcat container definition has URIEncoding="UTF-8"...) When I post through the HTTPD 2.2.6 reverse proxy, the end result appears like: ä½ 好 Ã¥âÃ¥â Ã¥Ââæ â¡ I've tried as many work arounds as I could search/find/think of including: AddDefaultCharset none vs. AddDefaultCharset UTF-8 Neither of these solves the problem. Has anyone ever encountered this before? I am happy with the HTTPD as a reverse proxy other than this encoding issue, and I'm using HTTPD for a bunch of other functions as well (WebDAV, virtual hosting, subversion repository, etc.) So, I prefer to solve this reverse proxy problem rather than use some other proxy server. End original message. - You are going to need to provide more information, there simply isn't enough here to know how these requests are being processed when proxied. In particular, how do you have the reverse proxy configured in your httpd.conf file? Which proxy modules are you using, etc.? Having those configuration directives will allow somebody (probably not me, I'm an amateur at this stuff) to decipher what is happening. Dragon ~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]