Re: [us...@httpd] Redirect all requests /BUT/ a given directory/URIs

2010-04-22 Thread Igor Cicimov
You can try this for the first part of the question: RewriteEngine On RewriteCond %{REQUEST_URI} !^/some/directory/path/(.*)$ RewriteRule .* some/other/path/%1 [R,L] I would also suggest you read through mod_rewrite page http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html Igor On Thu, Apr 2

Re: [us...@httpd] Apache 2.2 downloading file instead of displaying

2010-04-22 Thread Igor Cicimov
It looks like the Content-Disposition header is set to attachment for your .php and .html files and I don't know why. You can try putting following in your apache config file: ForceType text/html and see if it works. Igor On Fri, Apr 23, 2010 at 1:50 PM, Duane A. Garner wrote: > > I ins

[us...@httpd] Apache 2.2 downloading file instead of displaying

2010-04-22 Thread Duane A. Garner
I installed Apache 2.2 and PHP 5, I got it all working and all of a sudden I try to open WordPress index.php and it wants to download the file instead of display it, then Apache crashes. I restarted, still doing so, then I uninstalled and even restored PC and it still wants to download the index.h

RE: [us...@httpd] Alias, Virtual Host and 500 Internal Server Error

2010-04-22 Thread Wang, Mary Y
Jason, You are so right. The problem was the DNS server didn't map to the correct hostname (it was pointing to another host that was running Apache 1.3.27). Now, I can relax a bit. Thanks Mary -Original Message- From: Jason Nunnelley [mailto:ja...@jasonn.com] Sent: Thursday, April 22,

[us...@httpd] RE: How to enable anonymous access to use a specified Windows user account?

2010-04-22 Thread Xiaojun Mo
In Apache, does the question equal to impersonate current user to a specific user account? Thanks Mo -Original Message- From: Xiaojun Mo Sent: Wednesday, April 21, 2010 5:12 PM To: 'users@httpd.apache.org' Subject: How to enable anonymous access to use a specified Windows user account?

[us...@httpd] Wield problem with a reverse proxy server

2010-04-22 Thread Ruiyuan Jiang
Hi, all I have two reverse proxy servers, one is v2.2.15 (mpm=worker) and the other is v2.2.14 (prefork). They both run on Solaris 10. Now I have a request to redirct traffic for an additional web site which is outsourced by another party. What I have done on a reverse proxy (httpd-vhosts.conf

[us...@httpd] ErrorDocument 404 default for 1.3.41?

2010-04-22 Thread E R
I'm using 1.3.41, and I have an httpd.conf that looks like: ... # "Global" 404 error document ErrorDocument 404 /something.cgi ... SetHandler perl-script PerlHandler Some::Module ErrorDocument 404 default Basically if the handler for /xyz returns a 404 error, I want the Apache's default e

Re: [us...@httpd] Alias, Virtual Host and 500 Internal Server Error

2010-04-22 Thread Jason Nunnelley
On 4/22/10 1:29 PM, Wang, Mary Y wrote: ... Apache/1.3.27 " Apache doesn't typically misrepresent itself. I'd look into this first. Trace the IPs and the domain and make absolutely sure your domain is pointing the right server. You can also go to the machine (host) and do so

[us...@httpd] Alias, Virtual Host and 500 Internal Server Error

2010-04-22 Thread Wang, Mary Y
Hi, I'm encountering some problems here and hope someone can help me to solve them. I've researched many blogs and lists and couldn't find an answer. I have declare a virtual host for download-example2.com which has the same IP as example2.com. (1) I also declared an Alias (see below) so that

Re: [us...@httpd] Apache module that enables ActiveX

2010-04-22 Thread Jonas Eckerman
On 2010-04-22 16:56, Mauri wrote: [quote]Do you want the connection between the proxy and the server to be kept alive rather than closed after each reqest?[quote] yes. just this? KeepAlive Off in the No. That turns off keepalive between the browser and the proxy. In order to turn on keepaliv

Re: [us...@httpd] Apache module that enables ActiveX

2010-04-22 Thread Mauri
[quote]Do you want the connection between the proxy and the server to be kept alive rather than closed after each reqest?[quote] yes. just this? KeepAlive Off in the thanks for the suggest. cheers, Mauri 2010/4/22 Jonas Eckerman > On 2010-04-21 15:28, Mauri wrote: > > a question about my pr

[us...@httpd] HostnameLookups Off but still resolved hostnames

2010-04-22 Thread Marten Lehmann
Hello, our global config of Apache defines: HostnameLookups Off So we expected, that the REMOTE_ADDR part (%h) in our logfiles are only IP-addresses. Now we noticed, that a customer is using a Deny rule with a hostname rather than an IP-address in his .htaccess file which causes Apache to re

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread Eric Covener
On Thu, Apr 22, 2010 at 9:59 AM, alin vasile wrote: >> >>     ProxyPassReverse https://10.173.90.167:8443/ >> > Shouldn't be ProxyPassReverse / https://10.173.90.167:8443/  ? The other arg is inferred from the context (location container), the two arg form is only required in virtualhost

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread GB GB
sorry i made a mistake when I wrote the URL's before basically this is what the client gets after the POST http://mydomain.com/lsw/clientele/ses/pagePersonnelle.jsp?Mouftah=VXV744A9SVZMU9P rather then getting https://mydomain.com/lsw/clientele/ses/pagePersonnelle.jsp?Mouftah=VXV744A9SVZMU9P I

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread GB GB
I dont know why, but when I copy paste my virtualhost info from httpd.conf and put in ssl.conf like you it works??!! thx On Thu, Apr 22, 2010 at 9:01 AM, Mauri wrote: > > u can investigate on the version. I have this: httpd-2.2.3-31 > > Please see at ssl.conf top: > =

Re: [us...@httpd] Apache module that enables ActiveX

2010-04-22 Thread Jonas Eckerman
On 2010-04-21 15:28, Mauri wrote: a question about my previous problem. What previous problem? And what on earth does this have to do with enabling ActiveX? Scenario A) All request from my i.e. to web server go troughput this 2 sessions. I don't see any other connection. Scenario B) All

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread alin vasile
Shouldn't be ProxyPassReverse / https://10.173.90.167:8443/ ? From: GB GB To: users@httpd.apache.org Sent: Thu, April 22, 2010 3:56:36 PM Subject: Re: [us...@httpd] Reverse Proxy https to http The version I am using is Server version: Apache/2.0.54 Server b

Re: [us...@httpd] Re: HTTPS only for login page (when apache front tomcat)

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 2:50 PM, Mark H. Wood wrote: > Consider that Google and Yahoo! receive traffic many orders of > magnitude greater than perhaps 99.9% of the rest of the Web.  What is a > performance problem for them may not be a performance problem for you. > I run a number of web servers a

Re: [us...@httpd] Re: HTTPS only for login page (when apache front tomcat)

2010-04-22 Thread Mark H. Wood
Consider that Google and Yahoo! receive traffic many orders of magnitude greater than perhaps 99.9% of the rest of the Web. What is a performance problem for them may not be a performance problem for you. I run a number of web servers and I don't think I could buy a computer so slow that TLS overh

Re: [us...@httpd] Re: HTTPS only for login page (when apache front tomcat)

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 2:04 PM, Krist van Besien wrote: > There is in my opinion no good reason not to have https for the whole > session. The "performance" argument doesn't really apply anymore in a > time that you can buy several webservers for the cost of employing one > webserver specialist f

Re: [us...@httpd] Re: HTTPS only for login page (when apache front tomcat)

2010-04-22 Thread Krist van Besien
On Thu, Apr 22, 2010 at 1:38 PM, Nicholas Sherlock wrote: > On 22/04/2010 5:29 p.m., Krist van Besien wrote: >> >> Just consider the following: >> - You direct a user to a login form. He enters username and password, >> gets authenticated and receives a session cookie from the server. >> - This se

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread Krist van Besien
On Thu, Apr 22, 2010 at 2:21 PM, GB GB wrote: > and in the browser I get the following: The connection has timed out > > http://backend2.ca/lsw/clientele/ses/pagePersonnelle.jsp?Mouftah=VXV744A9SVZMU9P If the browser tries to access the backend directly this is because it was told to do so, prob

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread Mauri
u can investigate on the version. I have this: httpd-2.2.3-31 Please see at ssl.conf top: LoadModule ssl_module modules/mod_ssl.so LoadFile /usr/lib/libxml2.so LoadModule proxy_html_module modules/mod_proxy_html.so LoadModule xml2enc_module module

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread GB GB
The version I am using is Server version: Apache/2.0.54 Server built: Sep 23 2005 15:28:48 ProxyHTMLURLMap doesn't work with what I am using. On Thu, Apr 22, 2010 at 8:32 AM, Mauri wrote: > Hi GB. > > I have a similar solution. > > Client --> https://mysite.com --> proxy --> http://backe

Re: [us...@httpd] Apache module that enables ActiveX

2010-04-22 Thread Hendrik Schmieder
Mauri schrieb: Eric, I'm very sorry for the new thread but I'm no able to reply to original thread. As per the previous mail, I have this error, always! (by 2 days): "Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provid

[us...@httpd] Apache module that enables ActiveX

2010-04-22 Thread Mauri
Eric, I'm very sorry for the new thread but I'm no able to reply to original thread. As per the previous mail, I have this error, always! (by 2 days): "Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further inf

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread Mauri
Hi GB. I have a similar solution. Client --> https://mysite.com --> proxy --> http://backend. the url in the client broswer is https://mysite.com. this is my /etc/httpd/conf.d/ssl.conf: LoadModule ssl_module modules/mod_ssl.so LoadFile /usr/lib/libxml2.so LoadModule proxy_html_module modul

[us...@httpd] Redirect all requests /BUT/ a given directory/URIs

2010-04-22 Thread Jason Nunnelley
Any of you Apache geniuses know how to .htaccess redirect everything BUT a given directory path? And, I'll add another twist: it's another URL I need to write. So, I need local/page.html to rewrite remote/page.html in every case but local/specified_directory. -- Jason A. Nunnelley +1 256297

Re: [us...@httpd] Apache module that enables ActiveX

2010-04-22 Thread Eric Covener
On Thu, Apr 22, 2010 at 8:13 AM, Mauri wrote: > Hi Eric. I mean this. > > in the Scenario A I have the TCP connection as per image: persistent.png > in the Scenario B I have the TCP connection as per image:persistent2.png Still no clue what you're trying to express. I just see 2 connections in on

[us...@httpd] ProxyPreserveHost On

2010-04-22 Thread Mauri
Hi experts, this is my scenario: https://miosito.com --> mod_proxy --> http://10.19.72.100:8080/ (tomcat) httpd conf: NameVirtualHost mysite.com:443 ProxyPreserveHost On ProxyRequests off ProxyPass / http://10.19.72.100:8080/ ProxyHTMLURLMap http://10.19.72.100:8080 / ProxyPassReverse

Re: [us...@httpd] Apache module that enables ActiveX

2010-04-22 Thread Eric Covener
On Thu, Apr 22, 2010 at 8:13 AM, Mauri wrote: > Hi Eric. I mean this. > > in the Scenario A I have the TCP connection as per image: persistent.png > in the Scenario B I have the TCP connection as per image:persistent2.png Please don't create thread after thread, and don't subject everyone on the

Re: [us...@httpd] Reverse Proxy https to http

2010-04-22 Thread GB GB
Basically what goes on when the user types in https://mydomain.com/lsw he gets an authentification page from the backend application. Once he enters his credentials, I notice a POST in the apache logs. This is what the user types in: https://mydomain.com/lsw/clientele/gen/authentification.jsp he

Re: [us...@httpd] RedirectMatch and ProxyPass

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 12:55 PM, Eric Covener wrote: >> It seems that the request goes first through mod_proxy and then only through >> mod_alias, event it the mod_alias directives (RedirectMatch) appear first >> ... is it a normal behavior ? > > It's normal, and the precedence the modules are co

Re: [us...@httpd] RedirectMatch and ProxyPass

2010-04-22 Thread Eric Covener
> It seems that the request goes first through mod_proxy and then only through > mod_alias, event it the mod_alias directives (RedirectMatch) appear first > ... is it a normal behavior ? It's normal, and the precedence the modules are coded for. > Is there a clean way to do what I want to do, wit

Re: [us...@httpd] Negation of Remote_Addr in SetEnvIf directive

2010-04-22 Thread Krzysztof Dajka
> Apache 2.0 and later uses PCRE, and neither of those expressions mean > what you're describing. SetEnvIf itself doesn't negate the result of > the regex match with a flag. > > I don't fully understand your logic, but If you want your SetEnvIf to > only take action when the remote address doesn't

[us...@httpd] RedirectMatch and ProxyPass

2010-04-22 Thread Julien Cigar
Hello, I have the following virtual host configuration : =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ServerName www.foo.be ServerAlias www.fooa.be www.foob.be www.foobar.be DocumentRoot /usr/local/www/apache22/www/www.foo.be/amnesia/public RedirectMatch perm

[us...@httpd] Re: HTTPS only for login page (when apache front tomcat)

2010-04-22 Thread Nicholas Sherlock
On 22/04/2010 5:29 p.m., Krist van Besien wrote: Just consider the following: - You direct a user to a login form. He enters username and password, gets authenticated and receives a session cookie from the server. - This session cookie is sent with each subsequent request, so that the requests ca

Re: [us...@httpd] Negation of Remote_Addr in SetEnvIf directive

2010-04-22 Thread Eric Covener
> SetEnvIf Remote_Addr !^10\. HOSTNAME=foo.bar.com > Header add X-Server-Name "%{HOSTNAME}e" > but negation of network didn't work, I have also tried: > SetEnvIf Remote_Addr [^(10\.)] HOSTNAME=foo.bar.com > but it didn't worked either. > Has anyone used negation in SetEnvIf Remote_Addr ? > Document

[us...@httpd] Negation of Remote_Addr in SetEnvIf directive

2010-04-22 Thread Krzysztof Dajka
Hi, I have a bunch of apache servers which are load balanced. I have configured them in such manner that each server adds header X-Server-Name with proper hostname. In my apache.conf I have: PassEnv HOSTNAME Header add X-Server-Name "%{HOSTNAME}e" I have exported HOSTNAME before launching apach

[us...@httpd] Re: multiple SSL on one computer - IP

2010-04-22 Thread LuKreme
On 21-Apr-2010, at 16:48, Michael Ni wrote: > > i have a situation where I have only one computer (one IP) with > 2 virtual hosts > > one virtual host is static.foobar.com > > one virtual host is www.foobar.com > > both have separate ssl certs registered to the corresponding domain. > > i trie

[us...@httpd] mod_proxy_ajp (apache 2.2

2010-04-22 Thread bitte
Hello list, it seems mod_proxy / mod_proxy_ajp does not realize config changes while doing a graceful restart. I need to connect to 2 ajp-services but only to one at one time. If I have ProxyPass /sample balancer://balancer/sample stickysession=JSESSIONID nofailover=On BalancerMember ajp://a

RE: [us...@httpd] multiple SSL on one computer - IP

2010-04-22 Thread Samuel Fuchs
As far as I know there is also the possibility to use a different port for the second vhost. But in this case you will always have to type the port in your address field (e.g. https://nameof.some.host:9443). -Original Message- From: Tom Evans [mailto:tevans...@googlemail.com] Sent: Do

Re: [us...@httpd] multiple SSL on one computer - IP

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 1:25 AM, Crypto Sal wrote: >  On 04/21/2010 08:11 PM, Tom Evans wrote: >> >> On Wed, Apr 21, 2010 at 11:48 PM, Michael Ni  wrote: >>> >>> i have a situation where I have only one computer (one IP) with >>> 2 virtual hosts >>> >>> one virtual host is static.foobar.com >>> >>