Re: [us...@httpd] Unable to compile Apache-2.2.11 on Windows using Cygwin

2009-01-06 Thread sathya sai
Thanks a lot William !!

On Tue, Jan 6, 2009 at 12:39 PM, William A. Rowe, Jr.
wrote:

> sathya sai wrote:
> > Thanks William for your sustained support :-)
> >
> > Could you please tell me from where can I download -win32-src-r2.zip
> > file with corrections. And just curious, probably by when would this be
> > available.
>
> Already available here;
>
> http://www.apache.org/dist/httpd/
>
> The original flavor (not -r2) should disappear tomorrow after the mirrors
> sync up completely.
>
>
> -
> 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
>
>


AW: [us...@httpd] Can't compile libssl and libz into httpd 2.2.11

2009-01-06 Thread xPostings
Hi Williams

I understand your argument. But in my case I would like to compile libssl
into the httpd because of the criticial SSL/TLS vulnerability. Why that?
The answer is easy: Because I can only control the installed httpd but not
the installation of the debian boxes itself in the production enviroment.
So the only way to enforce that the right libssl is in place is to compile
it into httpd. So maybe the reason for my a little bit strange question is
now much clearer.
So, can anybody help me how I can compile the libssl and libz into httpd?

cheers
mike

> -Ursprüngliche Nachricht-
> Von: William A. Rowe, Jr. [mailto:wr...@rowe-clan.net]
> Gesendet: Freitag, 2. Januar 2009 15:48
> An: users@httpd.apache.org
> Betreff: Re: [us...@httpd] Can't compile libssl and libz into httpd
> 2.2.11
>
>
> xPostings wrote:
> >
> > I really don't know if it's only a config problem on my side or
> > if it's a change from apache 2.2.8 to 2.2.11:
> > How can I compile httpd WITHOUT any linkings to libssl and libz
> > (that means compile it into httpd). Also the httpd 2.2.8 is bigger
> > in filesize than 2.2.11 (bacause libz and libssl is not
> compiled into...)
> >
> > My box is a debian etch only basic netinstall with
>
> There were libz security flaws back in the early 1.1 and 1.2
> series and
> periodic security updates to libssl.  If you have the debian
> folks offering
> you updated / patched / secured flavor, why on earth would
> you want to lock
> into the flavor of the day and deprive yourself of the fixes
> to criticial
> SSL/TLS vulnerability fixes as more are discovered in the future?
>
>
> -
> 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
>
>


[us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Channel Five
Hi

I have the following URL's

http://www.mydomain.com/topic-guide.php
http://www.mydomain.com/topic-guide.php?section=2
http://www.mydomain.com/topic-guide.php?section=3
http://www.mydomain.com/topic-guide.php?section=4

I want to redirect all those ending in ?section=x to

http://www.mydomain.com/topic-guide.php

Basically I have content split across 4 pages that I want to redirect to a
single page

I'm running Apache 2.0.50 and everything I've tried so far hasn't worked.

Can anyone help?

Thanks

Edd


Re: [us...@httpd] help I do not understand

2009-01-06 Thread Krist van Besien
Here is your first mistake: You must enable name based virtual hosts
if you want to use them. You have the NameVritualhost directive
commented out.

> #NameVirtualHost *:80

Replace this with
NameVirtualhost *:80  (remove the #, in other words)

It is also better not to make your config dependent on your actual IP,
so modify your VirtualHost container:

> 

Replace this with


Do this for all your virtualhosts. The argument to NameVirtualHost and
VirtualHost must match.

Krist

-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
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: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Krist van Besien
On Tue, Jan 6, 2009 at 11:25 AM, Channel Five  wrote:
> Hi
>
> I have the following URL's
>
> http://www.mydomain.com/topic-guide.php
> http://www.mydomain.com/topic-guide.php?section=2
> http://www.mydomain.com/topic-guide.php?section=3
> http://www.mydomain.com/topic-guide.php?section=4

You have one url, with an optional parameter, called "section". This
parameter is handled by your php script.

> I want to redirect all those ending in ?section=x to
>
> http://www.mydomain.com/topic-guide.php

This is already done. Any URL of the form:
http://www.mydomain.com/topic-guide.php? will cause apache
to process topic-guide.php, with whatever passed as arguments passed
on to the script. It is up to your script to deal with the arguments.

Krist


-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
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: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Channel Five
Thanks Krist..

So basically I'm attempting the impossible?

On Tue, Jan 6, 2009 at 10:42 AM, Krist van Besien  wrote:

> On Tue, Jan 6, 2009 at 11:25 AM, Channel Five 
> wrote:
> > Hi
> >
> > I have the following URL's
> >
> > http://www.mydomain.com/topic-guide.php
> > http://www.mydomain.com/topic-guide.php?section=2
> > http://www.mydomain.com/topic-guide.php?section=3
> > http://www.mydomain.com/topic-guide.php?section=4
>
> You have one url, with an optional parameter, called "section". This
> parameter is handled by your php script.
>
> > I want to redirect all those ending in ?section=x to
> >
> > http://www.mydomain.com/topic-guide.php
>
> This is already done. Any URL of the form:
> http://www.mydomain.com/topic-guide.php? will cause apache
> to process topic-guide.php, with whatever passed as arguments passed
> on to the script. It is up to your script to deal with the arguments.
>
> Krist
>
>
> --
> krist.vanbes...@gmail.com
> kr...@vanbesien.org
> Bremgarten b. Bern, Switzerland
> --
> A: It reverses the normal flow of conversation.
> Q: What's wrong with top-posting?
> A: Top-posting.
> Q: What's the biggest scourge on plain text email discussions?
>
> -
> 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: [us...@httpd] sethandler server-status

2009-01-06 Thread Suresh Babu
Hai

Try this config


SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 127.0.0.1



2008/12/29 Andre Hübner 

> Hello,
>
> im looking for a way to disable the posibility for users to activate a
> server-status page within own virtual host.
> For now it is enough to add a .htaccess with content
>
> sethandler server-status
>
> i do not want that my users can see all what happens at apache-traffic.
> i can just only hide my own status from others but seems to be not enough.
> Is there something what i can do?
>
> Thanks,
> Andre
>
>
> -
> 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
>
>


-- 
With thanks & regards
D Suresh babu


Re: [us...@httpd] help I do not understand

2009-01-06 Thread john.swilt...@wanadoo.fr

Krist van Besien a écrit :

Here is your first mistake: You must enable name based virtual hosts
if you want to use them. You have the NameVritualhost directive
commented out.


#NameVirtualHost *:80


Replace this with
NameVirtualhost *:80  (remove the #, in other words)

It is also better not to make your config dependent on your actual IP,
so modify your VirtualHost container:





Replace this with


Do this for all your virtualhosts. The argument to NameVirtualHost and
VirtualHost must match.

Krist



I apply the changes. the same result


-
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: [us...@httpd] help I do not understand

2009-01-06 Thread Eric Covener
On Tue, Jan 6, 2009 at 9:27 AM, john.swilt...@wanadoo.fr
 wrote:

> I apply the changes. the same result

Paste your current virtual-host related config, and the URL you're requesting.

-- 
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: [us...@httpd] help I do not understand

2009-01-06 Thread john.swilt...@wanadoo.fr

Eric Covener a écrit :

On Tue, Jan 6, 2009 at 9:27 AM, john.swilt...@wanadoo.fr
 wrote:


I apply the changes. the same result


Paste your current virtual-host related config, and the URL you're requesting.


#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#
#ServerAdmin webmas...@dummy-host.example.com
#DocumentRoot /www/docs/dummy-host.example.com
#ServerName dummy-host.example.com
#ErrorLog logs/dummy-host.example.com-error_log
#CustomLog logs/dummy-host.example.com-access_log common
#

DocumentRoot "/home/renelacroute/public_html"
ServerName http://www.renelacroute.fr
ServerAlias http://renelacroute.fr
ServerAdmin postmas...@renelacroute.fr
ErrorLog logs/renelacroute.fr-error_log
CustomLog logs/renelacroute.fr-access_log common

allow from all
Options +Indexes



DocumentRoot "/home/fakessh/public_html"
ServerName http://www.fakessh.eu
ServerAlias http://fakessh.eu
ServerAdmin postmas...@fakessh.eu
ErrorLog logs/www.fakessh.eu-error_log
CustomLog logs/www.fakessh.eu-access_log common

allow from all
Options +Indexes




http://renelacroute.fr
http://www.renelacroute.fr
http://fakessh.eu
http://www.fakessh.eu


-
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: [us...@httpd] help I do not understand

2009-01-06 Thread Eric Covener
> ServerName http://www.fakessh.eu
> ServerAlias http://fakessh.eu

Maybe ServerAlias wants a simple hostname (doc implies this), and
doesn't interpret the protocol like ServerName does.

-- 
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: [us...@httpd] 32 bit Apache2.2.11 on 64 bit RHEL5.2

2009-01-06 Thread Vinay Purohit
Thanks Matt!!!

 

Is there any way to find the path for httpd? In my Application I asked
the path for httpd.conf, is there any way to reach httpd with that to
find out the apache web server mode? I assume the httpd.conf file may
not necessary be in /conf folder and hence I can NOT go
to../bin from the location of httpd.conf, right?

 

I would like to avoid asking the path for httpd along with httpd.conf. I
may search the httpd but there could be many httpd running in various
modes, right?

 

\Vinay

-Original Message-

From: Matthew A. Bockol [mailto:mboc...@carleton.edu] 

Sent: Friday, January 02, 2009 10:25 PM

To: users@httpd.apache.org

Subject: Re: [us...@httpd] 32 bit Apache2.2.11 on 64 bit RHEL5.2

 

 

Hi Vinay,

 

- Original Message -

From: "Vinay Purohit" 

To: users@httpd.apache.org

Sent: Friday, January 2, 2009 10:44:09 AM GMT -06:00 US/Canada Central

Subject: [us...@httpd] 32 bit Apache2.2.11 on 64 bit RHEL5.2 

 

 

>1) How to find the existing apache web server mode? (running command
'file httpd' from Apache -> >bin will give the mode. Is it correct?)

 

Yes. ldd /usr/sbin/httpd will also confirm that, showing you that it's
been linked to /lib64/ libraries.

 

 

>2) If we install Apache web server 2.2 on 64 bit RHEL5.2, what will be
its mode by default i.e., >default installation mode?

 

It will be 64 bit by default.  You could probably install the httpd
packages from 32bit RHEL5.2 and they would work so long as you included
all of the other 32 bit dependencies (and dependencies of dependencies).


 

 

>3) Can we convert its mode from 64 bit to 32 bit? i.e., is it possible
to have Apache web server >in 32 bit mode on 64 bit RHEL? 

 

You can't convert a binary from 64 to 32 bit, but you could either
install the 32 bit packages or build a 32bit httpd on 64 bit RHEL5.2

 

 

>4) If possible, how to do it?

 

I used the following config line to build 32 bit httpd on 64 bit RHEL:

 

./configure CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=m32 FCFLAGS=-m32
--prefix=/usr/local/httpd-2.2.11-32bit {plus any further configs you
need}

 

That should give you a 32 bit httpd. Note that you'll need to do similar
for any modules you compile against it (can't link 64 bit PHP to 32 bit
httpd for instance).

 

Matt

 

-

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: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Corey Shaw
Edd, 


   What you're attempting to do is possible using PHP.  The "header()" function 
allows you to accomplish what you're trying to do.  The definition is at  
http://us2.php.net/manual/en/function.header.php.  Putting "header('Location: 
location_to_go_to')" will redirect to wherever you point as long as you put it 
in the script before any HTTP headers are sent.  It can also use relative 
paths. 


Corey 


- Original Message - 
From: "Channel Five"  
To: users@httpd.apache.org 
Sent: Tuesday, January 6, 2009 3:58:45 AM GMT -07:00 US/Canada Mountain 
Subject: Re: [us...@httpd] 301 Redirect problem on Apache 2.0.50 

Thanks Krist.. 

So basically I'm attempting the impossible? 
  

On Tue, Jan 6, 2009 at 10:42 AM, Krist van Besien < krist.vanbes...@gmail.com > 
wrote: 



On Tue, Jan 6, 2009 at 11:25 AM, Channel Five < edd.daw...@gmail.com > wrote: 
> Hi 
> 
> I have the following URL's 
> 
> http://www.mydomain.com/topic-guide.php 
> http://www.mydomain.com/topic-guide.php?section=2 
> http://www.mydomain.com/topic-guide.php?section=3 
> http://www.mydomain.com/topic-guide.php?section=4 

You have one url, with an optional parameter, called "section". This 
parameter is handled by your php script. 


> I want to redirect all those ending in ?section=x to 
> 
> http://www.mydomain.com/topic-guide.php 

This is already done. Any URL of the form: 
http://www.mydomain.com/topic-guide.php ? will cause apache 
to process topic-guide.php, with whatever passed as arguments passed 
on to the script. It is up to your script to deal with the arguments. 

Krist 


-- 
krist.vanbes...@gmail.com 
kr...@vanbesien.org 
Bremgarten b. Bern, Switzerland 
-- 
A: It reverses the normal flow of conversation. 
Q: What's wrong with top-posting? 
A: Top-posting. 
Q: What's the biggest scourge on plain text email discussions? 

- 
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: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Brian Mearns
No, it sounds like you're attempting to do what is already being done.
As Krist said, any of those urls you specified will cause Apache to
invoke PHP for topic-guide.php, passing the URL specified section
value in the $_GET super global.

To illustrate this, just create a file on your server, say test.php,
with these 6 lines:



No browse to that page like:
http://www.mydomain.com/test.php
http://www.mydomain.com/test.php?section=1
http://www.mydomain.com/test.php?section=2
http://www.mydomain.com/test.php?section=3

Is that what you're looking for, or did I miss the point?

-Brian

--

Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/



On Tue, Jan 6, 2009 at 5:58 AM, Channel Five  wrote:
> Thanks Krist..
>
> So basically I'm attempting the impossible?
>
> On Tue, Jan 6, 2009 at 10:42 AM, Krist van Besien
>  wrote:
>>
>> On Tue, Jan 6, 2009 at 11:25 AM, Channel Five 
>> wrote:
>> > Hi
>> >
>> > I have the following URL's
>> >
>> > http://www.mydomain.com/topic-guide.php
>> > http://www.mydomain.com/topic-guide.php?section=2
>> > http://www.mydomain.com/topic-guide.php?section=3
>> > http://www.mydomain.com/topic-guide.php?section=4
>>
>> You have one url, with an optional parameter, called "section". This
>> parameter is handled by your php script.
>>
>> > I want to redirect all those ending in ?section=x to
>> >
>> > http://www.mydomain.com/topic-guide.php
>>
>> This is already done. Any URL of the form:
>> http://www.mydomain.com/topic-guide.php? will cause apache
>> to process topic-guide.php, with whatever passed as arguments passed
>> on to the script. It is up to your script to deal with the arguments.
>>
>> Krist
>>
>>
>> --
>> krist.vanbes...@gmail.com
>> kr...@vanbesien.org
>> Bremgarten b. Bern, Switzerland
>> --
>> A: It reverses the normal flow of conversation.
>> Q: What's wrong with top-posting?
>> A: Top-posting.
>> Q: What's the biggest scourge on plain text email discussions?
>>
>> -
>> 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



Re: AW: [us...@httpd] Can't compile libssl and libz into httpd 2.2.11

2009-01-06 Thread William A. Rowe, Jr.
xPostings wrote:
> Hi Williams
> 
> I understand your argument. But in my case I would like to compile libssl
> into the httpd because of the criticial SSL/TLS vulnerability. Why that?
> The answer is easy: Because I can only control the installed httpd but not
> the installation of the debian boxes itself in the production enviroment.
> So the only way to enforce that the right libssl is in place is to compile
> it into httpd. So maybe the reason for my a little bit strange question is
> now much clearer.
> So, can anybody help me how I can compile the libssl and libz into httpd?

Dirt simple stupid answer, build and libssl and libz into a directory that
you explicitly reference --with-openssl= --with-zlib=, but build only the
static objects.

-
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: [us...@httpd] help I do not understand

2009-01-06 Thread john.swilt...@wanadoo.fr

Eric Covener a écrit :

ServerName http://www.fakessh.eu
ServerAlias http://fakessh.eu


Maybe ServerAlias wants a simple hostname (doc implies this), and
doesn't interpret the protocol like ServerName does.


and how to do
it is a mysterious


-
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: [us...@httpd] help I do not understand

2009-01-06 Thread Eric Covener
On Tue, Jan 6, 2009 at 11:00 AM, john.swilt...@wanadoo.fr
 wrote:
> Eric Covener a écrit :
>>>
>>> ServerName http://www.fakessh.eu
>>> ServerAlias http://fakessh.eu
>>
>> Maybe ServerAlias wants a simple hostname (doc implies this), and
>> doesn't interpret the protocol like ServerName does.
>>
> and how to do
> it is a mysterious

ServerAlias fakessh.eu

-- 
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: [us...@httpd] help I do not understand

2009-01-06 Thread Norman Peelman

john.swilt...@wanadoo.fr wrote:

Eric Covener a écrit :

ServerName http://www.fakessh.eu
ServerAlias http://fakessh.eu


Maybe ServerAlias wants a simple hostname (doc implies this), and
doesn't interpret the protocol like ServerName does.


and how to do
it is a mysterious


-
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



ServerName fakessh.eu
ServerAlias www.fakessh.eu

...and if there is already a 'Listen 80' directive in the config (it may 
be loaded by an include) then you only need:


NameVirtualHost *

and




--
Norman
Registered Linux user #461062

-
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: [us...@httpd] help I do not understand

2009-01-06 Thread swilting
I just change my dns I add a CNAME between fakessh.eu and www.fakessh.eu

I wait until tomorrow spread

I have ServerAlias Directive fakessh.eu
Le mardi 06 janvier 2009 à 13:08 -0500, Eric Covener a écrit :
> On Tue, Jan 6, 2009 at 11:00 AM, john.swilt...@wanadoo.fr
>  wrote:
> > Eric Covener a écrit :
> >>>
> >>> ServerName http://www.fakessh.eu
> >>> ServerAlias http://fakessh.eu
> >>
> >> Maybe ServerAlias wants a simple hostname (doc implies this), and
> >> doesn't interpret the protocol like ServerName does.
> >>
> > and how to do
> > it is a mysterious
> 
> ServerAlias fakessh.eu
> 



-
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



[us...@httpd] Virtual Hosts Problem - Many hours - No Luck

2009-01-06 Thread Joseph Morgan

I am having a problem configuring virtual hosts on my Apache 2.2.6 
server.  Apache ALWAYS serves up the first virtual host regardless of 
the actual host requested.

Here is the small snippet from my http.conf file (just so you know I did 
it, but please, if something is wrong...):

# Virtual hosts

Include conf/extra/httpd-vhosts.conf


Here is the contents of the httpd-vhosts.conf file:

NameVirtualHost *:80

# 
=



ServerAdmin ad...@prosportsresumes.com

DocumentRoot G:/webroot/htdocs/ProSportsResumes

ServerName www.ProSportsResumes.com



# 
=



ServerAdmin ci...@cisly.com

DocumentRoot G:/webroot/htdocs/Cisly

ServerName www.Cisly.com



# 
=



ServerAdmin ad...@vizbizcardz.com

DocumentRoot G:/webroot/htdocs/VizBizCardz

ServerName www.VizBizCardz.com



# 
=

One post suggested I change all "*:80" to simply "*", but that didn't 
solve it.

Here is the contents of my hosts file:

127.0.0.1localhost

127.0.0.1www.prosportsresumes.com

127.0.0.1www.cisly.com

127.0.0.1www.vizbizcardz.com


At first, I thought it might have something to do with my hosts file, so 
I've also tried using the actual IP address of the web server in my LAN, 
which is a 192.168.x.x number, but that didn't solve anything, though it 
did surprise me it works the same both ways (I'm a networking idiot!)

Domains are registered at GoDaddy, and forwarded to the IP of my 
router.  This all sits behind a DLINK DIR-615 router that uses virtual 
server routing so requests on port 80 are forwarded the web server.

With all of this said, I have Apache installed on my development 
machine, and the setup identical (except for DocumentRoot), and if I add 
any host entry into my dev machine's hosts file, fire up a browser and 
hit the host, it works just fine.  For some reason, something on the way 
to my actual web server breaks horribly, and I suspect it is my 
configuration.

Feel free the visit any of the 3 sites, and it is ghastly ugly since 
things don't seem to be working just right.  It cannot seem to find any 
files such as CSS files, images, etc.Notice only the basic HTML of 
the ProSportsResumes site is served, regardless of the actual host hit.  
If I change the order of the virtual host entries, then that site will 
be the one served for all hosts.

Any help is appreciated.

Joe Morgan





_
Send e-mail faster without improving your typing skills.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008

Re: [us...@httpd] Virtual Hosts Problem - Many hours - No Luck

2009-01-06 Thread Rob
It Needs to look something like this:



ServerAdmin ad...@prosportsresumes.com
DocumentRoot G:/webroot/htdocs/ProSportsResumes
ServerName www.ProSportsResumes.com 



127.0.0.1 should be ur servers ip


On Wed, Jan 7, 2009 at 4:24 PM, Joseph Morgan wrote:

>  I am having a problem configuring virtual hosts on my Apache 2.2.6
> server. Apache ALWAYS serves up the first virtual host regardless of
> the actual host requested.
>
> Here is the small snippet from my http.conf file (just so you know I did
> it, but please, if something is wrong...):
>
> # Virtual hosts
>
> Include conf/extra/httpd-vhosts.conf
>
>
> Here is the contents of the httpd-vhosts.conf file:
>
> NameVirtualHost *:80
>
> #
> =
>
>
>
> ServerAdmin ad...@prosportsresumes.com
>
> DocumentRoot G:/webroot/htdocs/ProSportsResumes
>
> ServerName www.ProSportsResumes.com
>
>
>
> #
> =
>
>
>
> ServerAdmin ci...@cisly.com
>
> DocumentRoot G:/webroot/htdocs/Cisly
>
> ServerName www.Cisly.com
>
>
>
> #
> =
>
>
>
> ServerAdmin ad...@vizbizcardz.com
>
> DocumentRoot G:/webroot/htdocs/VizBizCardz
>
> ServerName www.VizBizCardz.com
>
>
>
> #
> =
>
> One post suggested I change all "*:80" to simply "*", but that didn't
> solve it.
>
> Here is the contents of my hosts file:
>
> 127.0.0.1 localhost
>
> 127.0.0.1 www.prosportsresumes.com
>
> 127.0.0.1 www.cisly.com
>
> 127.0.0.1 www.vizbizcardz.com
>
>
> At first, I thought it might have something to do with my hosts file, so
> I've also tried using the actual IP address of the web server in my LAN,
> which is a 192.168.x.x number, but that didn't solve anything, though it
> did surprise me it works the same both ways (I'm a networking idiot!)
>
> Domains are registered at GoDaddy, and forwarded to the IP of my
> router. This all sits behind a DLINK DIR-615 router that uses virtual
> server routing so requests on port 80 are forwarded the web server.
>
> With all of this said, I have Apache installed on my development
> machine, and the setup identical (except for DocumentRoot), and if I add
> any host entry into my dev machine's hosts file, fire up a browser and
> hit the host, it works just fine. For some reason, something on the way
> to my actual web server breaks horribly, and I suspect it is my
> configuration.
>
> Feel free the visit any of the 3 sites, and it is ghastly ugly since
> things don't seem to be working just right. It cannot seem to find any
> files such as CSS files, images, etc. Notice only the basic HTML of
> the ProSportsResumes site is served, regardless of the actual host hit.
> If I change the order of the virtual host entries, then that site will
> be the one served for all hosts.
>
> Any help is appreciated.
>
> Joe Morgan
>
>
>
>
>
> --
> Send e-mail faster without improving your typing skills. Get your Hotmail(R)
> account.
>


Re: [us...@httpd] Virtual Hosts Problem - Many hours - No Luck

2009-01-06 Thread Joseph Morgan

Well, that seems to have done something, as now no virtual host is 
working it is serving up a default HTML page at the base of the 
document root.  So, for example, my directory structure is:

g:/webroot/htdocs/web_sites

With this change, it is now serving up

g:/webroot/htdocs/index.html

So, it is almost as if the DocumentRoot is being ignored.  Do I need the 
ServerPath directive for each one?

Rob wrote:
> It Needs to look something like this:
>
> 127.0.0.1:80 >
>
> ServerAdmin ad...@prosportsresumes.com 
> DocumentRoot G:/webroot/htdocs/ProSportsResumes
> ServerName www.ProSportsResumes.com 
>
>
>
> 127.0.0.1 should be ur servers ip
>
>
> On Wed, Jan 7, 2009 at 4:24 PM, Joseph Morgan 
> > wrote:
>
> I am having a problem configuring virtual hosts on my Apache 2.2.6
> server. Apache ALWAYS serves up the first virtual host regardless of
> the actual host requested.
>
> Here is the small snippet from my http.conf file (just so you know
> I did
> it, but please, if something is wrong...):
>
> # Virtual hosts
>
> Include conf/extra/httpd-vhosts.conf
>
>
> Here is the contents of the httpd-vhosts.conf file:
>
> NameVirtualHost *:80
>
> #
> 
> =
>
>
>
> ServerAdmin ad...@prosportsresumes.com
> 
>
> DocumentRoot G:/webroot/htdocs/ProSportsResumes
>
> ServerName www.ProSportsResumes.com 
>
>
>
> #
> 
> =
>
>
>
> ServerAdmin ci...@cisly.com 
>
> DocumentRoot G:/webroot/htdocs/Cisly
>
> ServerName www.Cisly.com 
>
>
>
> #
> 
> =
>
>
>
> ServerAdmin ad...@vizbizcardz.com 
>
> DocumentRoot G:/webroot/htdocs/VizBizCardz
>
> ServerName www.VizBizCardz.com 
>
>
>
> #
> 
> =
>
> One post suggested I change all "*:80" to simply "*", but that didn't
> solve it.
>
> Here is the contents of my hosts file:
>
> 127.0.0.1 localhost
>
> 127.0.0.1 www.prosportsresumes.com 
>
> 127.0.0.1 www.cisly.com 
>
> 127.0.0.1 www.vizbizcardz.com 
>
>
> At first, I thought it might have something to do with my hosts
> file, so
> I've also tried using the actual IP address of the web server in
> my LAN,
> which is a 192.168.x.x number, but that didn't solve anything,
> though it
> did surprise me it works the same both ways (I'm a networking idiot!)
>
> Domains are registered at GoDaddy, and forwarded to the IP of my
> router. This all sits behind a DLINK DIR-615 router that uses virtual
> server routing so requests on port 80 are forwarded the web server.
>
> With all of this said, I have Apache installed on my development
> machine, and the setup identical (except for DocumentRoot), and if
> I add
> any host entry into my dev machine's hosts file, fire up a browser
> and
> hit the host, it works just fine. For some reason, something on
> the way
> to my actual web server breaks horribly, and I suspect it is my
> configuration.
>
> Feel free the visit any of the 3 sites, and it is ghastly ugly since
> things don't seem to be working just right. It cannot seem to find
> any
> files such as CSS files, images, etc. Notice only the basic HTML of
> the ProSportsResumes site is served, regardless of the actual host
> hit.
> If I change the order of the virtual host entries, then that site
> will
> be the one served for all hosts.
>
> Any help is appreciated.
>
> Joe Morgan
>
>
>
>
>
> 
> Send e-mail faster without improving your typing skills. Get your
> Hotmail® account.
> 
>
>


_
Send e-mail faster without improving your typing skills.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008

Re: [us...@httpd] Virtual Hosts Problem - Many hours - No Luck

2009-01-06 Thread Jim Walls

Joseph Morgan wrote:

I am having a problem configuring virtual hosts on my Apache 2.2.6
server. Apache ALWAYS serves up the first virtual host regardless of
the actual host requested.


Well, that does not look close to my Virtual Hosts section of my 
httpd.conf - excerpted here:


NameVirtualHost *


 ServerName no.name
 DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"



 ServerName www.k6ccc.org
 ServerAlias k6ccc.org *.k6ccc.org
 DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/k6ccc.org"



 ServerName www.thewallshouse.org
 ServerAlias thewallshouse.org *.thewallshouse.org
 DocumentRoot "C:/Program Files/Apache 
Group/Apache2/htdocs/TheWallsHouse.org"




 ServerName www.wc-phantoms.org
 ServerAlias wc-phantoms.org *.wc-phantoms.org
 DocumentRoot "C:/Program Files/Apache 
Group/Apache2/htdocs/wc-phantoms.org"





The first is the default if someone comes in looking for the IP 
address.  This works...


--
73
-
Jim Walls - K6CCC
j...@k6ccc.org
Ofc:  818-548-4804
http://home.earthlink.net/~k6ccc
AMSAT Member 32537 - WSWSS Member 395


-
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: [us...@httpd] Virtual Hosts Problem - Many hours - No Luck

2009-01-06 Thread Joseph Morgan

Thanks, Jim.  I assume you have something similar to an index.html in 
each document root?

I actually tried using the NameVirtualHost *, but it didn't change a 
thing.  Apache still served the first virtual host (and poorly at that) 
in the list.

Someone has suggested to use 127.0.0.1:80, and that serves up the 
index.html at the common document root (G:/webroot/htdocs)


Jim Walls wrote:
> Joseph Morgan wrote:
>> I am having a problem configuring virtual hosts on my Apache 2.2.6
>> server. Apache ALWAYS serves up the first virtual host regardless of
>> the actual host requested.
>
> Well, that does not look close to my Virtual Hosts section of my 
> httpd.conf - excerpted here:
>
> NameVirtualHost *
>
> 
>  ServerName no.name
>  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
> 
>
> 
>  ServerName www.k6ccc.org
>  ServerAlias k6ccc.org *.k6ccc.org
>  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/k6ccc.org"
> 
>
> 
>  ServerName www.thewallshouse.org
>  ServerAlias thewallshouse.org *.thewallshouse.org
>  DocumentRoot "C:/Program Files/Apache 
> Group/Apache2/htdocs/TheWallsHouse.org"
> 
>
> 
>  ServerName www.wc-phantoms.org
>  ServerAlias wc-phantoms.org *.wc-phantoms.org
>  DocumentRoot "C:/Program Files/Apache 
> Group/Apache2/htdocs/wc-phantoms.org"
> 
>
>
>
> The first is the default if someone comes in looking for the IP 
> address.  This works...
>


_
Send e-mail anywhere. No map, no compass.
http://windowslive.com/oneline/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008

Re: [us...@httpd] Virtual Hosts Problem - Many hours - No Luck

2009-01-06 Thread Joseph Morgan

Jim here is my changed httpd.conf file:

NameVirtualHost *

# 
=

ServerAdmin ad...@prosportsresumes.com
DocumentRoot G:/webroot/htdocs/ProSportsResumes
ServerName www.ProSportsResumes.com


# 
=

ServerAdmin ci...@cisly.com
DocumentRoot G:/webroot/htdocs/Cisly
ServerName www.Cisly.com


# 
=

ServerAdmin ad...@vizbizcardz.com
DocumentRoot G:/webroot/htdocs/VizBizCardz
ServerName www.VizBizCardz.com

# 
=

Please go visit the site and I've noticed something.   When I use 
IE, regardless of the host I go after, I get a mangled version of the 
ProSportsResumes site.  When I use FireFox, I get a perfect version of 
the Cisly (my mom's) site.

WTH?
Joe

Jim Walls wrote:
> Joseph Morgan wrote:
>> I am having a problem configuring virtual hosts on my Apache 2.2.6
>> server. Apache ALWAYS serves up the first virtual host regardless of
>> the actual host requested.
>
> Well, that does not look close to my Virtual Hosts section of my 
> httpd.conf - excerpted here:
>
> NameVirtualHost *
>
> 
>  ServerName no.name
>  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
> 
>
> 
>  ServerName www.k6ccc.org
>  ServerAlias k6ccc.org *.k6ccc.org
>  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/k6ccc.org"
> 
>
> 
>  ServerName www.thewallshouse.org
>  ServerAlias thewallshouse.org *.thewallshouse.org
>  DocumentRoot "C:/Program Files/Apache 
> Group/Apache2/htdocs/TheWallsHouse.org"
> 
>
> 
>  ServerName www.wc-phantoms.org
>  ServerAlias wc-phantoms.org *.wc-phantoms.org
>  DocumentRoot "C:/Program Files/Apache 
> Group/Apache2/htdocs/wc-phantoms.org"
> 
>
>
>
> The first is the default if someone comes in looking for the IP 
> address.  This works...
>


_
Send e-mail faster without improving your typing skills.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008

[us...@httpd] Lags on simple static file requests

2009-01-06 Thread Paul Prescod
I grep my logs every day for slow queries. Sometimes I see a dynamic
request in there and I go and optimize the code. But more concerning
is when I see simple serving of very small static files on a very
underloaded machine. I am looking for hints about the source.

For example, here's an ordinary request at 22:22:57:

0 20903 - 70.49.41.94 [06/Jan/2009:22:22:57 -0500] "GET
/javascripts/jquery.scrollTo-min.js HTTP/1.1" 304 0

Less than 1 sec to process, returned 304 rather than the body. PID 20903.

A second later, another process does another ordinary response:

0 20892 - 72.204.24.191 [06/Jan/2009:22:22:58 -0500] "GET
/stylesheets/master.css?1231298577 HTTP/1.1" 200 3359

0 seconds to process, PID 20892, connection will be closed, etc,
status was 200, 3359 bytes returned.

But also at that same time we have the original process stalling for
119(!) seconds::

119 20903 X 72.204.24.191 [06/Jan/2009:22:22:58 -0500] "GET
/images/about_small.jpg HTTP/1.1" 200 53644

My question is what is Apache doing in those 129 seconds?

All of these files come from the same disk and should be in OS cache.

You might ask what was going on with the machine at that time? Was it
overloaded?

Time: 22:22:59
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
  15.830.002.300.202.10   79.56

Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb   0.00 0.00 0.00  0  0
sdc   0.00 0.00 0.00  0  0
sda1 22.95 0.00   285.83  0   1432
sdi   0.00 0.00 0.00  0  0
sdk   2.40 0.0030.34  0152

Time: 22:23:04
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
   7.020.000.705.721.30   85.26

Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb  13.25 0.00   183.13  0912
sdc   0.00 0.00 0.00  0  0
sda1  3.41 0.00   128.51  0640
sdi   0.00 0.00 0.00  0  0
sdk  10.64 0.00   179.92  0896

Time: 22:23:09
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
  10.150.000.800.400.70   87.96

Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb   5.40 0.00   104.00  0520
sdc   0.00 0.00 0.00  0  0
sda1  3.40 0.0076.80  0384
sdi   0.00 0.00 0.00  0  0
sdk   0.00 0.00 0.00  0  0

$ /usr/sbin/httpd -v
Server version: Apache/2.2.3
Server built:   Jun 26 2007 19:24:58

The only exotic module we're using is Passenger Phusion.

I can send more configuration information through private email to
anyone interested.

 Paul Prescod

-
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: [us...@httpd] Lags on simple static file requests

2009-01-06 Thread Scott Gifford
"Paul Prescod"  writes:

> I grep my logs every day for slow queries. Sometimes I see a dynamic
> request in there and I go and optimize the code. But more concerning
> is when I see simple serving of very small static files on a very
> underloaded machine. I am looking for hints about the source.

Hi Paul,

I have noticed these lines in my logs occasionally, too.  I have
always chalked them up to slow clients, or clients who fall off the
network after sending the request.

I don't know the details of exactly how Apache calculates this time,
though.  Perhaps somebody more familiar with the internals of Apache
can provide some details.

-Scott.

-
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: [us...@httpd] help I do not understand

2009-01-06 Thread Krist van Besien
On Tue, Jan 6, 2009 at 3:40 PM, Eric Covener  wrote:
>> ServerName http://www.fakessh.eu
>> ServerAlias http://fakessh.eu
>
> Maybe ServerAlias wants a simple hostname (doc implies this), and
> doesn't interpret the protocol like ServerName does.

Both servername and serveralias just take a hostname as argument.
(I've never seen http:;//... added)

Krist

-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
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: [us...@httpd] Virtual Hosts Problem - Many hours - No Luck

2009-01-06 Thread Krist van Besien
On Wed, Jan 7, 2009 at 5:16 AM, Joseph Morgan  wrote:
> Jim here is my changed httpd.conf file:
>
> NameVirtualHost *
>
> #
> =
>
> ServerAdmin ad...@prosportsresumes.com
> DocumentRoot G:/webroot/htdocs/ProSportsResumes
> ServerName www.ProSportsResumes.com
>
>
> #
> =
>
> ServerAdmin ci...@cisly.com
> DocumentRoot G:/webroot/htdocs/Cisly
> ServerName www.Cisly.com
>
>
> #
> =
>
> ServerAdmin ad...@vizbizcardz.com
> DocumentRoot G:/webroot/htdocs/VizBizCardz
> ServerName www.VizBizCardz.com
>
> #
> =
>
> Please go visit the site and I've noticed something. When I use
> IE, regardless of the host I go after, I get a mangled version of the
> ProSportsResumes site. When I use FireFox, I get a perfect version of
> the Cisly (my mom's) site.

You haven't configured any virtualhosts. Just repeating DocumentRoot
and ServerName statements does not create a virtualhosts.

VirtualHosts are created using VirtualHost blocks. Read the
documentation and look at the examples given there and here.

Krist


-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

-
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