[users@httpd] mod_rewrite and Short URLs in mediawiki

2013-09-08 Thread Yan Seiner
I have an installation of apache 2.2 (Ubuntu 12.04LTS) and mediawiki 1.21. I am trying to get short URLs working. I've configured mod-rewrite before on other systems and I can't find anything wrong with any of the various setups I've tried, but mod_rewrite is being silently ignored. Here's my m

[users@httpd] mod_rewrite and FollowSymlinks

2013-04-29 Thread Markus Falb
Hi, In the documentation [1] I read To enable the rewrite engine in this context, you need to set "RewriteEngine On" and "Options FollowSymLinks" must be enabled. If your administrator has disabled override of FollowSymLinks for a user's directory, then you cannot use the rewrite engine. This rest

Re: [users@httpd] Mod_rewrite and DirectoryIndex Issue

2012-10-04 Thread Eric Covener
is there anyway you can help isolate this by building mod_rewrite from 2.2 on top of 2.4 and reporting whether it's affected? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...

[users@httpd] Mod_rewrite and DirectoryIndex Issue

2012-10-04 Thread Christian Cioni
Hi, in apache 2.2 this configuration in .htaccess file work properly. RewriteEngine On RewriteCond %{REQUEST_URI} !^/folder1 RewriteCond %{REQUEST_URI} !^/folder2 RewriteCond %{REQUEST_URI} !^/folder3 RewriteRule ^(.*)$ folder2/$1 [L] When open http

RE: [users@httpd] mod_rewrite And Browser Caching

2012-08-20 Thread Rapp, James
t httpd. There is a pretty good overview of browser caching here: http://www.mnot.net/cache_docs/ James Rapp -Original Message- From: Ben Johnson [mailto:b...@indietorrent.org] Sent: Saturday, August 18, 2012 9:51 AM To: users@httpd.apache.org Subject: Re: [users@httpd] mod_rewrite And Bro

Re: [users@httpd] mod_rewrite And Browser Caching

2012-08-18 Thread Ben Johnson
On 8/18/2012 11:30 AM, sebb wrote: > On 18 August 2012 15:55, Drew Tomlinson wrote: >> I've been working at this for days and couldn't figure out why a mod_rewrite >> rule wasn't working. My situation was that I wanted to redirect this: >> >> http://domain.com/unique_directory/whatever >> >> to

Re: [users@httpd] mod_rewrite And Browser Caching

2012-08-18 Thread sebb
On 18 August 2012 15:55, Drew Tomlinson wrote: > I've been working at this for days and couldn't figure out why a mod_rewrite > rule wasn't working. My situation was that I wanted to redirect this: > > http://domain.com/unique_directory/whatever > > to > > https://domain.com/unique_directory/what

[users@httpd] mod_rewrite And Browser Caching

2012-08-18 Thread Drew Tomlinson
I've been working at this for days and couldn't figure out why a mod_rewrite rule wasn't working. My situation was that I wanted to redirect this: http://domain.com/unique_directory/whatever to https://domain.com/unique_directory/whatever While not redirecting http://domain.com/other_direct

Re: [users@httpd] mod_rewrite and directory context

2012-06-05 Thread Jimmy Thrasibule
> So it looks like that `mod_rewrite` is applying the last rule but the > conditions are not tested. OK, I saw my regrettable error, the regex was not correct due to directory stripping. This one is now working: RewriteRule ^(.+)$ index.php?q=/$1 [QSA,L] -- Jimmy --

Re: [users@httpd] mod_rewrite and directory context

2012-06-05 Thread Jimmy Thrasibule
> Second if you read mod_rewrite docs you will see that QSA flag appends > something, which is why you have double "test" as rewrite result. I just mess with the directory names but the output is correct and QSA is the behavior I want. Here is the correct logs output: GET /mypath HTTP/1.1 (2) i

Re: [users@httpd] mod_rewrite and directory context

2012-06-04 Thread Igor Cicimov
On Tue, Jun 5, 2012 at 12:42 PM, Eric Covener wrote: > On Mon, Jun 4, 2012 at 10:38 PM, Igor Cicimov wrote: > > First this is wrong: > > > > Options -Indexes +FollowSymLinks > > > > You should never mix + and - in the Options. > > > > Isn't it just +/- and non +/- that are the mix to avoid? > >

Re: [users@httpd] mod_rewrite and directory context

2012-06-04 Thread Eric Covener
On Mon, Jun 4, 2012 at 10:38 PM, Igor Cicimov wrote: > First this is wrong: > > Options -Indexes +FollowSymLinks > > You should never mix + and - in the Options. > Isn't it just +/- and non +/- that are the mix to avoid? - To un

Re: [users@httpd] mod_rewrite and directory context

2012-06-04 Thread Igor Cicimov
First this is wrong: Options -Indexes +FollowSymLinks You should never mix + and - in the Options. Second if you read mod_rewrite docs you will see that QSA flag appends something, which is why you have double "test" as rewrite result. Igor On Jun 5, 2012 4:29 AM, "Jimmy Thrasibule" wrote: >

[users@httpd] mod_rewrite and directory context

2012-06-04 Thread Jimmy Thrasibule
Hi, I'm trying to pass everything that is not a file to `index.php` as a request parameter without using a `.htaccess` file. A request to http://www.example.com/test must be rewritten to http://www.example.com/index.php?q=/test. I'm using Debian Squeeze (6.0) and Apache 2.2.16. Here is my config

Re: [users@httpd] Mod_Rewrite and reverse proxy

2011-04-20 Thread Joel Donahue
On Wed, Apr 20, 2011 at 4:58 PM, Mark Montague wrote: >  On April 20, 2011 18:43 , Joel Donahue wrote: >> >> Is it possible to use Mod_Rewrite and apache in reverse proxy mode >> simultaneously? > >> >> RewriteEngine on >> RewriteBase / >> RewriteRule ^robots\.txt$ robots2.txt >> >> >> ProxyPas

Re: [users@httpd] Mod_Rewrite and reverse proxy

2011-04-20 Thread Mark Montague
On April 20, 2011 18:43 , Joel Donahue wrote: Is it possible to use Mod_Rewrite and apache in reverse proxy mode simultaneously? RewriteEngine on RewriteBase / RewriteRule ^robots\.txt$ robots2.txt ProxyPass / http://www.server2/ retry=0 ProxyPassReverse / http://www.server2/ ProxyPreserv

[users@httpd] Mod_Rewrite and reverse proxy

2011-04-20 Thread Joel Donahue
Is it possible to use Mod_Rewrite and apache in reverse proxy mode simultaneously? I have a web server (server1) that is a mirror of another of another web server (server2) and all requests from the server1 are reverse proxyed to server2. The robots.txt from server2 needs to be changed to disallow

Re: [users@httpd] mod_rewrite and mod_jk

2011-04-03 Thread Dirk Schaare
Greg, I don't know exactly what happens within that rewrite.pl, but what makes me feel curious was the "ajp13" as your JkMount target. My workers.properties file looks pretty different: # list of workers

Re: [users@httpd] mod_rewrite and mod_jk

2011-04-03 Thread Greg Allen
My workers.properties file: [channel.socket:localhost:8009] port=8009 host=127.0.0.1 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 Why does the JkMount look "unusual" to you? Just the "tomcat"? That's just a URL I am using for my testing. My understanding is that anything URL

Re: [users@httpd] mod_rewrite and mod_jk

2011-04-03 Thread Dirk Schaare
what about your workers.properties file? > JkMount /tomcat/* ajp13 looks pretty unusual to me Cheers, Dirk On 03.04.2011, at 19:37, Greg Allen wrote: > I am trying to use mod_rewrite to rewrite URLs coming into my server and have > the resulting value from mod_rewrite processed by mod_jk. He

[users@httpd] mod_rewrite and mod_jk

2011-04-03 Thread Greg Allen
I am trying to use mod_rewrite to rewrite URLs coming into my server and have the resulting value from mod_rewrite processed by mod_jk. Here's the relevant section of my httpd.conf file: DocumentRoot /home/webadmin/localhost/html SuexecUserGroup webadmin webadmin ServerAdmin "webadmin@locahos

[users@httpd] mod_rewrite and UserDir

2011-01-02 Thread Michelle Konzack
Hello and Happy New Year, since I am in war with "mod_rewrite", can someone help me to solv following problem: 1) my /index.php which drive the entired Website should be untouche 2) untouche any URLs like /?what=... what I have to rewrite are the 3) /~some.user/ to /some.user/, mean

[users@httpd] mod_rewrite and mod_auth ordering issue

2005-06-23 Thread Stephen Shirley
Morning, I want to use mod_auth for apache2 to restrict access to a directory on a website. I also want to use mod_rewrite to force such authentication to be over https. I have the following in dir/.htaccess: RewriteEngine On RewriteCond %{HTTPS} !^on$ RewriteRule ^

Re: [users@httpd] mod_rewrite and

2005-06-03 Thread Noah
On Tue, May 24, 2005 at 02:33:45PM +0100, Arne Heizmann wrote: > theshz wrote: > >Hi, how does mod_rewrite interact with directives? I'm trying > >to do a url to url rewrite, but want the resulting url to go through the > > directives, it seems that apache skipped the part, > >and directly loo

Re: [users@httpd] mod_rewrite and

2005-05-24 Thread Arne Heizmann
theshz wrote: Hi, how does mod_rewrite interact with directives? I'm trying to do a url to url rewrite, but want the resulting url to go through the directives, it seems that apache skipped the part, and directly looks for the file: RewriteRule /foo.html /bar/test RewriteRule /foo.html /

[users@httpd] mod_rewrite and

2005-05-23 Thread theshz
Hi, how does mod_rewrite interact with directives? I'm trying to do a url to url rewrite, but want the resulting url to go through the directives, it seems that apache skipped the part, and directly looks for the file:   RewriteRule /foo.html /bar/test     blabla, it's handled by mod_jk