Of course it works if you do it right.
1. Outside ssl virtual host:
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://www.domain.com$1 [R=301,L]
2. Inside the ssl virtual host:
ServerName domain.com
ServerAlias www.domain.com
RewriteEngine On
RewriteCond %{SERVER
Thanks Nick...Worked a treat.
Obvious really - now I feel a bit stupid :-P
Regards
Steve
On Thu, Jul 16, 2009 at 7:24 AM, Nick Kew wrote:
> Steve Dalton wrote:
>
> In my Directory section. This works when I remove the JkMount - but as
>> soon as mod_jk is in play,
>>
>
> Once you're proxying (a
Steve Dalton wrote:
In my Directory section. This works when I remove the JkMount - but as
soon as mod_jk is in play,
Once you're proxying (as you are with mod_jk), there is no Directory -
only what the backend (tomcat) returns.
Use instead.
--
Nick Kew
---
Hi All
I have a nicely working Apache 2.2 proxying to Tomcat 6 via mod_jk (Ubuntu
Jaunty). I need to slap up a quick basic auth user/password on the site to
only allow special guests into the site for an initial limited release. I
thought I could just put something like this:
Auth
On Wed, Jul 15, 2009 at 12:34 PM, wrote:
> I did a redirect, that works both for http and https. But still...
> Request for domain.com just BEFORE redirect to www.domain.com,
> Issues warning in browser and in my apache error log I get line:
> [warn] RSA server certificate wildcard CommonName (CN)
I did a redirect, that works both for http and https. But still...
Request for domain.com just BEFORE redirect to www.domain.com,
Issues warning in browser and in my apache error log I get line:
[warn] RSA server certificate wildcard CommonName (CN) `*.domain.com' does
NOT match server name!?
Aft
On Jul 15, 2009, at 1:29 PM, Kevin O'Gorman wrote:
Observe the following typescript from a Gentoo Linux system. The
module encode is currently at version 2.12, and I would like to
upgrade it to the current CPAN version, which is 2.35. But when I try
to do that, CPAN cannot find the module. Th
Observe the following typescript from a Gentoo Linux system. The
module encode is currently at version 2.12, and I would like to
upgrade it to the current CPAN version, which is 2.35. But when I try
to do that, CPAN cannot find the module. This happens on a number of
others as well, all of them
> -Original Message-
> From: rank1see...@gmail.com [mailto:rank1see...@gmail.com]
> Sent: Tuesday, July 14, 2009 2:17 PM
> To: users@httpd.apache.org
> Subject: RE: [us...@httpd] Conditional in httpd.conf
>
> That is exatly how do I do it now.
> But the point is that I've noticed how d
On Wed, 2009-07-15 at 21:17 +0600, alee amin wrote:
> I want apache httpd running on front and wants to forward the
> jsp/servlet requests to tomcat only. I want my static pages and photos
> to be processed by apache and want to configure it through mod_ajp
>
>
>
>
> I have come up with some se
I want apache httpd running on front and wants to forward the jsp/servlet
requests to tomcat only. I want my static pages and photos to be processed
by apache and want to configure it through mod_ajp
I have come up with some settings which actually helped me in forwarding the
reqeust to tomcat. Bu
On Wed, 2009-07-15 at 07:46 -0700, ML wrote:
> Hi Tom,
>
> >> Say I have a directory of files that contain my MySQL connection
> >> information, queries, etc, etc.
> >>
> >> How do I prevent people from browsing the directory but allow the
> >> files to still be used when I include them in a page.
Hi Tom,
Say I have a directory of files that contain my MySQL connection
information, queries, etc, etc.
How do I prevent people from browsing the directory but allow the
files to still be used when I include them in a page. Say to connect
to MySQL.
Don't ever put them inside your document ro
On Wed, Jul 15, 2009 at 8:54 AM, André Warnier wrote:
> http://httpd.apache.org/docs/2.2/vhosts/mass.html#xtra-conf
> in the section
> Simple dynamic virtual hosts using mod_rewrite
> the example, at the end, shows this set of rules :
>
> ## and now deal with CGIs - we have to force a MIME type
> R
-- Forwarded message --
From: Kevin O'Gorman
Date: Wed, Jul 15, 2009 at 6:22 AM
Subject: Re: [gentoo-user] Re: mod_perl is hard to set up on gentoo;
this even messes up vim
To: gentoo-u...@lists.gentoo.org
On Wed, Jul 15, 2009 at 3:25 AM, Torsten Veller wrote:
> * Kevin O'Gorman
http://httpd.apache.org/docs/2.2/vhosts/mass.html#xtra-conf
in the section
Simple dynamic virtual hosts using mod_rewrite
the example, at the end, shows this set of rules :
## and now deal with CGIs - we have to force a MIME type
RewriteCond %{REQUEST_URI} ^/cgi-bin/
RewriteRule ^/(.*)$ /www/host
OK it's great for log, thank you Dan Poirier.
But I have always the problem with server-status
On Wed, Jul 15, 2009 at 14:09, Dan Poirier wrote:
> Julien writes:
>
>> version: apache 2.2.9
>>
>> Actually I'm using a Separate Virtual Host Configuration File:
>> (http://httpd.apache.org/docs/2.
Julien writes:
> version: apache 2.2.9
>
> Actually I'm using a Separate Virtual Host Configuration File:
> (http://httpd.apache.org/docs/2.0/vhosts/mass.html#xtra-conf)
> But my problem is that I don't have the right domain name in my logs
> and server-status page.
>
> Instead of having my virtu
Hello
version: apache 2.2.9
Actually I'm using a Separate Virtual Host Configuration File:
(http://httpd.apache.org/docs/2.0/vhosts/mass.html#xtra-conf)
But my problem is that I don't have the right domain name in my logs
and server-status page.
Instead of having my virtual host domain name, I
On Wed 15 Jul 2009, Kevin O'Gorman wrote:
> Errno architecture (i686-linux-2.6.24-gentoo-r4-kosmanor) does not
> match executable architecture
> (i686-linux-thread-multi-2.6.28-gentoo-r5-kosmanor) at
> /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
To me this does not look like a modperl bug but
On Wed, 2009-07-15 at 03:08 -0700, Kevin O'Gorman wrote:
> On Wed, Jul 15, 2009 at 3:06 AM, Kevin O'Gorman wrote:
> > More info:
> > Even though the perl and libperl emerges seemed to go okay, they also
> > fail on startup, with pretty much the same complaint about this
> > Errno.pm file. On looki
On Wed, Jul 15, 2009 at 3:06 AM, Kevin O'Gorman wrote:
> More info:
> Even though the perl and libperl emerges seemed to go okay, they also
> fail on startup, with pretty much the same complaint about this
> Errno.pm file. On looking at that file, I see that it says it's
> auto-generated, and has
More info:
Even though the perl and libperl emerges seemed to go okay, they also
fail on startup, with pretty much the same complaint about this
Errno.pm file. On looking at that file, I see that it says it's
auto-generated, and has this old 2.4 kernel string built-in.
Too bad there's no hint wha
I wanted mod_perl on my gentoo system. It seems to be touchy about
thread safety. Well that seemed reasonable, but it failed to emerge
(gentoo-speak for "install from source"), and left me without my
favorite editor (!!!): vim.
To handle thread-safety issues, I put this in /etc/package.use:
> #
Hi all,
I have a question about ab ( apache benchmark ) and couldn't find any other
mailing list to ask. If this group is not a suitable one, sorry for the
message pollution.
I'am trying to make some stress tests for some http servers using ab.
Let say, I am using below command:
ab -c X -n Y ht
On Tue, 2009-07-14 at 12:45 -0700, ML wrote:
> Hi Doug,
>
> >> So does that prevent crawling and browsing, but does allow if I
> >> click a link or include a file it will work?
> >>
> >
> > No, it prevents the directory and all files within from being served
> > by the webserver at all. Anythi
26 matches
Mail list logo