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


httpd.conf
Description: Binary data

-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

[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 mapped to documentroot
/var/web/x.y.z/abc.html ? but without having to set each mapping?

Thanks in advance.

Fried

-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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
--
Aaron Macks
Sr. Unix Systems Engineer

Harvard Business Publishing
300 North Beacon St.|   Watertown, MA 02472
(617) 783-7461|   Fax: (617) 783-7467
www.harvardbusiness.org |   Cell:(978) 317-3614

On Jun 1, 2011, at 4: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:
> 
> Access to http://x.y.z/abc.html should be mapped to documentroot
> /var/web/x.y.z/abc.html ? but without having to set each mapping?
> 
> Thanks in advance.
> 
> Fried
> 
> -
> 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-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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/ right back to 
http://www.mydomain.com/ 

What am I missing?

#First virtual host entry

RewriteEngine On
RewriteRule .* http://www.mydomain.com%{REQUEST_URI} [L,R=301]
ErrorLog/var/log/httpd/error_log
CustomLog   /var/log/httpd/access_log combined


#Second virtual host entry

ServerName  www.mydomain.com
DocumentRoot   /home/mydomain/www

Options -ExecCGI +FollowSymLinks +IncludesNOEXEC -Indexes 
-MultiViews +Includes
AllowOverride None

ErrorLog/var/log/httpd/error_log
CustomLog   /var/log/httpd/access_log combined


http://httpd.apache.org/docs/2.2/vhosts/name-based.html - "If you would like to 
have a special configuration for requests that do
not match any particular virtual host, simply put that configuration in a 
 container and list it first in the
configuration file."


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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.mydomain.com/   But the below example doesn't work - I'm
> getting an
> infinite redirect from http://www.mydomain.com/ right back to
> http://www.mydomain.com/
>
> What am I missing?
>
> #First virtual host entry
> 
>RewriteEngine On
>RewriteRule .* http://www.mydomain.com%{REQUEST_URI} [L,R=301]
>ErrorLog/var/log/httpd/error_log
>CustomLog   /var/log/httpd/access_log combined
> 
>
> #Second virtual host entry
> 
>ServerName  www.mydomain.com
>DocumentRoot   /home/mydomain/www
>
>Options -ExecCGI +FollowSymLinks +IncludesNOEXEC -Indexes
> -MultiViews +Includes
>AllowOverride None
>
>ErrorLog/var/log/httpd/error_log
>CustomLog   /var/log/httpd/access_log combined
> 
>
> http://httpd.apache.org/docs/2.2/vhosts/name-based.html - "If you would
> like to have a special configuration for requests that do
> not match any particular virtual host, simply put that configuration in a
>  container and list it first in the
> configuration file."
>
>
> -
> 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-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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 used only with IP virtual hosting to catch unmatched 
IP addresses." -
http://httpd.apache.org/docs/current/mod/core.html#virtualhost




-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 the _default_
> setting only applies to IP virtual hosting but let me know if you have
> thoughts otherwise!
>
> "The string _default_ is used only with IP virtual hosting to catch
> unmatched IP addresses." -
> http://httpd.apache.org/docs/current/mod/core.html#virtualhost
>
>
>
>
> -
> 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-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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=301]

Cheers,
Igor

On Thu, Jun 2, 2011 at 9:59 AM, Igor Cicimov  wrote:

> 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 the _default_
>> setting only applies to IP virtual hosting but let me know if you have
>> thoughts otherwise!
>>
>> "The string _default_ is used only with IP virtual hosting to catch
>> unmatched IP addresses." -
>> http://httpd.apache.org/docs/current/mod/core.html#virtualhost
>>
>>
>>
>>
>> -
>> 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-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>


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 getting an
> infinite redirect from http://www.mydomain.com/ right back to 
> http://www.mydomain.com/

missing NameVirtualHost *:80?  That would be the easiest way to get
sent back to the 1st vhost after the redirect.

-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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%{REQUEST_URI} [L,R=301]

Per manual excerpted below, the first  section should only be used 
when the hostname being requested isn't listed
anywhere else in a ServerName or ServerAlias, right?!  So these RewriteCond 
shouldn't be needed!  Right?

I'd use exclusion RewriteCond but since we have other domain names on the 
server like www.MyPersonalWebsite.com and
www.OurOldCompanyName.com etc we'd have to write rule for each domain.  Messy. 

Thanks,

Geoff

"Now when a request arrives, the server will first check if it is using an IP 
address that matches the NameVirtualHost. If it is,
then it will look at each  section with a matching IP address and 
try to find one where the ServerName or ServerAlias
matches the requested hostname. If it finds one, then it uses the configuration 
for that server. If no matching virtual host is
found, then the first listed virtual host that matches the IP address will be 
used." 

http://httpd.apache.org/docs/current/vhosts/name-based.html



-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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




-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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.
>
> NameVirtualHost *:80
> Listen 80
> NameVirtualHost *:443
> Listen 443

Looks fine -- apachectl/apache2ctl/httpd -S output?



-- 
Eric Covener
cove...@gmail.com

-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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/httpd/conf/httpd.conf:1399)
   port 443 namevhost static.t1shopper.com (/etc/httpd/conf/httpd.conf:1647)
   
   port 443 namevhost t1shopper.com (/etc/httpd/conf/httpd.conf:1713)
   port 443 namevhost wireless-t1.com (/etc/httpd/conf/httpd.conf:1797)
   
   port 443 namevhost t3shopper.com (/etc/httpd/conf/httpd.conf:1888)
*:80   is a NameVirtualHost
   default server www.t1shopper.com (/etc/httpd/conf/httpd.conf:663)
   port 80 namevhost www.t1shopper.com (/etc/httpd/conf/httpd.conf:663)
   port 80 namevhost a.static.t1shopper.com (/etc/httpd/conf/httpd.conf:978)
   
   port 80 namevhost t1shopper.com (/etc/httpd/conf/httpd.conf:1072)
   port 80 namevhost wireless-t1.com (/etc/httpd/conf/httpd.conf:1157)
   port 80 namevhost t1carrier.com (/etc/httpd/conf/httpd.conf:1170)
   
   port 80 namevhost t3shopper.com (/etc/httpd/conf/httpd.conf:1240)
   port 80 namevhost vpnshopper.com (/etc/httpd/conf/httpd.conf:1255)
Syntax OK


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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
infinite redirect from http://www.mydomain.com/ right back to 
http://www.mydomain.com/

What am I missing?

#First virtual host entry

RewriteEngine On
RewriteRule .* http://www.mydomain.com%{REQUEST_URI} [L,R=301]
ErrorLog/var/log/httpd/error_log
CustomLog   /var/log/httpd/access_log combined



NO.

nonononono.

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.


--
J.


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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:

Access to http://x.y.z/abc.html should be mapped to documentroot
/var/web/x.y.z/abc.html ? but without having to set each mapping?



Yes; use mass virtual hosting:

VirtualDocumentRoot /var/web/%0/



--
J.


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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.



-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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).  Apache appears to 
set the Transfer-Encoding to chunked when the page is
actively being gzipped and the final gzip file is bigger than 
DeflateBufferSize.  But if the page was gzipped and stored on disk by
mod_file_cache (like we do) it means Apache is merely spooling the file off the 
disk (it doesn't put it though gzip a second time)
and chunked encoding will *not* be used.

Now I'm going to speculate that a chunked gzip web page is going to be slower 
than the unchunked equivalent because the browser have
to spend "some amount" of time putting the chunked version back together.  But 
I'm wrong again.  We just tested this and the timing
of Firefox 4's load event didn't increase with the number of chunks.  Even 
setting DeflateBufferSize down to 500 bytes on a 40K page
didn't produce consistent differences.

The one consistent metric was that with chunking on (DeflateBufferSize smaller 
than total compressed page size), Apache was able to
get the first byte to the web browser about 75ms faster but again, the faster 
response time didn't translate into a consistently
faster rendering of the page by the browser.  

This testing needs further study before it's taken as gospel.  We only ran 
about 4 tests per DeflateBufferSize.


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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.
> 
> 
> -- 
>   Mark Montague
>   m...@catseye.org
> 
> 


Thanks Mark.




-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 only domain we tested.

#First virtual host entry
#
#   RewriteEngine On
#   RewriteRule .* http://www.t1shopper.com%{REQUEST_URI} [L,R=301]
#   ErrorLog/var/log/httpd/error_log
#   CustomLog   /var/log/httpd/access_log combined
#


   ServerName www.t1shopper.com
   DocumentRoot   /home/.../www
   
  


-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 loop 
> happens on the second  entry but then
> again, that's the only domain we tested.

You can't make the catch-all vhost also be a reachable name-based
vhost, with those rewrite rules.  Create an addl one solely for that
purpose.

-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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



  #virtual host entry #2



#very last virtual host entry #934
ServerName t1shopper-catch-all.com
ServerAlias*
RewriteEngine On
RewriteRule .* http://www.t1shopper.com%{REQUEST_URI} [L,R=301]



-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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 1021G  19% /var/www

Everything that is shared from this location on a server called simply web1 
403's no matter what document you hit. On another web sever called web2 the 
opposite is true. Every document you share is correctly served. 

The error log is located here:

ErrorLog "/var/log/httpd/jokefire.com-error_log"

Yet when I try to generate some activity in the logs by hitting pages nothing 
turns up in that log. 

Everything looks correct with httpd -S on both servers. 

web1:

[root@VIRTCENT07:/var/www/html/example.com] #httpd -S
[Wed Jun 01 22:14:16 2011] [warn] module php5_module is already loaded, skipping
Warning: DocumentRoot [/var/www/html/example.com/jokefire/project_files] does 
not exist
Warning: DocumentRoot [/var/www/html/example.com/store] does not exist
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443  VIRTCENT07.summitnjhome.com 
(/etc/httpd/conf.d/ssl.conf:81)
*:80   is a NameVirtualHost
 default server blog.example.com (/etc/httpd/conf.d/blog.conf:1)
 port 80 namevhost blog.example.com (/etc/httpd/conf.d/blog.conf:1)
 port 80 namevhost example.com (/etc/httpd/conf.d/jfprod.conf:1)
 port 80 namevhost example.com (/etc/httpd/conf.d/jokefire.conf:1)
 port 80 namevhost store.example.com (/etc/httpd/conf.d/store.conf:1)
 port 80 namevhost wiki.example.com (/etc/httpd/conf.d/wiki.conf:1)
Syntax OK

web2:

[root@VIRTCENT08:~] #httpd -S
[Wed Jun 01 21:58:04 2011] [warn] module php5_module is already loaded, skipping
Warning: DocumentRoot [/var/www/html/example.com/jokefire/project_files] does 
not exist
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443  VIRTCENT08.testlab.com (/etc/httpd/conf.d/ssl.conf:81)
*:80   is a NameVirtualHost
 default server blog.example.com (/etc/httpd/conf.d/blog.conf:1)
 port 80 namevhost blog.example.com (/etc/httpd/conf.d/blog.conf:1)
 port 80 namevhost example.com (/etc/httpd/conf.d/jfprod.conf:1)
 port 80 namevhost example.com (/etc/httpd/conf.d/jokefire.conf:1)
 port 80 namevhost store.example.com (/etc/httpd/conf.d/store.conf:1)
 port 80 namevhost wiki.example.com (/etc/httpd/conf.d/wiki.conf:1)
Syntax OK


Here is a listing of the webroot which is identical on both boxes because (as 
I've mentioned) it lives on an NFS share.


[root@VIRTCENT07:/var/www/html/jokefire.com] #ls -l
total 15814
lrwxrwxrwx  1 root   apache   36 May 30 00:11 blog -> 
/var/www/html/jokefire.com/wordpress
drwxr-xr-x  2 root   apache  512 May 31 23:50 bluethundr
-rw-r--r--  1 root   apache0 May 29 09:00 check.txt
lrwxrwxrwx  1 root   apache   16 May 29 09:00 forums -> /var/www2/phpBB3
-rw-r--r--  1 root   apache3 Jun  1 21:19 hi.html
-rw-r--r--  1 root   apache3 Jun  1 21:51 index.html
-rw-r--r--  1 root   apache  2764167 May 30 00:07 latest.tar.gz
drwxr-xr-x 14 root   apache 1024 May 29 10:08 mediawiki-1.16.5
-rw-r--r--  1 root   apache 13235937 May  5 01:37 mediawiki-1.16.5.tar.gz
drwxr-xr-x  2 root   apache  512 May 29 18:42 mkdir
drwxr-xr-x  6 root   apache  512 May 29 18:52 smarty
drwxr-xr-x  4 root   apache  512 Feb 11 16:44 Smarty-3.0.7
-rw-r--r--  1 root   apache   135613 Feb 11 17:09 Smarty-3.0.7.tar.gz
lrwxrwxrwx  1 root   apache   17 May 30 01:11 store -> /var/www2/magento
lrwxrwxrwx  1 root   apache   43 May 29 09:03 wiki -> 
/var/www/html/jokefire.com/mediawiki-1.16.5
drwxr-xr-x  5 apache apache 1024 May 30 01:09 wordpress


I'd certainly appreciate any tips you might have. I'm really ripping my hair 
out over this one!

tim

-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 Redirect / to the correct vhost.

Ah ha! The issue was that doing "ServerAlias *" crashes Apache with no error 
log. ServerAlias apparently needs more than just a
single wildcard character.  Putting the below  entry after the 
last  works great!  Sweet.


  ServerName my-catch-all-dummy-domain.com
  ServerAlias*.com *.net *.org *.co *.mobi *.info *.me *.us *.biz *.tv 
*.ws
  RewriteEngine  On
  RewriteRule.* http://www.mydomain.com%{REQUEST_URI} [L,R=301]
  ErrorLog   /var/log/httpd/error_log
  CustomLog  /var/log/httpd/access_log combined


Now I cannot do the same thing for the 443 virtual host section - adding the 
below  section crashes Apache with the
below strange error:

[Thu Jun 02 04:55:13 2011] [error] Illegal attempt to re-initialise SSL for 
server (theoretically shouldn't happen!)


  ServerName my-catch-all-dummy-domain-SSL.com
  ServerAlias*.com *.net *.org *.co *.mobi *.info *.me *.us *.biz *.tv 
*.ws
  RewriteEngine  On
  RewriteRule.* https://www.mydomain.com%{REQUEST_URI} [L,R=301]
  ErrorLog   /var/log/httpd/error_log
  CustomLog  /var/log/httpd/access_log combined



-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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 1.2.2
Compiled using: APR 1.2.2, APR-Util 1.2.2
Architecture:   32-bit
Server MPM: Prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/opt/apache"
 -D SUEXEC_BIN="/opt/apache/bin/suexec"
 -D DEFAULT_PIDLOG="/var/log/logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/log/logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd2.conf"
user@testbuild:/home/user/apache2-2.2.18 # cls -r

Build is OK but my questions are:
How I can change variables like DEFAULT_PIDLOG, DEFAULT_ERRORLOG
during the building of apache2?

I know that I can change that variables during the starting of httpd2 like
/opt/apache/bin/httpd2 -D DEFAULT_PIDLOG 
vim but when I am checking whether httpd2 is running that output is:
linux:~ # ps -ef | grep http
root 30483 1  0 09:03 ?00:00:00 /opt/apache/bin/httpd2
-f /etc/apache2/conf.d/mod_unity.conf -D
DEFAULT_PIDLOG=/var/run/httpd2.pid
apache   30490 30483  0 09:03 ?00:00:00 /opt/apache/bin/httpd2
-f /etc/apache2/conf.d/mod_unity.conf -D
DEFAULT_PIDLOG=/var/run/httpd2.pid
apache   30491 30483  0 09:03 ?00:00:00 /opt/apache/bin/httpd2
-f /etc/apache2/conf.d/mod_unity.conf -D
DEFAULT_PIDLOG=/var/run/httpd2.pid
apache   30492 30483  0 09:03 ?00:00:00 /opt/apache/bin/httpd2
-f /etc/apache2/conf.d/mod_unity.conf -D
DEFAULT_PIDLOG=/var/run/httpd2.pid
apache   30493 30483  0 09:03 ?00:00:00 /opt/apache/bin/httpd2
-f /etc/apache2/conf.d/mod_unity.conf -D
DEFAULT_PIDLOG=/var/run/httpd2.pid
apache   30494 30483  0 09:03 ?00:00:00 /opt/apache/bin/httpd2
-f /etc/apache2/conf.d/mod_unity.conf -D
DEFAULT_PIDLOG=/var/run/httpd2.pid
root 30510 28310  0 09:03 pts/200:00:00 grep http
linux:~ #

Is it possible someone hide the -D options so that it will not be
visible over ps -ef output?

Thank you in advance

-- 
Best Regards / S pozdravem
Petr Hracek

-
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-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org