Re: [us...@httpd] :Mod rewrite

2010-01-11 Thread Marcin 'Rambo' Roguski
> Can it be done with RewriteRule. I'm new to Apache, kindly specify > configuration. No, and it would be extremely big security hole to spoof a domain name. However you might just create a DNS CNAME record for the domain name and use it. -- --

Re: [us...@httpd] :Mod rewrite

2010-01-11 Thread Rich Bowen
On Jan 11, 2010, at 07:52 , pkm2112 wrote: Hello experts, need help From http://clc.ncs.com/inventoryappl, I'm redirected to http://server1.ncs.com/inventoryappl. I want to hide http://server1.ncs.com/inventoryappl. Instead of display a dummy url : http://s1.ncs.com/inventoryappl Can it b

Re: [us...@httpd] :Mod rewrite

2010-01-11 Thread Marcin 'Rambo' Roguski
>> Instead of display a dummy url : >> http://s1.ncs.com/inventoryappl > spoofing DNS, I'm not at all sure what he was talking about >From my understanding the question was if one can hide real url and display a fake one at users client (i.e. browser). --

RE: [us...@httpd] :Mod rewrite

2010-01-11 Thread Oliver Schoenborn
> From: Marcin 'Rambo' Roguski [mailto:ra...@id.uw.edu.pl] > > >> Instead of display a dummy url : > >> http://s1.ncs.com/inventoryappl > > > spoofing DNS, I'm not at all sure what he was talking about > > From my understanding the question was if one can hide real url and > display a fake one

RE: [us...@httpd] :Mod rewrite

2010-01-11 Thread Marcin 'Rambo' Roguski
> Marcin, I'm also curious about your statement about security hole when > spoofing a domain name via mod-rewrite. Isn't mod-rewrite *all* about > spoofing URL's (which can include domain name part)? As you mentioned, remapping is not the same as spoofing. Imagine someone's ability to send you bac

RE: [us...@httpd] :Mod rewrite

2010-01-11 Thread Oliver Schoenborn
> From: Marcin 'Rambo' Roguski [mailto:ra...@id.uw.edu.pl] > > > Marcin, I'm also curious about your statement about security hole when > > spoofing a domain name via mod-rewrite. Isn't mod-rewrite *all* about > > spoofing URL's (which can include domain name part)? > > As you mentioned, remappin

RE: [us...@httpd] :Mod rewrite

2010-01-11 Thread Marcin 'Rambo' Roguski
Oops, sorry for unnecessary confusion then -- - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@htt

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

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

2009-03-19 Thread Krist van Besien
On Wed, Mar 18, 2009 at 9:05 PM, Johnny Edge wrote: > > 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 ^(.

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

2009-03-19 Thread Brian Mearns
> On Wed, Mar 18, 2009 at 9:05 PM, Johnny Edge wrote: >> >> 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 >>

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

2009-03-19 Thread Brian Mearns
On Thu, Mar 19, 2009 at 9:51 AM, Johnny Edge wrote: > > Custom 404 page breaks php SESSION vars (only GET/POST/REQUEST are > available), or so the development department claims. Hmm, that doesn't seem write, but I can't say for sure. I don't see any reason cookies wouldn't be available...can onl

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

2009-03-19 Thread Johnny Edge
Thanks Krist, moving out the rewrite statements from and before other rewrites solved the problem. J. -Original Message- From: Krist van Besien [mailto:krist.vanbes...@gmail.com] Sent: 19 March 2009 13:07 To: users@httpd.apache.org Subject: Re: [us...@httpd] mod rewrite issue On Wed

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Igor Galić
- "Rudi Kramer" wrote: > Hi, > > > I am using ubunto 8.0.4 and apache 2.2.8 and I'm having some issue > with mod rewrite and SSL redirection. > > > I have two objectives. The first is to redirect http://www.site.co.za > and http://site.co.za to the url https://www.site.co.za and the seco

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Matus UHLAR - fantomas
- "Rudi Kramer" wrote: > I am using ubunto 8.0.4 and apache 2.2.8 and I'm having some issue > with mod rewrite and SSL redirection. > > I have two objectives. The first is to redirect http://www.site.co.za > and http://site.co.za to the url https://www.site.co.za and the second > is to redire

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Rudi Kramer
On 15 November 2010 14:40, Matus UHLAR - fantomas wrote: > > There is no need for mod_rewrite. the Redirect directive can do exactly the > same with less of workload. > > You don't need a cannon for shooting birds, do you? On 15 November 2010 14:40, Matus UHLAR - fantomas wrote: > > There is

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Eric Covener
> but I still cannot get it right to redirect the https://site.co.za redirect > to https://www.site.co.za, I think it might be my lack understanding of > regex though. > Does this look right? > RedirectMatch ^http\://bpultimateride\.co\.za No, the first argument is just the URL-path, not an entire

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Matus UHLAR - fantomas
> On 15 November 2010 14:40, Matus UHLAR - fantomas wrote: > > > > There is no need for mod_rewrite. the Redirect directive can do exactly the > > same with less of workload. > > > > You don't need a cannon for shooting birds, do you? On 15.11.10 15:27, Rudi Kramer wrote: > > ServerName www.site

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Rudi Kramer
On 15 November 2010 17:17, Matus UHLAR - fantomas wrote: > Redirect / https://www.site.co.za > > in the VirtualHost section for site.co.za (yes, you need separate virtual > host) > > I hope you have SSL certificate for www.site.co.za with alternative name > site.co.za, otherwise browsers will rep

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Frank Gingras
On 11/15/2010 12:37 PM, Rudi Kramer wrote: On 15 November 2010 17:17, Matus UHLAR - fantomas mailto:uh...@fantomas.sk>> wrote: Redirect / https://www.site.co.za in the VirtualHost section for site.co.za (yes, you need separate virtual host) I hope you

Re: [us...@httpd] Mod-rewrite problem

2010-11-15 Thread Matus UHLAR - fantomas
> On 15 November 2010 17:17, Matus UHLAR - fantomas wrote: > > > Redirect / https://www.site.co.za > > > > in the VirtualHost section for site.co.za (yes, you need separate virtual > > host) > > > > I hope you have SSL certificate for www.site.co.za with alternative name > > site.co.za, otherwise

Re: [us...@httpd] Mod-rewrite+Mod_proxy+Mod_cache

2009-05-05 Thread André Warnier
Try $1 instead of $0 ? Julien Gerhards wrote: Hi, I need to build an proxy cache server with a very simple url_rewrite : The server sould receive URL like this : http://myserver/img=httpd%3A%2F%2Fotherwebserver%2Fpath%2Ffile and act as proxy/cache and give the file : http://otherwebserver/

RE: [us...@httpd] Mod-rewrite+Mod_proxy+Mod_cache

2009-05-05 Thread Julien Gerhards
Hi André, It doesn't made any change. I cant see anything in the rewritelog For the Url : http://192.168.100.188/img=http://files.macbidouille.com/mbv/news/00509/nano_1yen.jpg Accesslog : 192.168.100.188 - - [05/May/2009:13:35:55 +0200] "GET /img=http://files.macbidouille.com/mbv/news/00509/nan

Re: [us...@httpd] Mod-rewrite+Mod_proxy+Mod_cache

2009-05-05 Thread André Warnier
Julien Gerhards wrote: Hi André, It doesn't made any change. Well yes it does. $0 was wrong, $1 is right, to capture what you wanted to capture. But I did not look further at the details. I cant see anything in the rewritelog Then it means that this URL is not mtaching what you think it

RE: [us...@httpd] Mod-rewrite+Mod_proxy+Mod_cache

2009-05-05 Thread Julien Gerhards
OK it works, so basixc conf is : RewriteEngine On RewriteCond %{REQUEST_URI} ^/img=(.+) RewriteRule ^/img=(.+)$ $1 [L,P] RewriteLog /var/log/RewriteLog.log AllowEncodedSlashes on ProxyRequests On ProxyVia On CacheEnable disk / CacheRoot "/v

Re: [us...@httpd] Mod-rewrite+Mod_proxy+Mod_cache

2009-05-05 Thread André Warnier
Julien Gerhards wrote: ... additional note : I think this rule is superfluous, as you basically already have the same condition in your RewriteRule : RewriteCond %{REQUEST_URI} ^/img=(.+) I'know that's is not the more secure way of use but i must respect this choice and do my best to limit p

Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved" word?!

2009-05-27 Thread Eric Covener
What happens when you remove rewrite from the equation and just send the requests through your index.php? IOW, is the 403 issued by the PHP code? - The official User-To-User support forum of the Apache HTTP Server Project. See ht

Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved" word?!

2009-05-27 Thread Shahriyar "Shehi" Imanov
7;s... Code only does 301. Why 403's do occur?! I realize this is not mod-rewrite related now :) Shehi - Original Message - From: "Eric Covener" To: Sent: Wednesday, May 27, 2009 10:24 PM Subject: Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved

Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved" word?!

2009-05-27 Thread Shahriyar "Shehi" Imanov
Imanov" To: Sent: Wednesday, May 27, 2009 10:41 PM Subject: Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved" word?! hi again eric, i thought about that... i am coding cms, so redirections made by code are traceable. no, software [php that is] is not do

Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved" word?!

2009-05-27 Thread Shahriyar "Shehi" Imanov
BLOODY HELL, I can't believe my dumbness :D I prepended my .htaccess with PERISHABLE PRESS 4G BLACKLIST for protection purposes, and it was the reason. Removed it and everything was fixed. I apologize guys for wasting your time here, and Eric, sorry for the earlier one :D. Thanks everyone for h

Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved" word?!

2009-05-27 Thread matt farey
though, next stop meta data and Lucene indexing via Zend eh Matt Sent from my BlackBerry® wireless device -Original Message- From: "Shahriyar \"Shehi\" Imanov" Date: Wed, 27 May 2009 23:18:56 To: Subject: Re: [us...@httpd] mod-rewrite: ReWrite failure due t

Re: [us...@httpd] mod-rewrite: ReWrite failure due to a "reserved" word?!

2009-05-27 Thread Shahriyar "Shehi" Imanov
Lol yea, you guessed quite right. Until recently I was a PEAR user, but switched to Zend FW recently. Although Zend Db's Zend_Db_Select is a pain in ass, I managed to port everything to my existing Db handlers. Optimization is the concern at the moment, but I am sure it won't be hard to overcome