Re: [us...@httpd] Is it possible to configure two subdomains for an IP address?

2009-03-18 Thread Krist van Besien
On Thu, Mar 19, 2009 at 6:15 AM, Rex C. Eastbourne wrote: > > Thanks for the replies. I am working on a Slicehost server with a static IP > address; it looks something like 173.23.45.67. I'm able to navigate to this > IP address from any computer as if it were any other domain name. What I was > w

Re: [us...@httpd] Is it possible to configure two subdomains for an IP address?

2009-03-18 Thread Krist van Besien
On Thu, Mar 19, 2009 at 6:52 AM, Jeff Sadowski wrote: > On Wed, Mar 18, 2009 at 11:15 PM, Rex C. Eastbourne >> Thanks for the replies. I am working on a Slicehost server with a static IP >> address; it looks something like 173.23.45.67. I'm able to navigate to this >> IP address from any compute

Re: [us...@httpd] Is it possible to configure two subdomains for an IP address?

2009-03-18 Thread Jeff Sadowski
On Wed, Mar 18, 2009 at 11:15 PM, Rex C. Eastbourne wrote: > On Wed, Mar 18, 2009 at 8:31 AM, André Warnier wrote: >> >> Rex C. Eastbourne wrote: >> [...] >> >> A short primer : >> >> The Internet in general works with IP addresses, not host names. >> Host names are for humans. >> >> When in the

Re: [us...@httpd] Is it possible to configure two subdomains for an IP address?

2009-03-18 Thread Rex C. Eastbourne
On Wed, Mar 18, 2009 at 8:31 AM, André Warnier wrote: > Rex C. Eastbourne wrote: > [...] > > A short primer : > > The Internet in general works with IP addresses, not host names. > Host names are for humans. > > When in the browser of your workstation, you enter a URL like > http://hostname.x.y.z

[us...@httpd] build a proxy server w/ apache pieces?

2009-03-18 Thread Richard Langly
Hey all, I'm searching for a way to do the following (build a proxy of sorts) and wondering if apache or any of it's pieces would allow me to ... - receives a request from a web-browser. - allows me to grab the URL and build a web page. - then forwards the request to the destination.

Re: [us...@httpd] Apache Tunning

2009-03-18 Thread kulbir Saini
Thanks Tony, will work on the suggestion and will let you know.. Kulbir On Mon, Mar 16, 2009 at 5:58 PM, Anthony J. Biacco < abia...@formatdynamics.com> wrote: > Your math is still off. ServerLimit x ThreadsPerChild = 200 x 25 = 5000. > This does not equal your MaxClients of 1000. Try a Serve

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Campbell, Lance wrote: RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L] I have tried the above but it still gives me a file not found for abc. RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc /efg/%1 [L] This also did not work. R

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Campbell, Lance wrote: So now I have the following: RewriteCond %{QUERY_STRING} ^abc?id=(.*) [NC] RewriteRule ^abc /efg/%1 [L] This is irrelevant for the second time, because the others gave you the correct solution, but you are still making an error in your regexp : ^abc?id= does not match

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Campbell, Lance
RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L] I have tried the above but it still gives me a file not found for abc. RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc /efg/%1 [L] This also did not work. RewriteCond %{QUERY_STRING

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread Eric Covener
> Also at a higher level, if your users type in /abc/def then you want > to internally redirect to /abc?id=def, then you don't even want to > match against a query string.  You're implementing the opposite, where > you identify /abc?id=def and react to it. Reconsidering -- OP is a little ambiguous

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread Eric Covener
On Wed, Mar 18, 2009 at 5:02 PM, Campbell, Lance wrote: > So now I have the following: > > RewriteCond %{QUERY_STRING} ^abc?id=(.*)  [NC] "abc" isn't part of the query string in your example > RewriteRule ^abc /efg/%1  [L] This depends on http://wiki.apache.org/httpd/RewriteContext Also at a h

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Anthony J. Biacco
abc isn't part of your query Make it: RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L] -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- Fr

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Campbell, Lance
So now I have the following: RewriteCond %{QUERY_STRING} ^abc?id=(.*) [NC] RewriteRule ^abc /efg/%1 [L] It still does not work. I am still getting the file not found. I feel like I am closer. Thanks, Lance -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent:

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Eric Covener wrote: On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance wrote: RewriteRule ^/abc?id=(.*) /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/httpd/RewriteQueryString Eric is of course right, above here. But even if .. I wanted to point out

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Anthony J. Biacco
Rewriterule doesn't process query strings. He needs a "RewriteCond %{QUERY_STRING}"-type directive. -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: André Warn

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Campbell, Lance wrote: I want to do convert the below dynamic url to a static url: http://acme.com/abc?id=123 To: http://acme.com/efg/123 I have tried the following: RewriteRule ^/abc?id=(.*) /efg/$1 Try: RewriteRule ^/abc\?id=(.*) /efg/$1 Well, actually maybe not

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread Eric Covener
On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance wrote: > RewriteRule ^/abc?id=(.*)   /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/httpd/RewriteQueryString -- Eric Covener cove...@gmail.com --

[us...@httpd] RewriteRule problem

2009-03-18 Thread Campbell, Lance
I want to do convert the below dynamic url to a static url: http://acme.com/abc?id=123 To: http://acme.com/efg/123 I have tried the following: RewriteRule ^/abc?id=(.*) /efg/$1 I get an error in my apache log: File does not exist: /apacheDocs/http/acme.com/abc I ha

Re: [us...@httpd] mod rewrite issue

2009-03-18 Thread Eric Covener
On Wed, Mar 18, 2009 at 4:05 PM, Johnny Edge wrote: > > > RewriteRule ^admin/(.*) /admin/index.php?%{QUERY_STRING} [L] The "admin" part of the URL is already stripped away for you, including it in your pattern is making this fail to match. Assuming you don't have a .../admin/admin/. RewriteLo

[us...@httpd] mod rewrite issue

2009-03-18 Thread Johnny Edge
Hello, I have a Virtual host that utilizes mod rewrite in the following manner ... RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d RewriteRule ^(.*) /notfound.php?%{QUERY_STRING} i.e. missing documents are passe

[us...@httpd] rewrite before caching?

2009-03-18 Thread Anthony J. Biacco
I have a uri with cachebusting in it that looks like this: /path?killCache=x¶meter1=y%parameter2=z where x is a unix timestamp used to make sure the url isn't cached by the browser. Now though I want to use apache disk caching on this url. Obviously with the killCache parameters always changing th

Re: [us...@httpd] Change Location-headers with weblogic plugin

2009-03-18 Thread André Warnier
That seems to me like a question to ask the Weblogic people, no ? Andreas Dahlén wrote: Hi! I've got a problem where I've got a Apache 2.2.9 acting as a proxy for a application running on BEA Weblogic. I'm using the plugin from BEA Weblogic as the proxy. Everything works fine except when th

Re: [us...@httpd] Is it possible to configure two subdomains for an IP address?

2009-03-18 Thread André Warnier
Rex C. Eastbourne wrote: [...] A short primer : The Internet in general works with IP addresses, not host names. Host names are for humans. When in the browser of your workstation, you enter a URL like http://hostname.x.y.z/something/something-else.html the first thing the browser does is try t

Re: [us...@httpd] mod_rewrite: moved directory

2009-03-18 Thread Florent Georges
Eric Covener wrote: > If this is in .htaccess or , the RewriteBase is stripped > from the URL before your rule compares to it -- it cannot start with > a slash. Oops, I didn't mention that the rule was in an .htaccess, sorry. Good guess! Stripping the leading slash resolved the problem. Th

Re: [us...@httpd] mod_rewrite: moved directory

2009-03-18 Thread Eric Covener
On Wed, Mar 18, 2009 at 8:04 AM, Florent Georges wrote: > >  Hi, > >  I moved one directory one level up in the hierarchy of web pages, > let's say: > >    from: http://www.example.com/parent/child/ >    to:   http://www.example.com/child/ > >  I try to use mod_rewrite to handle this move, and red

Re: [us...@httpd] mod_rewrite: moved directory

2009-03-18 Thread Brian Mearns
On Wed, Mar 18, 2009 at 8:04 AM, Florent Georges wrote: > >  Hi, > >  I moved one directory one level up in the hierarchy of web pages, > let's say: > >    from: http://www.example.com/parent/child/ >    to:   http://www.example.com/child/ > >  I try to use mod_rewrite to handle this move, and red

[us...@httpd] Change Location-headers with weblogic plugin

2009-03-18 Thread Andreas Dahlén
Hi! I've got a problem where I've got a Apache 2.2.9 acting as a proxy for a application running on BEA Weblogic. I'm using the plugin from BEA Weblogic as the proxy. Everything works fine except when the weblogicserver makes a redirect, i.e. sends a Location-header. The Location header lo

[us...@httpd] Compression of reverse proxied content

2009-03-18 Thread Tom Evans
Hi all We use apache as a reverse proxy for managing our backend servers, and serving static content, and we also use it for providing a more local server in remote locations. (excuse the made up domain names) Eg, site www.foo.com is handled by reverse proxy proxy01.local, in which we have foo-ba

[us...@httpd] mod_rewrite: moved directory

2009-03-18 Thread Florent Georges
Hi, I moved one directory one level up in the hierarchy of web pages, let's say: from: http://www.example.com/parent/child/ to: http://www.example.com/child/ I try to use mod_rewrite to handle this move, and redirect users for a while to the new location. I've read the URL Rewr

Re: [us...@httpd] Tips for redirects

2009-03-18 Thread Brian Mearns
On Wed, Mar 18, 2009 at 3:56 AM, Anders Norrbring wrote: > Wonderful! > It works just as I wanted to. Thank you very much Brian. > > Anders. Glad to hear. -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://pgp.mit.edu/ ---

Re: [us...@httpd] Is it possible to configure two subdomains for an IP address?

2009-03-18 Thread Krist van Besien
On Wed, Mar 18, 2009 at 7:30 AM, Rex C. Eastbourne wrote: > Thanks again for the helpful replies. I followed those instructions. Now the > error message is gone, and I can go to X.X.X.X (my IP address) and see > what's sitting in /var/www/testing. However, going to either of the > subdomains of m

SV: [us...@httpd] Tips for redirects

2009-03-18 Thread Anders Norrbring
> On Tue, Mar 17, 2009 at 12:44 PM, Anders Norrbring > wrote: > >> On Mon, Mar 16, 2009 at 2:15 PM, Anders Norrbring > > >> wrote: > >> > Hi all. > >> > I'm not really familiar with the redirects and regex's needed to > use > >> it, so I'd like to get some hints.. > >> > > >> > I have a web serve