Re: [EMAIL PROTECTED] rewrite help

2008-11-03 Thread André Warnier
Also, maybe be aware that (.*) will match anything, even the empty string, so you may end up with "/wc?uni=" (unless as solprovider indicates, you have a different rule for "/"). It may be better to use "^/(.+)$", which will only match if there is actually something after the /. [EMAIL PROTECT

Re: [EMAIL PROTECTED] rewrite help

2008-11-03 Thread solprovider
Do not escape the question mark. RewriteRule ^/(.*) /wc?uni=$1 [L] - the first character must be a slash and is not included in the $1 variable. - Add "/wc?uni=" before the rest of the URL on the same server. - Discard any querystring from the visitor. (No QSA flag.) - [L] = stop processing Rewri

[EMAIL PROTECTED] rewrite help

2008-11-03 Thread apache
I am trying to get a redirect to work so that I can get friendl URLs for my website. I am using mod_perl and have written a little handler as a controler to handle all requests. What I currently have that works as follows. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f [OR] Re

[EMAIL PROTECTED] apr_socket_connect for ab

2008-11-03 Thread Arun Gupta
Since a recent update on my MacBook OSX 10.5.5, ab is throwing the following error: -- cut here -- Benchmarking localhost (be patient)... Test aborted after 10 failures apr_socket_connect(): Invalid argument (22) -- cut here -- The exact same command is working fine from a non-Mac machine. Any

RE: [EMAIL PROTECTED] Apache - URL based environment variables

2008-11-03 Thread Stephen Brennan
Nick, I believe the syntax is RewriteEngine on; RewriteRule /A/.* - [E=Config:A] RewriteRule /B/.* - [E=Config:B] _ my actual setup Alias /bugzillatest /usr/share/bugzilla Alias /bugzillaother /usr/share/bugzilla RewriteEngine on #RewriteRul

Re: [EMAIL PROTECTED] Re: One tag for public_html in various paths

2008-11-03 Thread Eric Covener
On Mon, Nov 3, 2008 at 4:36 PM, Marcin Zajączkowski <[EMAIL PROTECTED]> wrote: > On 2008-11-02 20:44, Eric Covener wrote: > (...) >>> How can I set Options and other configuration for user public_html >>> directories which are placed in a different paths: >>> /home/foo/user1 >>> /home/bar/user2 >>>

[EMAIL PROTECTED] Re: One tag for public_html in various paths

2008-11-03 Thread Marcin Zajączkowski
On 2008-11-02 20:44, Eric Covener wrote: (...) >> How can I set Options and other configuration for user public_html >> directories which are placed in a different paths: >> /home/foo/user1 >> /home/bar/user2 >> /home/2007/aa/user3 >> /home/2007/ab/user4 >> /home/too/2005/z/user5 ? > > It's unclea

RE: [EMAIL PROTECTED] Apache - URL based environment variables

2008-11-03 Thread Stephen Brennan
Nick, Thank you. Is this the best way to achieve this? Ie. I am sure that I have managed to do this before with Location directives. Has this changed? Would this be the correct syntax for my example? RewriteEngine on; RewriteRule /A/.* - E=Config:A RewriteRule /B/.* - E=Config:B Cheers Ste

Re: [EMAIL PROTECTED] mod_rewrite behaving differently on different apache servers. What to do?

2008-11-03 Thread Krist van Besien
On Mon, Nov 3, 2008 at 2:09 PM, JimRaynor <[EMAIL PROTECTED]> wrote: > I tried this on several apache servers. On some it works perfectly. On some > it doesn't work at all. And on some it rewrites first part of the link, but > not query string (part after ? ) . How to configure Apache for this to

[EMAIL PROTECTED] Apache verison for Windows vista

2008-11-03 Thread xhu1
Hi, which version is Vista compatible? Thanks

[EMAIL PROTECTED] mod_rewrite behaving differently on different apache servers. What to do?

2008-11-03 Thread JimRaynor
As part of SEO optimization, I use this code in my .htaccess file : RewriteEngine On RewriteRule ^some/(.*)/(.*).html$ some.php?&reqa=$1&reqb=$2 This code should rewrite this link: some/valuea/valueb.html into this: some.php?&reqa=valuea&reqb=valueb I tried this on several apache servers

[EMAIL PROTECTED] mod_cache and mod_mem_cache

2008-11-03 Thread Andrew Dixon
Hi All, I have enabled mod_cache and I'm using mem caching (mod_mem_cache) as my caching type, but how can I check if it is actually doing anything. Is there anyway to see what is in the cache, being served from the cache, what the cache hit rate is, etc...??? Thanks Kind regards, Andrew.

Re: [EMAIL PROTECTED] Apache - URL based environment variables

2008-11-03 Thread Nick Kew
On Mon, 3 Nov 2008 13:04:32 +1000 "Stephen Brennan" <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to figure out how to configure appache webserver to set > different UNIX environment variables depending on the url text > entered. RewriteRule. Capture the path component you want, and use

Re: [EMAIL PROTECTED] 2.2.10 Make fails on Solaris - undefined symbols in ab.o?

2008-11-03 Thread Nick Kew
On Mon, 3 Nov 2008 01:10:42 -0500 [EMAIL PROTECTED] wrote: > /maint/downloads/httpd-2.2.10/srclib/apr/libtool --silent --mode=link > gcc -g -O2 -L/usr/sfw/lib -R/usr/local/ssl/lib > -L/usr/local/ssl/lib -R/usr/local/lib -L/usr/local/lib -o ab ab.lo > -lm /maint/downloads/httpd-2.2.10/srclib/