Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Anazys - Apache
Thanks for your answer. I already try this but when I write this  
script, I don't know how to handle the loop with stdin (in the shell  
script or in the java file ?) :

I try this in the shell :
#!/bin/sh
while read text
do
java -classpath /path/to/java/class/ MainClass
done


But it don't seem to work..

I didn't manage to configure the lock file, could it be the main  
problem ?
I just add "RewriteLock /etc/apache2/myLock.lock" in my http.conf  
file. But apache server simply don't start with that, without any  
error in the log file. I try creating the file or not, with chmod 777.  
But I think I miss something.


Somebody could help ?
Thanks
Cedric

Le 15 juil. 08 à 13:28, Eric Covener a écrit :

On Tue, Jul 15, 2008 at 4:26 AM, Anazys - Apache <[EMAIL PROTECTED]>  
wrote:

Hi all,

I try tu use a RewriteMap to rewrite dynamically urls on MacOS 10.5  
Leopard

Server. The code is really simple in the http.conf file :

  RewriteMapmymap   prg:/path/to/map.class
  RewriteRule   ^/path/(.*)$  /path/page?${mymap:$1}

But when I launch Apache, I have this message in error log :
  [Mon Jul 14 15:47:43 2008] [error] (86)Bad CPU type in  
executable:

exec of '/etc/apache2/Main.class' failed

Anybody knows what could be the problem ?
Is it possible tu use a Java file for RewriteMap ?



You need to write a shell script that launches java class, and use the
script in your Apache config. Class files are not executables.


--
Eric Covener
[EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] virtual instances

2008-07-16 Thread Melanie Pfefer
Hi,

I want to use virtual servers on apache.

So I install one server and have several virtual instances each one running on 
a different port.

1] once apache is installed, what needs to be done to create these virtual 
instances?
2] each virtual instance should have an htdocs where to put documents. How to 
do this?

Thank you for your help



  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Davide Bianchi

Melanie Pfefer wrote:

I want to use virtual servers on apache.

So I install one server and have several virtual instances each one running on 
a different port.


Hu... why? You can have multiple sites (Virtual HOSTS) without the need 
for multiple 'instances' of apache running.


Why don't you read the documentation for Virtual Hosts? Otherwise, 
explain your problem.


Davide

--
Windows XP: Technology by NT, interface by Fisher-Price

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Melanie Pfefer
Hi,

I added these lines:


Listen 80
Listen 81

NameVirtualHost 10.0.100.4:80
NameVirtualHost 10.0.100.4:81


ServerName zeus
DocumentRoot /usr/local/apache2/htdocs



ServerName zeus
DocumentRoot /usr/local/apache2/htdocs1



When I access http://zeus:80 I get the “It works”. When I access 
http://zeus:81, the logs show:
[Wed Jul 16 09:37:18 2008] [error] [client 172.21.194.71] client denied by 
server configuration: /usr/local/apache2/htdocs1/

Any idea please?
thanks



--- On Wed, 16/7/08, Davide Bianchi <[EMAIL PROTECTED]> wrote:

> From: Davide Bianchi <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] virtual instances
> To: "Melanie Pfefer" <[EMAIL PROTECTED]>
> Cc: users@httpd.apache.org
> Date: Wednesday, 16 July, 2008, 10:24 AM
> Melanie Pfefer wrote:
> > I want to use virtual servers on apache.
> > 
> > So I install one server and have several virtual
> instances each one running on a different port.
> 
> Hu... why? You can have multiple sites (Virtual HOSTS)
> without the need 
> for multiple 'instances' of apache running.
> 
> Why don't you read the documentation for Virtual Hosts?
> Otherwise, 
> explain your problem.
> 
> Davide
> 
> -- 
> Windows XP: Technology by NT, interface by Fisher-Price
> 
> -
> 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: [EMAIL PROTECTED]
>"   from the digest:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Krist van Besien
On Wed, Jul 16, 2008 at 09:50, Melanie Pfefer
<[EMAIL PROTECTED]> wrote:

> When I access http://zeus:80 I get the "It works". When I access 
> http://zeus:81, the logs show:
> [Wed Jul 16 09:37:18 2008] [error] [client 172.21.194.71] client denied by 
> server configuration: /usr/local/apache2/htdocs1/

There is something in your config that blocks access to
/usr/local/apache2/htdocs1/

A default apache usually comes with something like thisin its config:


  Order Allow,Deny
  Deny from All


  Order Allow,Deny
  Allow from All


This disallows access in general, and allows it again for your document root.

If you add a virtual server with a different document root you need to
add access to this directory too:


  Order Allow,Deny
  Allow from All


You should also make sure that your second document root (htdocs1) is
readable by the user the apache daemon runs as.

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Davide Bianchi

Melanie Pfefer wrote:

I added these lines:

Listen 80
Listen 81

NameVirtualHost 10.0.100.4:80
NameVirtualHost 10.0.100.4:81


ServerName zeus
DocumentRoot /usr/local/apache2/htdocs



ServerName zeus
DocumentRoot /usr/local/apache2/htdocs1


When I access http://zeus:80 I get the “It works”. When I access 
http://zeus:81, the logs show:
[Wed Jul 16 09:37:18 2008] [error] [client 172.21.194.71] client denied by 
server configuration: /usr/local/apache2/htdocs1/


Check the error_log, there should be a better error message than 'server 
configuration'. Also, usually you need to have a little more information 
in the VHost configuration (minimal, a  block with the 
permissions for the DocumentRoot)


Check also the permissions on the htdocs1 directory.

Davide

--
She got her looks from her father. He's a plastic surgeon.
-- Julius Henry "Groucho" Marx (http://en.wikiquote.org/wiki/Groucho_Marx)

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Questions on upgrading Apache version 1.3.x to Version 2.0.x

2008-07-16 Thread Krist van Besien
On Tue, Jul 15, 2008 at 23:49, Sutida Yenjaichon <[EMAIL PROTECTED]> wrote:
> I have downloaded the Apache version 2.0.63 to replace the Apache version
> 1.3.x. It works except the ASP part. The informaiton entered on the web has
> not been posted to the database. And the email function does not work.
> Emails couldn't be sent out.
>
> I am so new with Apache and Web page development. And I have just taken the
> web site maintenance at work. It's frustrated since I need to search this
> out myself. There is no internal support on Apache within the company.

ASP is not supported by apache, so will never work on a default apache
installation. You old server probably had some add-on to enable it to
process asp pages, and you need to find out what this add-on is, and
how to upgrade it to apache 2.0.x

Krist

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] proxypass problems

2008-07-16 Thread Chris Cohen

Replaying to myself... after some coffee I figured out I missed a slash.
ProxyHTMLURLMap /mirror/ / and the links are ok.
So theres only the icons problem left.
I tried something like
ProxyHTMLURLMap /mirror/icons/ /icons and ../icons but neither of them 
works.

It looks like its getting ignored. Maybe because of the /mirror/ / rules?
Apache on the internal server looks for /icons in /mirror/mirror/icons/.

Thanks
Chris

Chris Cohen schrieb:

Nick Kew schrieb:

On Tue, 15 Jul 2008 14:16:10 +0200
Chris Cohen <[EMAIL PROTECTED]> wrote:


 
Thanks for your reply. Although it's just cosmetical I don't mind 
reading some docs. So, could you please point me in the right 
direction? What can I use to rewrite the content? mod-rewrite?



http://www.apachetutor.org/admin/reverseproxies

  

Thanks.
I read your article two times now and have changed m configuration to 
the following:


   ServerAdmin [EMAIL PROTECTED]
   ProxyRequests Off
   ProxyPass   /   http://localhost:8080/mirror/
   ProxyHTMLURLMap http://localhost:8080/mirror /
   
   ProxyPassReverse /
   SetOutputFilter proxy-html
   ProxyHTMLURLMap /   /mirror/
   ProxyHTMLURLMap /mirror /
   Order deny,allow
   Allow from 10.1.0.0/16
   Deny from all
   


Should be ok if I understood you right. But as soon as I add 
ProxyHTMLURLMap /   /mirror/

the path is correct but the hostname removed. I get links like:
http://pub/mirror instead of http://mirror.example.org/pub/mirror/.
The /icons path is also still wrong.
Did I understand something wrong?




-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Subsecond request time logging

2008-07-16 Thread pthyseba
Hello,

After reading the Apache 2.0 log format documentation, I wanted to log
request info with sub-second (microsecond) precision.

Each request's processing time can be logged wityh microsecond resolution
using "%D".

Looking into "man strftime", however, I cannot find any formatting
directive that would allow %...T to log request arrival times with
sub-second precision.

Is it simply not possible to log the request arrival times with
microsecond precision as well or am I overlooking something?

Thanks,
Pieter

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Why is mod_limitipconn in Ubuntu 8.04 not working?

2008-07-16 Thread Jimmy Snell
Dear David,

I am the administrator of a website, and I found that some users make
lots of HTTP connections to my website. After searching for answers to
this problem, I tried to use your Apache module mod_limitipconn.

However, there is a problem for me to use this module: this module is
not working.

My environment

* Xen VPS, x86_64
* Ubuntu 8.04 hardy
* Apache/2.2.8, 64-bit, prefork MPM (I use the Ubuntu compiled
packages apache2-mpm-prefork 2.2.8-1ubuntu0.2, installed by apt-get)
* mod_limitipconn-0.23


The steps I took to install and use limitipconn.
1. Download the tarball from http://dominia.org/djao/limitipconn2.html
2. I build the source code as an Apache DSO:
   tar xjvf mod_limitipconn-0.23.tar.bz2
   cd mod_limitipconn-0.23
   make
Everything is OK till make done, there are no error messages.
   make install
There is a problem here; it said that there is no "LoadModule" in
/etc/apache2/httpd.conf

I checked this, and found this is because the Apache package in Ubuntu
had modified the default config file. In the default Apache tarball,
the config file is at /usr/local/apache2/conf/httpd.conf; all
configuration settings are stored in this single file.

However, in Ubuntu package, it changes this to another file:
/etc/apache2/apache2.conf. And it splits lots of parts into separated
files in several directories. And use "Include" directive in the
apache2.conf to include these separated files to form one logic config
file as the httpd.conf file in the tarball.

START of fragment in /etc/apache2/apache2.conf

...
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf
...

END of fragment in /etc/apache2/apache2.conf

Note, although there is also an "httpd.conf" file here, it is empty by default.

Obviously, the previous error is because it cannot find anything in
this "httpd.conf" file. So I copied the default httpd.conf file in the
Apache tarball (/usr/local/apache2/conf/httpd.conf) here; then run
"make install" again. After that, I diff-ed the httpd.conf files to
see what modifications had been made by the "make install". I found
there were some new lines added. Then, I put *ONLY* the new lines into
/etc/apache2/httpd.conf.

After I changed some settings, the /etc/apache2/httpd.conf.is looks like this:

START of file /etc/apache2/httpd.conf

ExtendedStatus On

LoadModule limitipconn_module /usr/lib/apache2/modules/mod_limitipconn.so

# mod_limitipconn

   MaxConnPerIP 3
   
   MaxConnPerIP 3
   


END of file /etc/apache2/httpd.conf

In my opinion, this file will be included by the "Include
/etc/apache2/httpd.conf" statement in the /etc/apache2/apache2.conf
file; so all the directives in it will be seen by Apache daemon.

Then, I started Apache, and there wasn't any error message; everything
seemed to go fine.

However, then I tried to test whether this module was working.
I used the "ab" command to test from my machine:
   ab -n 100 -c 100 http://www.myhost.com

Unfortunately, I found on my server that it showed there are 2620 HTTP
connections from my machine. During the ab command was running, I also
tried to visit http://www.myhost.com by FireFox. Here is the error
message that I saw in FireFox:

   503 Service Temporarily Unavailable
   The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.


After I stopped the ab command in my machine, everything went back to normal.

Could you please give me some suggestions on this issue?
Thank you very much. Looking forward to your kindly reply.

-
Yours Truly,
James Z. Snell

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Melanie Pfefer
hi

Is it possible to start or stop 1 virtual host and keep the others running?

Is it possible to have seperate httpd.conf?
thanks


--- On Wed, 16/7/08, Davide Bianchi <[EMAIL PROTECTED]> wrote:

> From: Davide Bianchi <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] virtual instances
> To: "Melanie Pfefer" <[EMAIL PROTECTED]>
> Cc: users@httpd.apache.org
> Date: Wednesday, 16 July, 2008, 11:20 AM
> Melanie Pfefer wrote:
> > I added these lines:
> > 
> > Listen 80
> > Listen 81
> > 
> > NameVirtualHost 10.0.100.4:80
> > NameVirtualHost 10.0.100.4:81
> > 
> > 
> > ServerName zeus
> > DocumentRoot /usr/local/apache2/htdocs
> > 
> > 
> > 
> > ServerName zeus
> > DocumentRoot /usr/local/apache2/htdocs1
> > 
> > 
> > When I access http://zeus:80 I get the “It works”.
> When I access http://zeus:81, the logs show:
> > [Wed Jul 16 09:37:18 2008] [error] [client
> 172.21.194.71] client denied by server configuration:
> /usr/local/apache2/htdocs1/
> 
> Check the error_log, there should be a better error message
> than 'server 
> configuration'. Also, usually you need to have a little
> more information 
> in the VHost configuration (minimal, a 
> block with the 
> permissions for the DocumentRoot)
> 
> Check also the permissions on the htdocs1 directory.
> 
> Davide
> 
> -- 
> She got her looks from her father. He's a plastic
> surgeon.
> -- Julius Henry "Groucho" Marx
> (http://en.wikiquote.org/wiki/Groucho_Marx)
> 
> -
> 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: [EMAIL PROTECTED]
>"   from the digest:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Davide Bianchi

Melanie Pfefer wrote:

hi
Is it possible to start or stop 1 virtual host and keep the others running?


Using the 'graceful' option the server is restarted without breaking 
connections, but no, you can't stop/start a VHost alone.



Is it possible to have seperate httpd.conf?


Sure, you can have separate configuration file for VHost or you can have 
multiple instances of Apache. In the first case, you only need to 
"include" the various config files in the main one. In the second case 
you need to have multiple httpd.conf with different bits (the port 
number has to be different) and then start apache using the -C option to 
point to the config file.


Davide

--
Windows NT source code now available... download WIN2000.BAS now!
   -- From a Slashdot.org post

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Severin Gehwolf
Hi!

> Is it possible to start or stop 1 virtual host and keep the others running?

As one httpd binary would server several virtual hosts you would not be
able to stop one virtual host by stopping the httpd process. However, an
easy workaround would be to include only specific virtual host
configurations.

Imagine the following Include directive in your httpd.conf

8<--

Include vhosts/*.conf

-->8

If you would rename the config file of the virtual host which should not
be served anymore into something like "vhost.conf.DISABLED" then it
wouldn't be included on next restart. So, restart httpd should do the
trick then.

Note!
One drawback might be that if the DNS entry of the disabled vhost
persists, Apache would not find a virtual host configuration for the
specified Host HTTP header of the requesting client and, thus, would
serve the default virtual host (first defined virtual host).

> Is it possible to have seperate httpd.conf?

Yes. One could place all virtual hosts configs into a separate
directory:

---conf/
 +vhosts/host1.conf
 host2.conf
 host3.conf

etc.

Severin


> 
> --- On Wed, 16/7/08, Davide Bianchi <[EMAIL PROTECTED]> wrote:
> 
> > From: Davide Bianchi <[EMAIL PROTECTED]>
> > Subject: Re: [EMAIL PROTECTED] virtual instances
> > To: "Melanie Pfefer" <[EMAIL PROTECTED]>
> > Cc: users@httpd.apache.org
> > Date: Wednesday, 16 July, 2008, 11:20 AM
> > Melanie Pfefer wrote:
> > > I added these lines:
> > > 
> > > Listen 80
> > > Listen 81
> > > 
> > > NameVirtualHost 10.0.100.4:80
> > > NameVirtualHost 10.0.100.4:81
> > > 
> > > 
> > > ServerName zeus
> > > DocumentRoot /usr/local/apache2/htdocs
> > > 
> > > 
> > > 
> > > ServerName zeus
> > > DocumentRoot /usr/local/apache2/htdocs1
> > > 
> > > 
> > > When I access http://zeus:80 I get the “It works”.
> > When I access http://zeus:81, the logs show:
> > > [Wed Jul 16 09:37:18 2008] [error] [client
> > 172.21.194.71] client denied by server configuration:
> > /usr/local/apache2/htdocs1/
> > 
> > Check the error_log, there should be a better error message
> > than 'server 
> > configuration'. Also, usually you need to have a little
> > more information 
> > in the VHost configuration (minimal, a 
> > block with the 
> > permissions for the DocumentRoot)
> > 
> > Check also the permissions on the htdocs1 directory.
> > 
> > Davide
> > 
> > -- 
> > She got her looks from her father. He's a plastic
> > surgeon.
> > -- Julius Henry "Groucho" Marx
> > (http://en.wikiquote.org/wiki/Groucho_Marx)
> > 
> > -
> > 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: [EMAIL PROTECTED]
> >"   from the digest:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> 
> 
>   __
> Not happy with your email address?.
> Get the one you really want - millions of new email addresses available now 
> at Yahoo! http://uk.docs.yahoo.com/ymail/new.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: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] moving apache installation directory

2008-07-16 Thread Melanie Pfefer
Hi

I installed apache under /usr/local/apache2

this might change later on.

Would it be sufficient to move the directory to the new location and start the 
http service again?

thanks.


  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] moving apache installation directory

2008-07-16 Thread Davide Bianchi

Melanie Pfefer wrote:

Hi

I installed apache under /usr/local/apache2

this might change later on.

Would it be sufficient to move the directory to the new location and start the 
http service again?


Check in your configuration file where the various parts (modules and so 
on) are referred (usually they are relative to the 'ServerRoot'). Also, 
you need to check if automatic start/stop procedures are referring to 
such directory and change those too.


Davide

--
I met this programmer once - a fat, slippery man, sweating profusely in 
his unnecessary woollen jumper. A slug in sheep's clothing.

--Verity Stob

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Why is mod_limitipconn in Ubuntu 8.04 not working?

2008-07-16 Thread Eric Covener
On Wed, Jul 16, 2008 at 6:02 AM, Jimmy Snell <[EMAIL PROTECTED]> wrote:
>
> However, then I tried to test whether this module was working.
> I used the "ab" command to test from my machine:
>   ab -n 100 -c 100 http://www.myhost.com
>
> Unfortunately, I found on my server that it showed there are 2620 HTTP
> connections from my machine. During the ab command was running, I also
> tried to visit http://www.myhost.com by FireFox. Here is the error
> message that I saw in FireFox:
> 
>   503 Service Temporarily Unavailable
>   The server is temporarily unable to service your request due to
> maintenance downtime or capacity problems. Please try again later.
> 
>
> After I stopped the ab command in my machine, everything went back to normal.
>
> Could you please give me some suggestions on this issue?
> Thank you very much. Looking forward to your kindly reply.

Isn't that what the module does?   It doesn't prevent TCP connections
entirely, it returns 503 when there are too many concurrent requests.


-- 
Eric Covener
[EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] set http header with mod_rewrite

2008-07-16 Thread Raphael Bauduin
Hi,

is there a way to set a http header of a request proxied by mod_rewrite?

Here are more details:

I have an apache server (front.example.com) configured as a reverse
proxy, and requests are actually handled by apache servers not
directly reachable from the outside. Those apache servers
(back1listening on 10.0.0.1 and back2 on 10.0.0.2) are configured for
doing virtual hosting.

back1 serves pages for the websites www.example.com and www.test.com

So www.example.com resolves to the IP of front.example.com, which will
proxy the request to back1.  But the Host header should be set as
back1 also serves www.test.com.

My current solution is to use mod_proxy with ProxyPass,
  ProxyPass / http://www.example.com/
  ProxyPassReverse / http://www.example.com/
and an entry in /etc/hosts:
 10.0.0.1www.example.com

I hoped to be able to write something similar to
RewriteRule (.*) http://10.0.0.1$1 [P, HEADER:Host=www.example.com]

but no documentation seems to imply there's a way to do this.

I'll be happy to take all advice you might have!

Thanks

Raph

-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Mod_ssl Problems?

2008-07-16 Thread Wulf Kaiser
Hi all,

It's me again ;-))

After the succesful build of httpd-2.2.9 under Solaris 10 SPARC, i ran into a 
SSL problem during the tests - the error_log output (Level: debug) is attached. 
Any ideas?


Liebe Grüsse, 

Wulf Kaiser
___ 

IT Services - Web & Database Development
Webmaster www.mpimf-heidelberg.mpg.de

Max-Planck-Institut für medizinische Forschung
Jahnstrasse 29 - 69120 Heidelberg
Fon +49 6221 486560Fax +49 6221 486561

SHA1 Fingerprint:
6a a7 67 d6 e0 21 d1 59 d1 73 20 fb e8 b4 d9 51 ac aa 6d 17
[Wed Jul 16 14:24:48 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Jul 16 14:24:48 2008] [info] Loading certificate & private key of 
SSL-aware server
[Wed Jul 16 14:24:48 2008] [debug] ssl_engine_pphrase.c(469): unencrypted RSA 
private key - pass phrase not required
[Wed Jul 16 14:24:48 2008] [info] Init: Generating temporary RSA private keys 
(512/1024 bits)
[Wed Jul 16 14:24:49 2008] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Wed Jul 16 14:24:49 2008] [info] Init: Initializing (virtual) servers for SSL
[Wed Jul 16 14:24:49 2008] [info] Configuring server for SSL protocol
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(384): Creating new SSL 
context (protocols: SSLv2, SSLv3, TLSv1)
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(580): Configuring 
permitted SSL ciphers 
[ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL]
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(664): Configuring server 
certificate chain (1 CA certificate)
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(708): Configuring RSA 
server certificate
[Wed Jul 16 14:24:49 2008] [warn] RSA server certificate CommonName (CN) 
`iis.mpimf-heidelberg.mpg.de' does NOT match server name!?
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(747): Configuring RSA 
server private key
[Wed Jul 16 14:24:49 2008] [info] mod_ssl/2.2.9 compiled against Server: 
Apache/2.2.9, Library: OpenSSL/0.9.8h
[Wed Jul 16 14:24:49 2008] [notice] Digest: generating secret for digest 
authentication ...
[Wed Jul 16 14:24:49 2008] [notice] Digest: done
[Wed Jul 16 14:24:49 2008] [debug] util_ldap.c(1977): LDAP merging Shared Cache 
conf: shm=0x102498 rmm=0x1024c8 for VHOST: mysql-db2.mpimf-heidelberg.mpg.de
[Wed Jul 16 14:24:49 2008] [debug] util_ldap.c(1977): LDAP merging Shared Cache 
conf: shm=0x102498 rmm=0x1024c8 for VHOST: mysql-db2.mpimf-heidelberg.mpg.de
[Wed Jul 16 14:24:49 2008] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Wed Jul 16 14:24:49 2008] [info] LDAP: SSL support available
[Wed Jul 16 14:24:49 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Jul 16 14:24:49 2008] [info] Loading certificate & private key of 
SSL-aware server
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_pphrase.c(469): unencrypted RSA 
private key - pass phrase not required
[Wed Jul 16 14:24:49 2008] [info] Init: Generating temporary RSA private keys 
(512/1024 bits)
[Wed Jul 16 14:24:50 2008] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(374): shmcb_init 
allocated 512000 bytes of shared memory
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(554): entered 
shmcb_init_memory()
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(576): for 512000 bytes, 
recommending 4266 indexes
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(619): shmcb_init_memory 
choices follow
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(621): division_mask = 0x1F
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(623): division_offset = 64
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(625): division_size = 
15998
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(627): queue_size = 1604
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(629): index_num = 133
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(631): index_offset = 8
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(633): index_size = 12
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(635): cache_data_offset = 
8
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(637): cache_data_size = 
14386
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(650): leaving 
shmcb_init_memory()
[Wed Jul 16 14:24:50 2008] [info] Shared memory session cache initialised
[Wed Jul 16 14:24:50 2008] [info] Init: Initializing (virtual) servers for SSL
[Wed Jul 16 14:24:50 2008] [info] Configuring server for SSL protocol
[Wed Jul 16 14:24:50 2008] [debug] ssl_engine_init.c(384): Creating new SSL 
context (protocols: SSLv2, SSLv3, TLSv1)
[Wed Jul 16 14:24:50 2008] [debug] ssl_engine_init.c(580): Configuring 
permitted SSL ciphers 
[ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL]
[Wed Jul 16 14:24:50 2008] [debug] ssl_engine_init.c(664): Configuring server 
certificate chain (1 CA certificate)
[Wed Jul 16 14:24:50 2008] [debug] ssl_engine_init.c(708): Configuring RSA 
server certificate
[Wed Jul 16 14

Re: [EMAIL PROTECTED] set http header with mod_rewrite

2008-07-16 Thread Severin Gehwolf
Hi!

> Here are more details:
> 
> I have an apache server (front.example.com) configured as a reverse
> proxy, and requests are actually handled by apache servers not
> directly reachable from the outside. Those apache servers
> (back1listening on 10.0.0.1 and back2 on 10.0.0.2) are configured for
> doing virtual hosting.
> 
> back1 serves pages for the websites www.example.com and www.test.com
> 
> So www.example.com resolves to the IP of front.example.com, which will
> proxy the request to back1.  But the Host header should be set as
> back1 also serves www.test.com.
> 
> My current solution is to use mod_proxy with ProxyPass,
>   ProxyPass / http://www.example.com/
>   ProxyPassReverse / http://www.example.com/
> and an entry in /etc/hosts:
>  10.0.0.1www.example.com
> 
> I hoped to be able to write something similar to
> RewriteRule (.*) http://10.0.0.1$1 [P, HEADER:Host=www.example.com]
> 
> but no documentation seems to imply there's a way to do this.
> 
> I'll be happy to take all advice you might have!

Maybe, you should look at ProxyPreserveHost

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost

---
Severin


-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] WG: Mod_ssl Problems? - Additional information

2008-07-16 Thread Wulf Kaiser
Dear All,

Here some additional information about how httpd was build and how SSL is 
"test-configured". The certificates are "borrowed" from our Intranet Server.

The "test configuration" is basically a stripped-down version of the 
configuration running under Solaris 9 since 4 years now.

Liebe Grüsse, 

Wulf Kaiser
___ 

IT Services - Web & Database Development
Webmaster www.mpimf-heidelberg.mpg.de

Max-Planck-Institut für medizinische Forschung
Jahnstrasse 29 - 69120 Heidelberg
Fon +49 6221 486560Fax +49 6221 486561

SHA1 Fingerprint:
6a a7 67 d6 e0 21 d1 59 d1 73 20 fb e8 b4 d9 51 ac aa 6d 17
 

> -Ursprüngliche Nachricht-
> Von: Wulf Kaiser [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 16. Juli 2008 14:37
> An: 'users@httpd.apache.org'
> Betreff: Mod_ssl Problems?
> Wichtigkeit: Hoch
> 
> Hi all,
> 
> It's me again ;-))
> 
> After the succesful build of httpd-2.2.9 under Solaris 10 
> SPARC, i ran into a SSL problem during the tests - the 
> error_log output (Level: debug) is attached. Any ideas?
> 
> 
> Liebe Grüsse, 
> 
> Wulf Kaiser
> ___ 
> 
> IT Services - Web & Database Development Webmaster 
> www.mpimf-heidelberg.mpg.de
> 
> Max-Planck-Institut für medizinische Forschung Jahnstrasse 29 
> - 69120 Heidelberg
> Fon +49 6221 486560Fax +49 6221 486561
> 
> SHA1 Fingerprint:
> 6a a7 67 d6 e0 21 d1 59 d1 73 20 fb e8 b4 d9 51 ac aa 6d 17
> 
[Wed Jul 16 14:24:48 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Jul 16 14:24:48 2008] [info] Loading certificate & private key of 
SSL-aware server
[Wed Jul 16 14:24:48 2008] [debug] ssl_engine_pphrase.c(469): unencrypted RSA 
private key - pass phrase not required
[Wed Jul 16 14:24:48 2008] [info] Init: Generating temporary RSA private keys 
(512/1024 bits)
[Wed Jul 16 14:24:49 2008] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Wed Jul 16 14:24:49 2008] [info] Init: Initializing (virtual) servers for SSL
[Wed Jul 16 14:24:49 2008] [info] Configuring server for SSL protocol
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(384): Creating new SSL 
context (protocols: SSLv2, SSLv3, TLSv1)
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(580): Configuring 
permitted SSL ciphers 
[ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL]
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(664): Configuring server 
certificate chain (1 CA certificate)
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(708): Configuring RSA 
server certificate
[Wed Jul 16 14:24:49 2008] [warn] RSA server certificate CommonName (CN) 
`iis.mpimf-heidelberg.mpg.de' does NOT match server name!?
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_init.c(747): Configuring RSA 
server private key
[Wed Jul 16 14:24:49 2008] [info] mod_ssl/2.2.9 compiled against Server: 
Apache/2.2.9, Library: OpenSSL/0.9.8h
[Wed Jul 16 14:24:49 2008] [notice] Digest: generating secret for digest 
authentication ...
[Wed Jul 16 14:24:49 2008] [notice] Digest: done
[Wed Jul 16 14:24:49 2008] [debug] util_ldap.c(1977): LDAP merging Shared Cache 
conf: shm=0x102498 rmm=0x1024c8 for VHOST: mysql-db2.mpimf-heidelberg.mpg.de
[Wed Jul 16 14:24:49 2008] [debug] util_ldap.c(1977): LDAP merging Shared Cache 
conf: shm=0x102498 rmm=0x1024c8 for VHOST: mysql-db2.mpimf-heidelberg.mpg.de
[Wed Jul 16 14:24:49 2008] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Wed Jul 16 14:24:49 2008] [info] LDAP: SSL support available
[Wed Jul 16 14:24:49 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Jul 16 14:24:49 2008] [info] Loading certificate & private key of 
SSL-aware server
[Wed Jul 16 14:24:49 2008] [debug] ssl_engine_pphrase.c(469): unencrypted RSA 
private key - pass phrase not required
[Wed Jul 16 14:24:49 2008] [info] Init: Generating temporary RSA private keys 
(512/1024 bits)
[Wed Jul 16 14:24:50 2008] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(374): shmcb_init 
allocated 512000 bytes of shared memory
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(554): entered 
shmcb_init_memory()
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(576): for 512000 bytes, 
recommending 4266 indexes
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(619): shmcb_init_memory 
choices follow
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(621): division_mask = 0x1F
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(623): division_offset = 64
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(625): division_size = 
15998
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(627): queue_size = 1604
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(629): index_num = 133
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(631): index_offset = 8
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(633): index_size = 12
[Wed Jul 16 14:24:50 2008] [debug] ssl_scache_shmcb.c(635): cache_data_offset = 
8
[Wed Jul

Re: [EMAIL PROTECTED] set http header with mod_rewrite

2008-07-16 Thread Raphael Bauduin
On Wed, Jul 16, 2008 at 2:54 PM, Severin Gehwolf
<[EMAIL PROTECTED]> wrote:
> Hi!
>
>> Here are more details:
>>
>> I have an apache server (front.example.com) configured as a reverse
>> proxy, and requests are actually handled by apache servers not
>> directly reachable from the outside. Those apache servers
>> (back1listening on 10.0.0.1 and back2 on 10.0.0.2) are configured for
>> doing virtual hosting.
>>
>> back1 serves pages for the websites www.example.com and www.test.com
>>
>> So www.example.com resolves to the IP of front.example.com, which will
>> proxy the request to back1.  But the Host header should be set as
>> back1 also serves www.test.com.
>>
>> My current solution is to use mod_proxy with ProxyPass,
>>   ProxyPass / http://www.example.com/
>>   ProxyPassReverse / http://www.example.com/
>> and an entry in /etc/hosts:
>>  10.0.0.1www.example.com
>>
>> I hoped to be able to write something similar to
>> RewriteRule (.*) http://10.0.0.1$1 [P, HEADER:Host=www.example.com]
>>
>> but no documentation seems to imply there's a way to do this.
>>
>> I'll be happy to take all advice you might have!
>
> Maybe, you should look at ProxyPreserveHost
>
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
>

Yes, thanks!

Still curious to know if there's a way to set a header with
RewriteRule though ;-)

Raph

Raph

> ---
> Severin
>
>
> -
> 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: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] set http header with mod_rewrite

2008-07-16 Thread Nikhil
On Wed, Jul 16, 2008 at 6:33 PM, Raphael Bauduin <[EMAIL PROTECTED]> wrote:

> On Wed, Jul 16, 2008 at 2:54 PM, Severin Gehwolf
> <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> >> Here are more details:
> >>
> >> I have an apache server (front.example.com) configured as a reverse
> >> proxy, and requests are actually handled by apache servers not
> >> directly reachable from the outside. Those apache servers
> >> (back1listening on 10.0.0.1 and back2 on 10.0.0.2) are configured for
> >> doing virtual hosting.
> >>
> >> back1 serves pages for the websites www.example.com and www.test.com
> >>
> >> So www.example.com resolves to the IP of front.example.com, which will
> >> proxy the request to back1.  But the Host header should be set as
> >> back1 also serves www.test.com.
> >>
> >> My current solution is to use mod_proxy with ProxyPass,
> >>   ProxyPass / http://www.example.com/
> >>   ProxyPassReverse / http://www.example.com/
> >> and an entry in /etc/hosts:
> >>  10.0.0.1www.example.com
> >>
> >> I hoped to be able to write something similar to
> >> RewriteRule (.*) http://10.0.0.1$1 [P, HEADER:Host=www.example.com]
> >>
> >> but no documentation seems to imply there's a way to do this.
> >>
> >> I'll be happy to take all advice you might have!
> >
> > Maybe, you should look at ProxyPreserveHost
> >
> > http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
> >
>
> Yes, thanks!
>
> Still curious to know if there's a way to set a header with
> RewriteRule though ;-)
>
> Raph
>
> Raph
>

eg:
 RewriteRule ^/(.*)$
http://www/~me/printenv.cgi[L,P,E=remoteUser:%{LA-U:REMOTE_USER}]
 RequestHeader set X_REMOTE_USER %{remoteUser}e
 RequestHeader add "X-H-USER" "%{remoteUser}e"


Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Melanie Pfefer
Actually I am looking for

1 apache installation
Have independent instances: logs, conf and bin.

VHosts does not seem to have a log, conf and bin for each instance .

Could you please advise?

thx



--- On Wed, 16/7/08, Severin Gehwolf <[EMAIL PROTECTED]> wrote:

> From: Severin Gehwolf <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] virtual instances
> To: users@httpd.apache.org
> Date: Wednesday, 16 July, 2008, 2:28 PM
> Hi!
> 
> > Is it possible to start or stop 1 virtual host and
> keep the others running?
> 
> As one httpd binary would server several virtual hosts you
> would not be
> able to stop one virtual host by stopping the httpd
> process. However, an
> easy workaround would be to include only specific virtual
> host
> configurations.
> 
> Imagine the following Include directive in your httpd.conf
> 
> 8<--
> 
> Include vhosts/*.conf
> 
> -->8
> 
> If you would rename the config file of the virtual host
> which should not
> be served anymore into something like
> "vhost.conf.DISABLED" then it
> wouldn't be included on next restart. So, restart httpd
> should do the
> trick then.
> 
> Note!
> One drawback might be that if the DNS entry of the disabled
> vhost
> persists, Apache would not find a virtual host
> configuration for the
> specified Host HTTP header of the requesting client and,
> thus, would
> serve the default virtual host (first defined virtual
> host).
> 
> > Is it possible to have seperate httpd.conf?
> 
> Yes. One could place all virtual hosts configs into a
> separate
> directory:
> 
> ---conf/
>  +vhosts/host1.conf
>  host2.conf
>  host3.conf
> 
> etc.
> 
> Severin
> 
> 
> > 
> > --- On Wed, 16/7/08, Davide Bianchi
> <[EMAIL PROTECTED]> wrote:
> > 
> > > From: Davide Bianchi
> <[EMAIL PROTECTED]>
> > > Subject: Re: [EMAIL PROTECTED] virtual instances
> > > To: "Melanie Pfefer"
> <[EMAIL PROTECTED]>
> > > Cc: users@httpd.apache.org
> > > Date: Wednesday, 16 July, 2008, 11:20 AM
> > > Melanie Pfefer wrote:
> > > > I added these lines:
> > > > 
> > > > Listen 80
> > > > Listen 81
> > > > 
> > > > NameVirtualHost 10.0.100.4:80
> > > > NameVirtualHost 10.0.100.4:81
> > > > 
> > > > 
> > > > ServerName zeus
> > > > DocumentRoot /usr/local/apache2/htdocs
> > > > 
> > > > 
> > > > 
> > > > ServerName zeus
> > > > DocumentRoot /usr/local/apache2/htdocs1
> > > > 
> > > > 
> > > > When I access http://zeus:80 I get the “It
> works”.
> > > When I access http://zeus:81, the logs show:
> > > > [Wed Jul 16 09:37:18 2008] [error] [client
> > > 172.21.194.71] client denied by server
> configuration:
> > > /usr/local/apache2/htdocs1/
> > > 
> > > Check the error_log, there should be a better
> error message
> > > than 'server 
> > > configuration'. Also, usually you need to
> have a little
> > > more information 
> > > in the VHost configuration (minimal, a
> 
> > > block with the 
> > > permissions for the DocumentRoot)
> > > 
> > > Check also the permissions on the htdocs1
> directory.
> > > 
> > > Davide
> > > 
> > > -- 
> > > She got her looks from her father. He's a
> plastic
> > > surgeon.
> > > -- Julius Henry "Groucho" Marx
> > > (http://en.wikiquote.org/wiki/Groucho_Marx)
> > > 
> > >
> -
> > > 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:
> [EMAIL PROTECTED]
> > >"   from the digest:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > 
> > 
> >  
> __
> > Not happy with your email address?.
> > Get the one you really want - millions of new email
> addresses available now at Yahoo!
> http://uk.docs.yahoo.com/ymail/new.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:
> [EMAIL PROTECTED]
> >"   from the digest:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> 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: [EMAIL PROTECTED]
>"   from the digest:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html

-
The official User-To-User support forum of the Apache 

Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Eric Covener
On Wed, Jul 16, 2008 at 3:01 AM, Anazys - Apache <[EMAIL PROTECTED]> wrote:
> Thanks for your answer. I already try this but when I write this script, I
> don't know how to handle the loop with stdin (in the shell script or in the
> java file ?) :
> I try this in the shell :
>#!/bin/sh
>while read text
>do
>java -classpath /path/to/java/class/ MainClass
>done


Your java class should read from stdin.

-- 
Eric Covener
[EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Bugs of mod_proxy

2008-07-16 Thread Anand Kulkarni
Hi,
 
Are there any well known bugs from mod_proxy module?
 
regards,
 
Anand
 


Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Severin Gehwolf
On Wed, 2008-07-16 at 13:10 +, Melanie Pfefer wrote:
> Actually I am looking for
> 
> 1 apache installation
> Have independent instances: logs, conf and bin.
> 
> VHosts does not seem to have a log, conf and bin for each instance .

Why would you need independent instances of bin?

Concerning "logs" and "conf", those two are also possible using Virtual
Hosts. May I ask what's the greater picture? Why do you need independent
instances of logs, conf and bin?

Maybe you could reuse your httpd binary and start it with different
configurations (even using different ServerRoot directories) using the
"-f" and "-d" options. See #> ./httpd -h for more info.

---
Severin




-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Bugs of mod_proxy

2008-07-16 Thread WHIRLYCOTT

https://issues.apache.org/bugzilla/buglist.cgi?quicksearch=mod_proxy

On Jul 16, 2008, at 10:38 AM, Anand Kulkarni wrote:


Hi,

Are there any well known bugs from mod_proxy module?

regards,

Anand



-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Intrusion detection based on Apache's logs?

2008-07-16 Thread Jordi Prats
Hi all,
Do you know any IDS based on apache log analysis? What's you
experience with them? Which one do you think is best?

Thanks,
-- 
Jordi

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] overriding mod_proxy headers with mod_expires

2008-07-16 Thread WHIRLYCOTT
I have Apache 2.2.3 going against a servlet engine.  I have some  
static content that is hosted by the servlet engine (css, jpegs,  
etc.).  Whenever a request without a JSESSIONID cookie hits the  
servlet engine, the servlet engine sends back a Cache-control: no- 
cache header and an Expires header specifying the epoch (i.e. Jan 1  
1970) along with a Set-Cookie header that contains a new JSESSIONID  
cookie.


What I want to do is configure mod_expires (and/or mod_headers) to  
effectively ignore what my servlet engine says and override the  
Expires and Cache-control headers with something far in the future and  
remove the Set-Cookie header that originates on the servlet engine.


With mod_headers, I can remove the Set-Cookie header.  In fact, with  
mod_headers, I can pretty much do what I want except use mod_expires  
lovely syntax for specifying expiration dates (i.e. "access plus 30  
days"), which is fairly important to me.


So am I missing something or is it indeed the case that I cannot make  
mod_expires override what is coming back from the proxied request?


phil.

--
   Whirlycott
   Philip Jacob
   [EMAIL PROTECTED]
   http://www.whirlycott.com/phil/





-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Anazys - Apache
My Java class read from stdin (System.in), the main problem is the  
loop : with the "while read text", there is an infinite loop.


But when I only write a call from the shell to the java class :
#!/bin/sh
java -classpath /path/to/java/class/ MainClass
It work perfectly the first time but nothing after this first call.  
It's normal because there isn't any loop, but i don't know how to  
write this loop in the shell script.


Thanks for your help Eric.


Le 16 juil. 08 à 15:38, Eric Covener a écrit :

On Wed, Jul 16, 2008 at 3:01 AM, Anazys - Apache <[EMAIL PROTECTED]>  
wrote:
Thanks for your answer. I already try this but when I write this  
script, I
don't know how to handle the loop with stdin (in the shell script  
or in the

java file ?) :
I try this in the shell :
  #!/bin/sh
  while read text
  do
  java -classpath /path/to/java/class/ MainClass
  done



Your java class should read from stdin.

--
Eric Covener
[EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Melanie Pfefer
Hi,

Actually I want to have different customers that use different apache servers 
without the need to install many apache servers.

I thought of reusing the http binary. Could you please help in this regard? 
Should I simply copy the httpd.conf and change the logs location and ServerRoot?
thanks again



--- On Wed, 16/7/08, Severin Gehwolf <[EMAIL PROTECTED]> wrote:

> From: Severin Gehwolf <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] virtual instances
> To: users@httpd.apache.org
> Date: Wednesday, 16 July, 2008, 5:24 PM
> On Wed, 2008-07-16 at 13:10 +, Melanie Pfefer wrote:
> > Actually I am looking for
> > 
> > 1 apache installation
> > Have independent instances: logs, conf and bin.
> > 
> > VHosts does not seem to have a log, conf and bin for
> each instance .
> 
> Why would you need independent instances of bin?
> 
> Concerning "logs" and "conf", those two
> are also possible using Virtual
> Hosts. May I ask what's the greater picture? Why do you
> need independent
> instances of logs, conf and bin?
> 
> Maybe you could reuse your httpd binary and start it with
> different
> configurations (even using different ServerRoot
> directories) using the
> "-f" and "-d" options. See #>
> ./httpd -h for more info.
> 
> ---
> Severin
> 
> 
> 
> 
> -
> 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: [EMAIL PROTECTED]
>"   from the digest:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread William A. Rowe, Jr.

Melanie Pfefer wrote:

Hi,

Actually I want to have different customers that use different apache servers 
without the need to install many apache servers.

I thought of reusing the http binary. Could you please help in this regard? 
Should I simply copy the httpd.conf and change the logs location and ServerRoot?
thanks again


And PIDFile, yup.  You've got the right idea.

I wouldn't use the original paths for any of the httpd's you are running,
so that you can make sure no files are being placed in the original logs
directory.

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] virtual instances

2008-07-16 Thread Dragon

Melanie Pfefer wrote:

Hi,

Actually I want to have different customers that use different 
apache servers without the need to install many apache servers.


I thought of reusing the http binary. Could you please help in this 
regard? Should I simply copy the httpd.conf and change the logs 
location and ServerRoot?

thanks again

 End original message. -

You know, there are a lot of other ways to do this that don't require 
different server instances or placing everything in the main httpd.conf file.


Virtual host configuration can be separated into different files to 
be read by an include directive in the httpd.conf file and each 
virtual host can specify its own set of log files.


This is done by a lot of ISPs, especially ones that use a commercial 
control panel type of system like Plesk or cPanel.



Dragon

~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~



-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] set http header with mod_rewrite

2008-07-16 Thread Raphael Bauduin
On Wed, Jul 16, 2008 at 3:06 PM, Nikhil <[EMAIL PROTECTED]> wrote:
>
> eg:
>  RewriteRule ^/(.*)$ http://www/~me/printenv.cgi
> [L,P,E=remoteUser:%{LA-U:REMOTE_USER}]
>  RequestHeader set X_REMOTE_USER %{remoteUser}e
>  RequestHeader add "X-H-USER" "%{remoteUser}e"
>

I can't get this to work. Are you sure RequestHeader changes the
headers of the request sent to the backend server?
The doc (http://httpd.apache.org/docs/2.0/mod/mod_headers.html#requestheader)
says "The header is modified just before the content handler is run",
which I understand as this changes the incoming request before it is
handled. But I tried to change the outgoing request to the backend
apache server serving the content.
Here's my config:

  RewriteEngine On
  RewriteRule ^(.*) http://10.12.12.5$1 [L,P,E=hostname:%{HTTP_HOST}]
  RequestHeader set Host %{hostname}e
  ProxyPassReverse / http://10.12.12.5/

Let me know if I missed something!

Thanks

Raph



-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Send a request to another apache server

2008-07-16 Thread Chris Arnold
Using apache2 2.2.3 on SLES10 SP2. What we have:

1 webserver on 123 subnet. Answers for port 80
1 email server with it's own small apache server on 124 subnet answers for port 
8080
1 firewall/router with 1 IP (forwards to internal server addresses)

What we want to do:
When users enter some address in their browser, say webmail.domain.tld (which 
goes to server 1 on port 80) to goto the second server on 124 subnet on port 
8080. Is there anyway to tell server 1 on port 80, when a specific url comes to 
it, send to second server on port 8080? Can this be done with the .htaccess 
file? Or can it be done at all? Thanks for any doc's/help

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache 1.3.41 download website

2008-07-16 Thread Sutida Yenjaichon
Could you advise the website I can download Apache version 1.3.41 for Win32. I 
don't see any .msi file download paackage (like 
apache_1.3.41-win32-x86-no_ssl.msi) on the main Apache website? 

Please help. Thank you very much. 



  

Re: [EMAIL PROTECTED] Apache 1.3.41 download website

2008-07-16 Thread William A. Rowe, Jr.

Sutida Yenjaichon wrote:
Could you advise the website I can download Apache version 1.3.41 for 
Win32. I don't see any .msi file download paackage (like 
apache_1.3.41-win32-x86-no_ssl.msi) on the main Apache website?


You are so strongly discouraged from using it, that it's not there.  This
code is over 10 years old and fundamentally flawed (it was a square peg
in a round hole, so to speak).

Nobody on Windows should be needing 1.3 since every useful and usable
module for windows was ported to 2.0 long ago, and now to 2.2.  Use 2.0
if your favorite module is not ported, yet.

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Eric Covener
On Wed, Jul 16, 2008 at 10:49 AM, Anazys - Apache <[EMAIL PROTECTED]> wrote:
> My Java class read from stdin (System.in), the main problem is the loop :
> with the "while read text", there is an infinite loop.
>
> But when I only write a call from the shell to the java class :
>#!/bin/sh
>java -classpath /path/to/java/class/ MainClass
> It work perfectly the first time but nothing after this first call. It's
> normal because there isn't any loop, but i don't know how to write this loop
> in the shell script.

It's a bug in your java code. It should be able to read until stdin is closed.



-- 
Eric Covener
[EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Send a request to another apache server

2008-07-16 Thread Darvin Denmian
Hi,

im from brasil, i will try to explain (with my good english) how you
can fix this problem:

you can use Redirect, something like this:


ServerName domain.com
RedirectPermanent / https://destination.domain.com


good luck.


On Wed, Jul 16, 2008 at 12:41 PM, Chris Arnold
<[EMAIL PROTECTED]> wrote:
> Using apache2 2.2.3 on SLES10 SP2. What we have:
>
> 1 webserver on 123 subnet. Answers for port 80
> 1 email server with it's own small apache server on 124 subnet answers for 
> port 8080
> 1 firewall/router with 1 IP (forwards to internal server addresses)
>
> What we want to do:
> When users enter some address in their browser, say webmail.domain.tld (which 
> goes to server 1 on port 80) to goto the second server on 124 subnet on port 
> 8080. Is there anyway to tell server 1 on port 80, when a specific url comes 
> to it, send to second server on port 8080? Can this be done with the 
> .htaccess file? Or can it be done at all? Thanks for any doc's/help
>
> -
> 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: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Send a request to another apache server

2008-07-16 Thread Chris Arnold
>Hi,
Hi

>
>ServerName domain.com
>RedirectPermanent / https://destination.domain.com
>
So, this is what i have in my vhost.conf file:

ServerName some-domain.com
RedirectPermanent / http://otherdomain.com:8080

Then i restart apache. Goto webmail.some-domain.com and i am taken to my 
webpage and it should take me to our web email. I have mod_alias loaded, 
according to phpinfo found at http://mytimewithgod.net/phpinfo.php.

I also have their website hosted on my server. Here is that section from 
vhost.conf:

ServerAdmin [EMAIL PROTECTED]
ServerName some-domain.com
ServerAlias www.some-domain.com
DocumentRoot /path/to/web/site/some-domain

# if not specified, the global error log is used
ErrorLog /var/log/apache2/some-domain-error_log
CustomLog /var/log/apache2/some--access_log combined

# don't loose time with IP address lookups
HostnameLookups Off

# needed for named virtual hosts
UseCanonicalName Off

# configures the footer on server-generated documents
ServerSignature On


#
# This should be changed to whatever you set DocumentRoot to.
#

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all





These 2 sections are separate in the vhost.conf file. Thanks again for any help.


On Wed, Jul 16, 2008 at 12:41 PM, Chris Arnold
<[EMAIL PROTECTED]> wrote:
> Using apache2 2.2.3 on SLES10 SP2. What we have:
>
> 1 webserver on 123 subnet. Answers for port 80
> 1 email server with it's own small apache server on 124 subnet answers for 
> port 8080
> 1 firewall/router with 1 IP (forwards to internal server addresses)
>
> What we want to do:
> When users enter some address in their browser, say webmail.domain.tld (which 
> goes to server 1 on port 80) to goto the second server on 124 subnet on port 
> 8080. Is there anyway to tell server 1 on port 80, when a specific url comes 
> to it, send to second server on port 8080? Can this be done with the 
> .htaccess file? Or can it be done at all? Thanks for any doc's/help
>
> -
> 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: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Re: Why is mod_limitipconn in Ubuntu 8.04 not working?

2008-07-16 Thread Jimmy Snell
Dear David,

Thank you for your kindly and quick reply.

I am sorry that I thought the limitipconn module would totally prevent
the DoS attacker from connecting to TCP 80 port.

BTW, I am not sure how Apache and its DSOs work internally. But I
wonder whether there is a way to achieve the result I expected? If it
cannot done inside Apache or its DSOs, maybe it can be done by adding
a rule to the system iptables?

Thank you for your wonderful mod_limitipconn; hope it can be
integrated to Apache trunk soon.

On Thu, Jul 17, 2008 at 12:18 AM, David Jao <[EMAIL PROTECTED]> wrote:
> If you are getting 503 responses then it looks like the module is working.
>  The module does not limit connections, because that would be impossible --
> a user has to connect to your web server before the module can even see the
> user.  The module does limit responses if there are too many connections,
> and that is what you are seeing.

-- 
Yours Truly,
James Z. Snell

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Any replacement of mod_proxy?

2008-07-16 Thread Anand Kulkarni
Hi,
 
We have used mod_proxy in our project for configuring proxy server
between TCP client and TCP server. But, mod_proxy has not been able to
forward the complete client data to the server.
 
I think it is a bug with mod_proxy. We have another option called
mod_athena. In that also it did not work.
 
Is there any replacement of mod_proxy in Apache?
 
-Anand
 


[EMAIL PROTECTED] 403 Errors and Virtual Hosts

2008-07-16 Thread Rob
Hi there,

Just wondering if some one could give me a hand with my Virtual Host

# mysite
http://0.0.0.0/>>
ServerName mysite.co.nz
RewriteEngine on
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^/(.*) http://www.mysite.co.nz/$1 [NE,R]


http://0.0.0.0/>>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html/mysite
ServerName www.mysite.co.nz
ErrorDocument 403 /var/www/html/mysite403/index.html


Thats what my current virtual host looks like. Im trying to get my 403
errors for a certain website to display that index file. Its not working
this way, can some one please advise where i have gone wrong ?

cheers


Re: [EMAIL PROTECTED] Send a request to another apache server

2008-07-16 Thread Davide Bianchi

Chris Arnold wrote:

Using apache2 2.2.3 on SLES10 SP2. What we have:

1 webserver on 123 subnet. Answers for port 80
1 email server with it's own small apache server on 124 subnet answers for port 
8080
1 firewall/router with 1 IP (forwards to internal server addresses)

What we want to do:
When users enter some address in their browser, say
webmail.domain.tld

(which goes to server 1 on port 80) to goto the second server on 124
subnet on port 8080. Is there anyway to tell server 1 on port 80, when a
specific url comes to it, send to second server on port 8080? Can this
be done with the .htaccess file? Or can it be done at all? Thanks for
any doc's/help

Yes, by using mod_proxy in combination with VirtualHosts, something like


ServerName webmail.domain.tld
ProxyPass / http://other.web.server.here:8080/
ProxyPassReverse / http://other.web.server.here:8080/



See the documentation about mod_proxy

Davide

--
For their next act, they'll no doubt be buying a firewall running
under NT, which makes about as much sense as building a prison out
of meringue.
-- from alt.sysadmin.recovery

-
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]