Re: [us...@httpd] mod_rewrite on reverse proxies...

2009-03-31 Thread Krist van Besien
On Wed, Apr 1, 2009 at 5:10 AM, Mike Lyon wrote: > Howdy All, > > Is anyone out there using mod_rewrite to rewrite URLs that pass through > their reverse proxies? I am using Apache as an SSL offloader for some web / > app servers that sit behind it. I have it up and working great. The only > probl

Re: [us...@httpd] mod_rewrite on reverse proxies...

2009-03-31 Thread André Warnier
Sorry, below I meant mod_proxy, not mod_rewrite. André Warnier wrote: Mike Lyon wrote: ... So what I would like to know is if there is a way I can rewrite those hrefs when they go from the server to the client with mod_rewrite so the client is pointed to an SSL href and not just a regular h

Re: [us...@httpd] mod_rewrite on reverse proxies...

2009-03-31 Thread André Warnier
Mike Lyon wrote: ... So what I would like to know is if there is a way I can rewrite those hrefs when they go from the server to the client with mod_rewrite so the client is pointed to an SSL href and not just a regular http href. Is something that mod_rewrite is capable of doing? mod_rewrite

[us...@httpd] mod_rewrite on reverse proxies...

2009-03-31 Thread Mike Lyon
Howdy All, Is anyone out there using mod_rewrite to rewrite URLs that pass through their reverse proxies? I am using Apache as an SSL offloader for some web / app servers that sit behind it. I have it up and working great. The only problem is that the app will return to the client (via the reverse

[us...@httpd] proxy module to cache requests

2009-03-31 Thread Richard Langly
I'm working on writing my own apache module and I want to use apache as a proxy and serve files that are not on the file system. So I'd like my module to make a request to another web server to get these files and place them on the file system so they can be served locally. Is this possible, if so

Re: [us...@httpd] Re: Files not found

2009-03-31 Thread Brian Mearns
On Tue, Mar 31, 2009 at 7:24 PM, Jonesy wrote: > On Tue, 31 Mar 2009 23:10:18 +0100, bruno wrote: >> >> I have installed apache 2.2 on my computer and start server but only I >> can launch index.html on the browser. When I try to load other file >> browser show me error "Not found". > > What's in

[us...@httpd] Re: Files not found

2009-03-31 Thread Jonesy
On Tue, 31 Mar 2009 23:10:18 +0100, bruno wrote: > > I have installed apache 2.2 on my computer and start server but only I > can launch index.html on the browser. When I try to load other file > browser show me error "Not found". What's in the location bar? http://127.0.0.1/ ? -or-

Re: [us...@httpd] Files not found

2009-03-31 Thread Glen Barber
Hi, Bruno. On Tue, Mar 31, 2009 at 6:10 PM, bruno wrote: > Hi all, > > I have installed apache 2.2 on my computer and start server but only I > can launch index.html on the browser. When I try to load other file > browser show me error "Not found". > Is httpd running? `ps -ef | grep httpd' If

[us...@httpd] Files not found

2009-03-31 Thread bruno
Hi all, I have installed apache 2.2 on my computer and start server but only I can launch index.html on the browser. When I try to load other file browser show me error "Not found". I'm working with Linux Ubuntu Intrepid and installation was through source code, compiled. I executed ./configure

Re: [us...@httpd] From https to http and vice versa

2009-03-31 Thread Brian Mearns
On Tue, Mar 31, 2009 at 10:19 AM, Alessandro Fantuzzi wrote: > > First of all thanks for your advice. > > I will check if we can serve all of the contents both in SSL and non SSL. > I didnt consider that solution, in fact I was concerned about putting the > conversation between client and server b

[us...@httpd] Replace multiple VirtualHosts

2009-03-31 Thread Nick Cooper
I have got a very large httpd.conf file and am looking for ways to clean it up. The main problem is the large number of vHosts, most of these follow the same pattern and it's only the subdomain which affects the documentRoot in use. I have managed to reduce it to the following: UseCanonicalName

[us...@httpd] Re: Apache 2.2 mod_include mis-interpreting back-references

2009-03-31 Thread hugh williams
Hi Dan; Yes, that silences the errors, thanks! My question still remains - what changed in Apache that a construct it formerly parsed one way is now treated differently? Or not so much what changed, but why? Why does Apache now "care" what is inside an 'exec cmd' string? Thanks again, now a

[us...@httpd] Apache Tunning Calculation

2009-03-31 Thread Lincoln Zuljewic Silva - Claro SP -
Good morning to all. I have here a "bad configured" apache that hangs the server on every high load peak. The current configuration is: ServerLimit 2000 StartServers 100 MinSpareServers 50 MaxSpareServers 2000 MaxClients 2000 MaxRequestsPerChild 500 I have a

Re: [us...@httpd] From https to http and vice versa

2009-03-31 Thread Alessandro Fantuzzi
First of all thanks for your advice. I will check if we can serve all of the contents both in SSL and non SSL. I didnt consider that solution, in fact I was concerned about putting the conversation between client and server back to http when the user requires a page which needs no protection.

Re: [us...@httpd] Limit resources per virtual host

2009-03-31 Thread Jurgen Lamsens
could someone please help me ? thanks. On Thu, 2009-03-26 at 23:45 +0100, Jurgen Lamsens wrote: > Hi all, > > I'm having an annoying and rather complex problem, and couldn't find any > decent answer crawling the net for hours, visiting forums, reading > FAQs/official documentation, including the

Re: [us...@httpd] Recommendation on paths

2009-03-31 Thread Brian Mearns
On Tue, Mar 31, 2009 at 6:29 AM, Antonio Vidal Ferrer wrote: > Hi, > > > > I need some advice in a simple topic. Which is better in performance and > usability for loading images and other content: > > > > This way: /images/January/myimage.jpg > > Or this way: ../../../myimage.jpg > > > > Thanks i

[us...@httpd] Proxy to Tomcat 503 errors

2009-03-31 Thread Daryl Stultz
Hello, I'm running Fedora Core 5, httpd-2.2.2-1.2 (worker MPM), Tomcat 5.5.17, Java jdk1.5.0_07. I have about 40 connections/apps from Apache to Tomcat like so: ProxyPass /foo ajp://localhost:8009/foo/ I am getting a fair amount of 503 errors. Logs look like this: Tomcat catalina.out Mar 29, 20

Re: [us...@httpd] Reverse proxy from HTTP to HTTPS or HTTPS to HTTPS how?

2009-03-31 Thread an...@iguanait.com
Thanks for your reply. I expected that i need to tell apache to use some certificates that to use for this job. Yes we have self-signed certificates in main server and in the internal server. So i need to take the certs from the internal server and to put them somewhere on the main server. Then t

Re: [us...@httpd] Apache SSL and Rewrite Rules

2009-03-31 Thread Nick Cooper
I've never been sure on where you place the log line RewriteLog "d:/logs/rewrite.log" Is it in the vhost? no content is being written to the file. On Tue, Mar 31, 2009 at 12:18 PM, Krist van Besien < krist.vanbes...@gmail.com> wrote: > On Tue, Mar 31, 2009 at 12:29 PM, Nick Cooper > wrote: > >

Re: [us...@httpd] Apache SSL and Rewrite Rules

2009-03-31 Thread Krist van Besien
On Tue, Mar 31, 2009 at 12:29 PM, Nick Cooper wrote: > I am having some problems with SSL and Rewrite rules, the rewrite rule works > when not under SSL. > I understand that an SSL connection occurs before any Rewrite rule has a > chance to take place, is this correct? > Is there anyway to still u

Re: [us...@httpd] Reverse proxy from HTTP to HTTPS or HTTPS to HTTPS how?

2009-03-31 Thread Krist van Besien
On Tue, Mar 31, 2009 at 12:35 PM, an...@iguanait.com wrote: > I know how to create a reverse proxy for HTTP -> HTTP, but i don't know > how to do it for HTTP to HTTPS. I know there is a SSLProxyengine that i > should activate, but probably i need to do more than these to get > working this. You

Re: [us...@httpd] Apache SSL and Rewrite Rules

2009-03-31 Thread Nick Cooper
I have the following .htaccess AuthName "Admin" AuthUserFile .htpasswd Require valid-user Options +FollowSymLinks RewriteEngine On RewriteBase /folder RewriteRule ^$ index.php RewriteRule ^admin/$ admin/admin.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule

Re: [us...@httpd] Apache SSL and Rewrite Rules

2009-03-31 Thread Eric Covener
On Tue, Mar 31, 2009 at 6:29 AM, Nick Cooper wrote: > I am having some problems with SSL and Rewrite rules, the rewrite rule works > when not under SSL. > I understand that an SSL connection occurs before any Rewrite rule has a > chance to take place, is this correct? This is correct, the handsha

[us...@httpd] Reverse proxy from HTTP to HTTPS or HTTPS to HTTPS how?

2009-03-31 Thread an...@iguanait.com
Hi, i need to create a reverse proxy that to pass the requests to a server in internal network. The site in this server use HTTPS. The situation is this. We have a server that works like a gateway/mailserver/firewall. Behind this server we have a private network and there is a server that has a s

[us...@httpd] Apache SSL and Rewrite Rules

2009-03-31 Thread Nick Cooper
I am having some problems with SSL and Rewrite rules, the rewrite rule works when not under SSL. I understand that an SSL connection occurs before any Rewrite rule has a chance to take place, is this correct? Is there anyway to still use Rewrite with SSL? Thank you, Nick

[us...@httpd] Recommendation on paths

2009-03-31 Thread Antonio Vidal Ferrer
Hi, I need some advice in a simple topic. Which is better in performance and usability for loading images and other content: This way: /images/January/myimage.jpg Or this way: ../../../myimage.jpg Thanks in advance for your advice Best, Toni Vidal.