Re: [users@httpd] Apache2.2 issue

2011-06-01 Thread shalini jonnadula
Recently i have upgraded Apache 1.3 to Apache 2.2 on my Solaris box. version 2.2 is working fine for http but i have problem of "The requested method CONNECT is not allowed for the URL /index.html." for https. i'm sending my httpd.conf file also can u please see this issue? Thanks in advance

[users@httpd] url rewrite

2011-06-01 Thread Friedrich Locke
Hi list users, this is my first post on this mailing list. My doubt is the following: Is it possible to redirect a document root based on the site address like in a template manner wihtout having to configure for each virtual system ? I mean this: Access to http://x.y.z/abc.html should be mappe

Re: [users@httpd] url rewrite

2011-06-01 Thread Macks, Aaron
The way I have accomplished this in the past is to have a different file with "global" redirects and include it in each virtualHost config. It means you need to have a line like 'include "conf/global-rewrites.conf"' in each vhost, but you don't need to duplicate the rewrite rules proper A -- A

[users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
I want to make a catch-all virtual host (like the manual mentions below) which redirects any errant hostnames like http://oopsie.mydomain.com/ to our main hostname at http://www.mydomain.com/ But the below example doesn't work - I'm getting an infinite redirect from http://www.mydomain.com/ rig

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Igor Cicimov
Try making the first one _default_ host Igor On Thu, Jun 2, 2011 at 9:05 AM, Geoff Millikan wrote: > I want to make a catch-all virtual host (like the manual mentions below) > which redirects any errant hostnames like > http://oopsie.mydomain.com/ to our main hostname at > http://www.mydomai

RE: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
> Try making the first one _default_ host > Thanks but since we're doing name-based virtual hosting I don't believe that will apply to us because the manual says the _default_ setting only applies to IP virtual hosting but let me know if you have thoughts otherwise! "The string _default_ is u

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Igor Cicimov
Change the order of the hosts since the first one matches first. Igor On Thu, Jun 2, 2011 at 9:48 AM, Geoff Millikan wrote: > > Try making the first one _default_ host > > > > Thanks but since we're doing name-based virtual hosting I don't believe > that will apply to us because the manual says

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Igor Cicimov
Actually on second thought, the rewrite rule in the first host should be like this to avoid loop: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [OR] RewriteCond %{HTTP_HOST} !^mydomain\.com RewriteRule .* http://www.mydomain.com%{REQUEST_URI} [L,R=3

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Eric Covener
On Wed, Jun 1, 2011 at 7:05 PM, Geoff Millikan wrote: > I want to make a catch-all virtual host (like the manual mentions below) > which redirects any errant hostnames like > http://oopsie.mydomain.com/ to our main hostname at http://www.mydomain.com/   > But the below example doesn't work - I'm

RE: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
> Actually on second thought, the rewrite rule in the first host > should be like this to avoid loop: >       >  RewriteEngine On >  RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [OR] >  RewriteCond %{HTTP_HOST} !^mydomain\.com >      RewriteRule     .* http://www.mydomain.com%{REQUES

RE: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
> missing NameVirtualHost *:80? That would be the easiest way to get > sent back to the 1st vhost after the redirect. Eric, we've got that already but I'm hoping it's some simple oversight like that which is causing this. NameVirtualHost *:80 Listen 80 NameVirtualHost *:443 Listen 443 -

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Eric Covener
On Wed, Jun 1, 2011 at 8:43 PM, Geoff Millikan wrote: >> missing NameVirtualHost *:80?  That would be the easiest way to get >> sent back to the 1st vhost after the redirect. > > Eric, we've got that already but I'm hoping it's some simple oversight like > that which is causing this. > > NameVirt

RE: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
>Looks fine -- apachectl/apache2ctl/httpd -S output? $ /usr/sbin/httpd -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:443 is a NameVirtualHost default server www.t1shopper.com (/etc/httpd/conf/httpd.conf:1399) port 443 namevhost www.t1shopper.com (/etc/http

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Jeroen Geilman
On 06/02/2011 01:05 AM, Geoff Millikan wrote: I want to make a catch-all virtual host (like the manual mentions below) which redirects any errant hostnames like http://oopsie.mydomain.com/ to our main hostname at http://www.mydomain.com/ But the below example doesn't work - I'm getting an inf

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Eric Covener
>   default server www.t1shopper.com (/etc/httpd/conf/httpd.conf:663) >   port 80 namevhost www.t1shopper.com (/etc/httpd/conf/httpd.conf:663) Is this the host that loops? - The official User-To-User support forum of the Apache H

Re: [users@httpd] url rewrite

2011-06-01 Thread Jeroen Geilman
On 06/01/2011 10:33 PM, Friedrich Locke wrote: Hi list users, this is my first post on this mailing list. My doubt is the following: Is it possible to redirect a document root based on the site address like in a template manner wihtout having to configure for each virtual system ? I mean this:

[users@httpd] Apache Upgrade to [2.2.19]

2011-06-01 Thread DW
Can I use the same configuration file (the one currently used on 2.2.17) on 2.2.19? In other words, I want to upgrade 2.2.17 to 2.2.19 and the plan is to simply install the new version on top of the old version. Thanks. - Th

RE: [users@httpd] mod_deflate and chunked encoding

2011-06-01 Thread Geoff Millikan
> In my case, it appears Apache selects the chunked encoding automagically > when the size of the page goes over a certain size. Apache doesn't seem > to set the smaller pages to the chunked encoding (even though they are > gzipped). No, this was wrong. Mod_file_cache was tricking me (again).

Re: [users@httpd] Apache Upgrade to [2.2.19]

2011-06-01 Thread Mark Montague
On June 1, 2011 21:45 , DW wrote: Can I use the same configuration file (the one currently used on 2.2.17) on 2.2.19? In other words, I want to upgrade 2.2.17 to 2.2.19 and the plan is to simply install the new version on top of the old version. Yes. -- Mark Montague m...@catseye.org

[users@httpd] Re: Apache Upgrade to [2.2.19]

2011-06-01 Thread DW
Mark Montague wrote: > On June 1, 2011 21:45 , DW wrote: >> Can I use the same configuration file (the one currently used on 2.2.17) >> on 2.2.19? In other words, I want to upgrade 2.2.17 to 2.2.19 and the >> plan is to simply install the new version on top of the old version. > Yes. > > > --

RE: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
>> default server www.t1shopper.com (/etc/httpd/conf/httpd.conf:663) >> port 80 namevhost www.t1shopper.com (/etc/httpd/conf/httpd.conf:663) > >Is this the host that loops? Yes. When I uncomment the first entry below, the infinite loop happens on the second entry but then again, that's the onl

Re: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Eric Covener
On Wed, Jun 1, 2011 at 10:02 PM, Geoff Millikan wrote: >>> default server www.t1shopper.com (/etc/httpd/conf/httpd.conf:663) >>> port 80 namevhost www.t1shopper.com (/etc/httpd/conf/httpd.conf:663) >> >>Is this the host that loops? > > Yes.  When I uncomment the first entry below, the infinite lo

RE: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
> Get rid of all the rewrite junk and just set a dummy servername; this > will catch ALL undefined hostnames. > Then Redirect / to the correct vhost. Yep, we tried something like this (see below) and it crashed Apache even though the syntax is correct. #virtual host entry #1 #vi

[users@httpd]

2011-06-01 Thread Tim Dunphy
- 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...@httpd.apache.org " from the digest: users-diges

[users@httpd] nfs webroot 403's

2011-06-01 Thread Tim Dunphy
hello list!! the reason I'm writing you guys today is that I'm looking to solve an issue I am having with apache on a centos 5.5 box. The situation is this.. I am sharing the webroot for a few sites in a test environment on an NFS share. This is the share: nas2:/mnt/store/web 1.4T 225G 10

RE: [users@httpd] nfs webroot 403's

2011-06-01 Thread Geoff Millikan
> Everything looks correct with httpd -S on both servers. Except for the Warning: DocumentRoot [/var/www/html/example.com/store] does not exist. Wouldn't that produce 403 errors when you tried to list directory contents? - The

RE: [users@httpd] Special configuration for requests that do not match any particular virtual host? Apache 2.2

2011-06-01 Thread Geoff Millikan
> Eric C: You can't make the catch-all vhost also be a reachable name-based > vhost, with those rewrite rules. Create an additional one > solely for that purpose. > Jeroen G: Get rid of all the rewrite junk and just set a dummy servername; > this will catch ALL undefined hostnames. > Then Redi

[users@httpd] Definition variables during building of apache2-2.2.18

2011-06-01 Thread Petr Hracek
Dear users, I am building apache2-2.2.18 from source codes and now the build up result is: user@testbuild:/home/user/apache2-2.2.18 # ./httpd2 -V Server version: Apache/2.2.18 (Unix) Server built: Jun 2 2011 08:28:57 Server's Module Magic Number: 20051115:27 Server loaded: APR 1.2.2, APR-Util