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
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
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...
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
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
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
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
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
> 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
--
> 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
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?
>
>
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
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:
>
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
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
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
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
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
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
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
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
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
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 ^
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
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 /
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
26 matches
Mail list logo