RE: [us...@httpd] best way to modify a URL

2009-12-17 Thread Oliver Schoenborn
Thanks Andre for the detailed explanations. Looks like I have it figured out: From: André Warnier [...@ice-sa.com] >> >> 1. Client goes to http://dodo.foo.com: >> A. server changes this to http://foo.com/bar >> B. server returns content (which will be http://foo.com/bar/index.html) >> C. cl

Re: [us...@httpd] best way to modify a URL

2009-12-17 Thread André Warnier
Oliver Schoenborn wrote: In order to apply the proxying just for dodo.foo.com only, I use a rewrite rule. Here is what I have so far, seems to work completely: RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ RewriteRule ^/bar/(.*) /$1[R,L] RewriteCond %{HTTP

RE: [us...@httpd] best way to modify a URL

2009-12-17 Thread Oliver Schoenborn
>> RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ >> RewriteRule ^/bar/(.*) /$1[R,L] >> >> RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ >> RewriteRule ^(.+)%{HTTP_HOST}$1 [C] >> RewriteRule ^dodo\.foo\.com/(.*)

Re: [us...@httpd] best way to modify a URL

2009-12-17 Thread André Warnier
Oliver Schoenborn wrote: RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ RewriteRule ^/bar/(.*) /$1[R,L] RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ RewriteRule ^(.+)%{HTTP_HOST}$1 [C] RewriteRule ^dodo\.foo\.co

Re: [us...@httpd] best way to modify a URL

2009-12-17 Thread André Warnier
2. major issue: form POST problem: form POST should probably not get redirected either, but so far I can't find what condition to test for Purely as an aside : Redirecting a POST internally is not a problem, because it happens early, before Apache even starts to read the request body (so to

Re: [us...@httpd] Using SSLCipherSuite to restrict to faster cipher algorithms

2009-12-17 Thread François Beaune
On Wed, Dec 16, 2009 at 7:00 PM, Justin Pasher wrote: [snip] Here is the SSLCipherSuite directive that I use on my servers to lock out > insecure ciphers: > > SSLCipherSuite AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA:RC4-MD5 > > Try setting your config to this value. Obviously this is different t

[us...@httpd] reverse proxy with apache 1.3 and apache 2.2

2009-12-17 Thread Jérémie G
Hello, I have to migrate a working reverse proxy from apache-ssl 1.3.33-6sarge3 to apache2 2.2.9-10+lenny6 with ssl but I encounter a critical issue : when I try to access the website from behind a proxy, it's working with apache 1.3 but not with apache 2.2 (without proxy, it's working fine for bo

[us...@httpd] How to enable PUT request on Apache/2

2009-12-17 Thread Yetkin Degirmenci
Hello everyone, I need to enable PUT request on my VPS server because I bought a comercial cms. Even my service provider can't figure it out. I'm not so familar those kind of things. Only thing we tried made a alias with Davlock it were PUT work under subdirectory but I need to work under publ

[us...@httpd] How to enable PUT request on Apache/2

2009-12-17 Thread Yetkin Degirmenci
Hello everyone, I need to enable PUT request on my VPS server because I bought a comercial cms. Even my service provider can't figure it out. I'm not so familar those kind of things. Only thing we tried made a alias with Davlock it were PUT work under subdirectory but I need to work under publ

Re: [us...@httpd] Apache intermittent crash - HELP!!!

2009-12-17 Thread Daniel Reinhardt
From: gary lim Sent: 17 December, 2009 5:05 To: users@httpd.apache.org Subject: Re: [us...@httpd] Apache intermittent crash - HELP!!! Hi daniel, 1. the intermittent crash happens even before we did any performance tuning of the apache. 2. the reason why we did the tuning is because we want

Re: [us...@httpd] How to enable PUT request on Apache/2

2009-12-17 Thread Daniel Reinhardt
-- From: "Yetkin Degirmenci" Sent: 17 December, 2009 13:46 To: Subject: [us...@httpd] How to enable PUT request on Apache/2 Hello everyone, I need to enable PUT request on my VPS server because I bought a comercial cms. Even my service provid

[us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread Buchbauer Thomas
Hi, Does anybody know, if there is a way to install Apache HTTP Server silent, with something like a response-files as input? With response-file I mean, a file as input for the setup, which contains values for all configurable settings in the setup (e.g. location, repositories-path, port, ...). T

Re: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread André Warnier
Buchbauer Thomas wrote: Hi, Does anybody know, if there is a way to install Apache HTTP Server silent, with something like a response-files as input? With response-file I mean, a file as input for the setup, which contains values for all configurable settings in the setup (e.g. location, reposit

AW: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread Buchbauer Thomas
Platform: Windows Version: latest release (>= 2.2.13) -Ursprüngliche Nachricht- Von: André Warnier [mailto:a...@ice-sa.com] Gesendet: Donnerstag, 17. Dezember 2009 15:37 An: users@httpd.apache.org Betreff: Re: [us...@httpd] Silent Installation Apache HTTP Server Buchbauer Thomas wrote:

Re: [us...@httpd] How to enable PUT request on Apache/2

2009-12-17 Thread Yetkin Degirmenci
Hello Daniel, The cms adress is here www.firerift.com I bought this but I'm not pro with apache I'm just a graphic designer. I wish I could use this safe. If it's not safe I will decide to forget that money I already spend and use static HTML. Thanks for your kind response. Yetkin Daniel Rei

Re: [us...@httpd] How to enable PUT request on Apache/2

2009-12-17 Thread André Warnier
Yetkin Degirmenci wrote: Hello everyone, I need to enable PUT request on my VPS server because I bought a comercial cms. Even my service provider can't figure it out. I'm not so familar those kind of things. Only thing we tried made a alias with Davlock it were PUT work under subdirectory but

Re: AW: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread André Warnier
Buchbauer Thomas wrote: Platform: Windows Version: latest release (>= 2.2.13) I really don't know if the MSI version of the Apache installer offers such a scripting option by itself. But there exist multiple Windows packages which offer this kind of thing. http://lmgtfy.com?q=windows+installe

Re: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread Sander Temme
Thomas, On Dec 17, 2009, at 6:30 AM, Buchbauer Thomas wrote: > Does anybody know, if there is a way to install Apache HTTP Server > silent, with something like a response-files as input? > With response-file I mean, a file as input for the setup, which contains > values for all configurable sett

[us...@httpd] Is it possible to disable the Server header from mod_proxy destination?

2009-12-17 Thread Perl Whore
I'm using the [P] flag with mod_rewrite to forward requests to an internal application server but the Server header returned is that of the application server's and not Apache's. Is this the normal behaviour? If it is, can I make Apache override that with the Apache version instead? --

[us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Greene, Gregory
Can anyone help a new user of Apache2.2? I'm trying to enable SSI on the server but don't seem to be having much luck. I've looked on google and in the FAQ and put into place what seems to be fairly straightforward edits but it never works. Hoping someone can point me in the right direction.

Re: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Charan
try this AllowOverride None Options IncludesNoExec AddOutputFilter Includes .html AddType text/html .shtml AddType text/html .htm AddOutputFilter INCLUDES .shtml AddHandler type-map var Order allow,deny Allow from all

Re: [us...@httpd] Using SSLCipherSuite to restrict to faster cipher algorithms

2009-12-17 Thread Justin Pasher
François Beaune wrote: On Wed, Dec 16, 2009 at 7:00 PM, Justin Pasher mailto:just...@newmediagateway.com>> wrote: [snip] Here is the SSLCipherSuite directive that I use on my servers to lock out insecure ciphers: SSLCipherSuite AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA:RC4-MD5

Re: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Justin Pasher
Greene, Gregory wrote: Options Indexes FollowSymLinks Includes AllowOverride None Order allow,deny Allow from all AddType text/html .html AddOutputFilter INCLUDES .html AddType text/html .htm AddOutputFilter INCLUDES .htm I also tried experimenting with the XBitHack directive but it

[us...@httpd] How to preserve all request headers in reverse proxy (mod_proxy)

2009-12-17 Thread Todd Volkert
Hi all: In httpd 2.2, is it possible to preserve all HTTP headers when using mod_proxy to provide a reverse proxy? Here's my desired setup: I'm running two domains on one server backed by one Tomcat instance. I'm trying to run httpd as a reverse proxy to send http://www.domain1.com/... to http:/

RE: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Greene, Gregory
I tried what Charan suggested but it didn't work either. In answer to what Justin asked, yes, my files that contain the SSI are in either .htm or .html. The files are in a subdirectory structure below /var/www/html. Do I have to specify the absolute directory path in the httpd.conf? I have a

Re: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Justin Pasher
Greene, Gregory wrote: I tried what Charan suggested but it didn't work either. In answer to what Justin asked, yes, my files that contain the SSI are in either .htm or .html. The files are in a subdirectory structure below /var/www/html. Do I have to specify the absolute directory path in the

[us...@httpd] equivalent of http://httpd.apache.org/docs/1.3/misc/howto.html#logreset

2009-12-17 Thread Shibi NS
Is there any equivalent of http://httpd.apache.org/docs/1.3/misc/howto.html#logreset in apache 2.X --Shibi Ns--

RE: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Greene, Gregory
I found the loadmodule line in the httpd.conf file and confirmed that it is also listed out using httpd -M. I've got no errors in the logfile. It's like it just ignores the include code. I found something on a google search about changing the double quotes in the include line to single quotes

RE: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Iñigo Medina
Is there a way for me to tell if that module is enabled. Even with that in the httpd.conf it still doesn't work. Just type /etc/init.d/apache -l to get a list of modules. iñigo Greg Make sure all of the following are true: 1. The file that contains the SSI directive actually ends i

Re: [us...@httpd] equivalent of http://httpd.apache.org/docs/1.3/misc/howto.html#logreset

2009-12-17 Thread Scott Gifford
Shibi NS writes: > Is there any equivalent of http://httpd.apache.org/docs/1.3/misc/howto.html# > logreset in apache 2.X The information there still applies, although "apachectl graceful" or "apache2ctl graceful" is preferred over kill -1 `cat httpd.pid` nowadays. Scott. --

RE: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Greene, Gregory
I've been trying different things that I run across on google searches but so far nothing seems to work. It seems so simple yet is beyond me right now. My latest attempt had me adding a wildcard to the path in the directory line but it didn't help. Current config: Options Indexes Foll

RE: [us...@httpd] best way to modify a URL

2009-12-17 Thread Oliver Schoenborn
From: André Warnier [...@ice-sa.com] >>> Considering your latest answer, I am also now inclined to think that >>> using sections would be much cleaner. >> >> More efficient, more maintainable, or less code to write to obtain same >> effect? >> > Probably all of the above. > General idea : What

RE: [us...@httpd] Enabling Server Side Includes in Apache2.2

2009-12-17 Thread Greene, Gregory
Wanted to say thank you to all the people who offered help. I was finally able to figure it out. It was the space between the Justin Pasher - The official User-To-User support forum of the Apache HTTP Server Project. See http://

[us...@httpd] What is wrong with this RewriteCond?

2009-12-17 Thread Perl Whore
RewriteEngine On RewriteCond %{HTTP_COOKIE} !test RewriteRule /inbox$ /index.php RewriteRule /compose-mail$ /index.php <--- this works RewriteCond %{HTTP_COOKIE} test RewriteRule /compose-mail$ /proxy/ <--- this does not. RewriteRule /inbox$ http://127.0.0.1:22131/ [P] RewriteRule /inbox/(.+) ht

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-17 Thread Eric Covener
On Thu, Dec 17, 2009 at 4:24 PM, Perl Whore wrote: > RewriteEngine On > RewriteCond %{HTTP_COOKIE} !test > RewriteRule /inbox$ /index.php > RewriteRule /compose-mail$ /index.php  <--- this works > > > RewriteCond %{HTTP_COOKIE} test > RewriteRule /compose-mail$ /proxy/ <--- this does not. > Rewrit

[us...@httpd] In Reverse Proxy + Error Document, How Do You Get The Original Request?

2009-12-17 Thread Craig Riecke
I have Apache 2.2 set up as a reverse proxy, forwarding POST'ed packets to an internal server, getting the response, and sending it back. Everything works fine when no errors occur. To handle HTTP 500 error codes, I have configured ProxyErrorOverride to replace the internal server's page with

Re: AW: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread William A. Rowe Jr.
Buchbauer Thomas wrote: > Platform: Windows > Version: latest release (>= 2.2.13) I recently updated the docs; see http://httpd.apache.org/docs/trunk/platform/windows.html#advinst - The official User-To-User support forum of the

RE: [us...@httpd] What is wrong with this RewriteCond?

2009-12-17 Thread Emmanuel Bailleul
> -Message d'origine- > De : Eric Covener [mailto:cove...@gmail.com] > Envoyé : jeudi 17 décembre 2009 22:38 > À : users@httpd.apache.org > Objet : Re: [us...@httpd] What is wrong with this RewriteCond? > > On Thu, Dec 17, 2009 at 4:24 PM, Perl Whore wrote: > > RewriteEngine On > > Rewrit

[us...@httpd] Re: How to preserve all request headers in reverse proxy (mod_proxy)

2009-12-17 Thread Todd Volkert
Actually, I'm not even sure what I'm trying to do is possible - can someone confirm that I'm attempting something that can be done? :) Basically, I have foo.war and bar.war and own the foo.com and bar.comdomains. I want to deploy the two web-apps in Tomcat on port 8080 and have httpd send http://

Re: [us...@httpd] Re: How to preserve all request headers in reverse proxy (mod_proxy)

2009-12-17 Thread Nick Kew
Todd Volkert wrote: Actually, I'm not even sure what I'm trying to do is possible - can someone confirm that I'm attempting something that can be done? :) Basically, I have foo.war and bar.war and own the foo.com and bar.com domains. I want to deploy the two

Re: [us...@httpd] Re: How to preserve all request headers in reverse proxy (mod_proxy)

2009-12-17 Thread Todd Volkert
Haha - the problem is I'm an idiot :) Your message made me go back and check my assumptions, and sure enough, I took stupid pills today. I had created a test page that spits out the request headers in HTML, and I checked the page in Firefox bypassing the proxy, then checked it *by telnetting to p

[us...@httpd] Counting requests

2009-12-17 Thread ricardo figueiredo
hi, How Can I count the number of requests processed ? For example, I would like to count the number of requests were processed each ten seconds. Like as monitor -- Ricardo

[us...@httpd] SSLProxyEngine config help

2009-12-17 Thread Todd Volkert
Ok, hopefully I'm not missing something stupid again... I'm trying to enable the SSL proxy engine for use in one of my virtual hosts, and though it seems to accept my SSLProxyMachineCertificateFile upon startup, I get gobledegook requests when trying to connect over HTTPS: Here is my server confi

[us...@httpd] Re: SSLProxyEngine config help

2009-12-17 Thread Todd Volkert
Forgot to mention that I generated the proxy.pem file by following the process listed at https://issues.apache.org/bugzilla/show_bug.cgi?id=31856, including making sure that I'm using an rsa key (not pkcs8). -T On Thu, Dec 17, 2009 at 9:45 PM, Todd Volkert wrote: > Ok, hopefully I'm not missing

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-17 Thread Perl Whore
I tried that and that did not work either. Still the first rule is applied but not the 2nd one. All the rules for /inbox work fine though. On Fri, Dec 18, 2009 at 3:55 AM, Emmanuel Bailleul wrote: >> -Message d'origine- >> De : Eric Covener [mailto:cove...@gmail.com] >> Envoyé : jeudi 17

Re: [us...@httpd] Counting requests

2009-12-17 Thread Jorge Medina
You may find useful mod_status http://httpd.apache.org/docs/2.2/mod/mod_status.html -Jorge On Thu, Dec 17, 2009 at 9:21 PM, ricardo figueiredo < ricardoogra...@gmail.com> wrote: > hi, > > How Can I count the number of requests processed ? > > For example, > I would like to count the number of

[us...@httpd] Code coverage while running web server

2009-12-17 Thread Guruprasad JG
I am working on a project which requires running httpd web server. I need to ensure that all the important code paths are covered while the web server is running. I looked around for test scripts which can help in doing that, but couldn't find any. Are there any test suite or bunch of functional t

Re: [us...@httpd] What is wrong with this RewriteCond?

2009-12-17 Thread Perl Whore
I gave this a try: RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*test=test.*$ RewriteRule /inbox$ /index.php RewriteCond %{HTTP_COOKIE} !^.*test=test.*$ RewriteRule /compose-mail$ /index.php RewriteCond %{HTTP_COOKIE} ^.*test=test.*$ RewriteRule /inbox$ http://127.0.0.1:22131/ [P] RewriteCond

AW: AW: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread Buchbauer Thomas
Sounds good! Is there also a way to provide an so called 'answer-file' instead of specifying the values in the command-line? See http://nsis.sourceforge.net/Docs/Chapter4.html#4.12 -Ursprüngliche Nachricht- Von: William A. Rowe Jr. [mailto:wr...@rowe-clan.net] Gesendet: Donnerstag, 17

Re: AW: AW: [us...@httpd] Silent Installation Apache HTTP Server

2009-12-17 Thread William A. Rowe Jr.
Buchbauer Thomas wrote: > Sounds good! > > Is there also a way to provide an so called 'answer-file' instead of > specifying the values in the command-line? > See http://nsis.sourceforge.net/Docs/Chapter4.html#4.12 You know the variables; this isn't a Microsoft System Installer (msiexec) support