Re: [users@httpd] Access rules in an intranet

2012-06-14 Thread Anam Ali Khan
I think you don't need to use DirectoryMatch option in your config file. 
Replace DirectoryMatch with Directory option and add following code in it.


Order deny,allow
deny from all
allow from 10.215.1.0/Directory

-Anam




 From: Luís de Sousa luis.a.de.so...@gmail.com
To: users@httpd.apache.org; Anam Ali Khan anamalik...@yahoo.com 
Sent: Thursday, 14 June 2012, 12:19
Subject: Re: [users@httpd] Access rules in an intranet
 

Hi Anam,

The config file has only two blocks: DirectoryMatch and IfModule, organised 
like this:

DirectoryMatch /usr/share/phppgadmin/
...
IfModule mod_php4.c
...
/IfModule
...
/DirectoryMatch

Where exactly should I put the Directory block?

Thank you.

On 13 June 2012 19:18, Anam Ali Khan anamalik...@yahoo.com wrote:

Hi,


Insert Directory block in virtual host container (configuration). It seems 
you have added in that area where Directory option is not allowed.


-Anam



Re: [users@httpd] Access rules in an intranet

2012-06-13 Thread Anam Ali Khan
Hi,

Insert Directory block in virtual host container (configuration). It seems 
you have added in that area where Directory option is not allowed.

-Anam




 From: Luís de Sousa luis.a.de.so...@gmail.com
To: users@httpd.apache.org; Anam Ali Khan anamalik...@yahoo.com 
Sent: Wednesday, 13 June 2012, 11:52
Subject: Re: [users@httpd] Access rules in an intranet
 

Hi Anam,

Apache complains about it: Directory not allowed here. I suppose it doesn't 
like having two nested Directory blocks.

Thank you in any case.


On 12 June 2012 20:54, Anam Ali Khan anamalik...@yahoo.com wrote:

Try the following configuration:


Directory phppgadmin location
Order deny,allow
deny from all
allow from 10.215.1.0
/Directory


Replace phppgadmin location with the actual location whereyou have installed 
your application.


Hope it will solve :)



-Anam




Re: [users@httpd] Access rules in an intranet

2012-06-12 Thread Anam Ali Khan
Try the following configuration:

Directory phppgadmin location
Order deny,allow
deny from all
allow from 10.215.1.0
/Directory

Replace phppgadmin location with the actual location whereyou have installed 
your application.

Hope it will solve :)


-Anam




 From: Luís de Sousa luis.a.de.so...@gmail.com
To: users@httpd.apache.org 
Sent: Tuesday, 12 June 2012, 14:55
Subject: [users@httpd] Access rules in an intranet
 

Dear all,

I'm configuring a server to which I have ssh access through an intranet. I'd 
like to open access to all nodes in the same IP range as mine to a particular 
application (phppgadmin). In the .conf file I have the following:

order allow,deny
deny from all
allow from 10.215.xxx.xxx

But this way I get the Forbidden error in the browser. I've also tried with:

order allow,deny
deny from all
allow from 10.215

And even by specifying my IP:

order allow,deny
deny from all
allow from 10.215.1.119

Still, I get the Forbidden error. The only way I found out to access this 
application is by using allow from all, which is not acceptable since this 
server will be going to the DMZ sometime.

What am I doing wrong? Any further information I can provide to solve this 
issue?

Thank you.

Re: [users@httpd] Help troubleshooting performance issue, after 1000 total children Apache no longer responds to HTTP requests. Not MaxClients issue?

2012-05-05 Thread Anam Ali Khan
PJ

You have increased Max Open files setting BUT i think you should increased 
open files descriptor limit at operating system level.

There is a linux kernel parameter file-max in /proc that does the trick. Try 
increasing to 1000.

Hope this will help

Thanks!
Anam



 From: P J pauljfli...@gmail.com
To: users@httpd.apache.org 
Sent: Saturday, 5 May 2012, 0:20
Subject: Re: [users@httpd] Help troubleshooting performance issue, after 1000 
total children Apache no longer responds to HTTP requests. Not MaxClients 
issue?
 

On Fri, May 4, 2012 at 8:46 AM, Tom Evans tevans...@googlemail.com wrote:

On Fri, May 4, 2012 at 4:18 PM, P J pauljfli...@gmail.com wrote:
 On Fri, May 4, 2012 at 5:28 AM, Jim Jagielski j...@apache.org wrote:

 The closer MinSpareServers/MaxSpareServers are, the more time
 Apache needs to spend killing and creating child processes
 to ensure it stays within that narrow limit
 On May 3, 2012, at 2:40 PM, P J wrote:


 Thanks. Yes, I understand that. I set them both to that number to try and
 induce the issue we've been seeing.
 If I set:

 MinSpareServers  1024
 MaxSpareServers  2048

 1000+ simultaneous connections is not uncommon this server.


This is unlikely to have a major effect on your issue, as I believe
something strange is going on when you reach 1024 processes, but why
do you have MinSpareServers so high?

If you start 1024 children initially, and then 900 of them are busy,
you are asking httpd to ensure there are at least 1924 children. It
seems massive overkill to ensure that there are so many idle
processes.

If your high water mark is (say) 1536 clients, and you start 1024
processes, then I would go with settings like this:

MinSpareServers 128
MaxSpareServers 1536
StartServers 1024
MaxClients 2048
ServerLimit 2048

So, you start with 1024 processes, increasing up to a maximum of 2048
processes. If there are ever more than 1536 processes idle, kill some
off.

Cheers

Tom



 
Thanks Tom, I agree. I don't normally have MinSpareServers at 1024, I was just 
trying to see if I can force it to throw the:

[debug] mpm_common.c(663): (70007)The timeout specified has expired: connect 
to listener on [::]:80 error. error.

Which I can. The million $ questions is what is the magic 1024 limit I'm 
hitting.

I'll hopefully try with a later version of Apache and let the list know if that 
resolves it.

Thanks again.

--
PJ

Re: [users@httpd] Static content switching in Apache

2012-04-13 Thread Anam Ali Khan
I think forwarding a request from Apache will not create any overhead.

If I use mod_proxy then how could i verify that response is return by the 
lightweight webserver (thttpd)


Waiting for reply

Regards,
Anam




 From: Jaco Kroon j...@uls.co.za
To: users@httpd.apache.org 
Sent: Wednesday, 29 February 2012, 14:14
Subject: Re: [users@httpd] Static content switching in Apache
 

H Anam,

I'm with Tom on this one.  The additional processing required in
order to forward the request most likely far outweighs the
lightweight benefit of using a lightweight server.  I would
recommend doing this the other way round if you would like to do
this, so lightttpd receives the request, if it's static, serve it,
if not, forward to apache.  That way round you might actually get a
benefit from using one of the lightweight http servers.

Kind Regards,
Jaco

On 29/02/12 11:08, Anam Ali Khan wrote: 
Thank you Tom for your reply.


I don't want to serve static content from Apache, i want to forward those 
requests to lightweight web servers and they should be capable to serve those 
content.




 From: Tom Evans tevans...@googlemail.com
To: users@httpd.apache.org; Anam Ali Khan anamalik...@yahoo.com 
Sent: Tuesday, 28 February 2012, 19:54
Subject: Re: [users@httpd] Static content switching in Apache
 
On Tue, Feb 28, 2012 at 2:32 PM, Anam Ali Khan anamalik...@yahoo.com wrote:
 Hello,

 I would like to implement following configurations in
Apache web server:

 Static content switching (forwarding) of files in
Apache to lightweight web
 servers - Servers like thttpd/lightttpd
 Responce should be return directly by those lightweight
web servers.


mod_proxy will do that.

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

Apache is quite capable of serving files from disk though,
why not just let it?

Cheers

Tom

-
The official User-To-User support forum of the Apache HTTP
Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
    from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org





Re: [users@httpd] Load Balancing, no fail over when backend server is down?

2012-03-29 Thread Anam Ali Khan
I think Apache mod_proxy do not support health checking for backend servers.

-Anam




 From: Ryan Bowman ryanlbow...@gmail.com
To: users@httpd.apache.org 
Sent: Thursday, 29 March 2012, 2:04
Subject: [users@httpd] Load Balancing, no fail over when backend server is down?
 
Greetings

I have recently setup Apache load balancing to two backend JBoss
(5.1.0.GA) servers. Communication over AJP, with Sticky Sessions, (no
session replication on the Jboss servers). I'm having a problem with
both Apache 2.2.21 (SUSE 11.3) and 2.4.1 (CentOS 5-something, I
think).

I shut off one of the jboss nodes, the balancer-manager page shows
that node's status as Err, yet Apache is still forwarding requests to
that server, which results in a 503.

Now, I'm making some assumptions here, but they seem pretty reasonable
to me - if one of the nodes is in error status, I assume Apache would
not send requests to it, even with Sticky Sessions. If I leave my
cookies as is (with the jvmRoute to the node that is down), I get a
503 page, which is extremely not useful, and contrary to one of the
main reasons we put in the second JBoss server.

In order to get Apache to send requests to the server that is
available, I have to either delete/modify the browser cookie, or set
the node status to disabled. We have monitoring in place for the
balancer-manager page, to alert me if the status of a node changes so
I can set it to disabled if I need to, but it seems like Apache should
not be sending traffic, even sticky traffic, to down nodes.

But what I want is that if the node is down that all requests would go
to the up node, sticky sessions be damned. If the user's session is
broken/reset in the server switch, that is a small thing compared to
getting a 503 page, making them think the site is down.

Can someone please tell me what am I doing wrong?

Proxy balancer://jbcluster
  BalancerMember ajp://jbtest1:8009 route=tn1 retry=0 loadfactor=1
  BalancerMember ajp://jbtest2:8009 route=tn2 retry=0 loadfactor=1
  ProxySet lbmethod=byrequests stickysession=JSESSIONID|jsessionid
scolonpathdelim=On nofailover=Off
/Proxy

ProxyPass /images !
ProxyPass /apache-info !
ProxyPass /apache-status !
ProxyPass /balancer-manager !

ProxyPassMatch 
^(/|/cl/.*|/s/.*|/c/.*|/d/.*|/m/.*|/v/.*|/t/.*|/p/.*|/b/.*|/tw/.*)$
balancer://jbcluster

ProxyPassMatch (\.do.*|\.jsp)$ balancer://jbcluster

ProxyPassMatch (.*/styles/.*\.css|/scripts/.*\.js|/pie/PIE.htc)$
balancer://jbcluster

thanks
ryan

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] Different pages served depending on IP address or domain addressing

2012-03-19 Thread Anam Ali Khan
Create a separate vhost definition with same directive values as you configure 
in main server section.

Define vhost definition in httpd.conf file.

-Anam




 From: Prasanna Mulgaonkar prasanna.mulgaon...@gmail.com
To: users@httpd.apache.org 
Sent: Sunday, 18 March 2012, 2:45
Subject: Re: [users@httpd] Different pages served depending on IP address or 
domain addressing
 

The ServerAlias directive is only applicable in the virtual host section. Do I 
need to add a vhost definition?

--p

On 03/17/2012 10:21 AM, Anam Ali Khan wrote: 
Try this!



UseCanonicalName Off
ServerAlias www.mydomain.com

Remove :80 in ServerName directive


Make sure DNS records are properly configure.


-Anam



 From: Prasanna Mulgaonkar prasanna.mulgaon...@gmail.com
To: users@httpd.apache.org 
Sent: Saturday, 17 March 2012, 5:17
Subject: [users@httpd] Different pages served depending on IP address or 
domain addressing
 
Have a strange setup behavior that I have not been able to
find an answer to.

I have a server running Apache set up at IP address 50.X.Y.Z

I have www.mydomain.com redirected from our domain hoster to that ip address.


At the top level of that apache stack (/var/www/html), i
have an index.html file that serves up correctly whether I
enter http://www.mydomain.com or http://50.X.Y.Z into the browser 
address.

I have an application in a subdirectory below the html file
in /var/www/html/app. If I say http://50.X.Y.Z/app/, the app serves 
up correctly. We have been doing that for may months now.

However, if I try http://www.mydomain.com/app/, I do not get the app–I get the 
same index.html file that is served as if the /app/ was not appended to the 
end of the mydomain.com. There are no errors or notices in the apache error 
file.


The httpd.conf file declares
ServerName www.mydomain.com:80
UseCanonicalName On

There are no vhosts set up.

What else should I look at to explain this odd behavior.

Thanks.





-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org





Re: [users@httpd] Different pages served depending on IP address or domain addressing

2012-03-17 Thread Anam Ali Khan
Try this!


UseCanonicalName Off
ServerAlias www.mydomain.com

Remove :80 in ServerName directive

Make sure DNS records are properly configure.

-Anam



 From: Prasanna Mulgaonkar prasanna.mulgaon...@gmail.com
To: users@httpd.apache.org 
Sent: Saturday, 17 March 2012, 5:17
Subject: [users@httpd] Different pages served depending on IP address or domain 
addressing
 
Have a strange setup behavior that I have not been able to find an answer to.

I have a server running Apache set up at IP address 50.X.Y.Z

I have www.mydomain.com redirected from our domain hoster to that ip address.


At the top level of that apache stack (/var/www/html), i have an index.html 
file that serves up correctly whether I enter http://www.mydomain.com or 
http://50.X.Y.Z into the browser address.

I have an application in a subdirectory below the html file in 
/var/www/html/app. If I say http://50.X.Y.Z/app/, the app serves up correctly. 
We have been doing that for may months now.

However, if I try http://www.mydomain.com/app/, I do not get the app–I get the 
same index.html file that is served as if the /app/ was not appended to the end 
of the mydomain.com. There are no errors or notices in the apache error file.


The httpd.conf file declares
ServerName www.mydomain.com:80
UseCanonicalName On

There are no vhosts set up.

What else should I look at to explain this odd behavior.

Thanks.





-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-15 Thread Anam Ali Khan
Do not use session replication/sharing, use session stickiness instead.

-Anam




 From: Igor Cicimov icici...@gmail.com
To: users@httpd.apache.org 
Sent: Wednesday, 14 March 2012, 14:48
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 

What is in apache log file, any proxy errors? I would do some extra logging if 
i was you as given in the below link:
http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html#stickyness_troubleshooting

On Mar 14, 2012 8:28 PM, Kashif Rahman kashif.rah...@vopium.com wrote:

Yes I have that same in server.xml on both tomcats.
 
Thank you,
 
Best Regards,
Kashif Rahman
 
From:Igor Cicimov [mailto:icici...@gmail.com] 
Sent: Wednesday, March 14, 2012 2:21 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
Does the route parameters in the apache balancer tomcat1 and tomcat2 match the 
jvmRoute value in the tomcat connectors?
On Mar 12, 2012 9:19 PM, Kashif Rahman kashif.rah...@vopium.com wrote:
Here what I have used :
 
==
 
ProxyRequests Off
    Proxy *
  AddDefaultCharset Off
  Order deny,allow
  Allow from all
    /Proxy
    ProxyPass /balancer-manager !
    ProxyPass /examples balancer://qawebcluster/examples
    ProxyPassReverse /examples balancer://qawebcluster/examples
    ProxyPass /kashif/admin ajp://x.x.x.x:18009/kashif/admin
    ProxyPassReverse /kashif/admin ajp://x.x.x.x:18009/kashif/admin
 
    #ProxyPass /kashif balancer://qawebcluster/kashif 
stickysession=JSESSIONID|jsessionid
    #ProxyPassReverse /kashif balancer://qawebcluster/kashif 
stickysession=JSESSIONID|jsessionid
    ProxyPass /kashif balancer://qawebcluster/kashif
    ProxyPassReverse /kashif balancer://qawebcluster/kashif
    ProxyPass /k balancer://qawebcluster/k 
stickysession=JSESSIONID|jsessionid
    ProxyPassReverse /k balancer://qawebcluster/k 
stickysession=JSESSIONID|jsessionid
   Proxy balancer://qawebcluster
  BalancerMember ajp://127.0.0.1:8009 route=tomcat1 disablereuse=On
  BalancerMember ajp://x.x.x.x:8009 route=tomcat2 disablereuse=On
  ProxySet lbmethod=byrequests
    /Proxy
 
ProxyPreserveHost Off
ProxyStatus On
 
==
We have this config on WEB1 as WEB2 both.  3 machines involved. 1 Apache only 
for load balancing and 2 machines as WEB1 and WEB2 having Apache and tomcat on 
each.
 
We are using mod_proxy_ajp
 
Tomcat is clustered. Session replication works, if single Apache is handling 2 
tomcat instances. When we start second Apache, tomcat session replication 
stops. We want to have failover for PHP side too. 
 
Thank you,
 
Regards,
Kashif Rahman.
 
From:Igor Cicimov [mailto:icici...@gmail.com] 
Sent: Monday, March 12, 2012 2:12 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
You can at least tell us what OS are these servers running on? Also you said 
when you put second apache something is not working so we would like to see 
your apache config if you dont mind. Another thing not clear to me is tomcat 
session replication. Are the tomcats clustered? If not how do they replicate 
the sessions between each other?
In meantime check mod_proxy_balancer documentation as possible solution. You 
can find lots of examples with sticky sessions configuration fot this module 
for tomcat backends.
On Mar 12, 2012 6:19 PM, Kashif Rahman kashif.rah...@vopium.com wrote:
Thanks Anam, but we are looking at to use mod proxy for Apache/Tomcat 
Communication and session persistence. Can it be done using our requirement?
 
Thank you,
 
Regards,
Kashif Rahman.
 
From:Anam Ali Khan [mailto:anamalik...@yahoo.com] 
Sent: Friday, March 09, 2012 7:44 PM
To: users@httpd.apache.org
Cc: Kashif Rahman
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 
Hi,
 
I would recommend HAProxy as a load balancer in your PHP + JSP application 
environment. It will work as follows:
 
1. First HAProxy will accept client request.
2. It will forward those requests to two machines via round robin 
3. Each WebServer must use mod_jk as a connector (module) for Apache/Tomcat 
communication and session persistence.
4. HAproxy also perform health checking for two servers.
 
-Anam
 


 
From:Kashif Rahman kashif.rah...@vopium.com
To: users@httpd.apache.org 
Sent: Friday, 9 March 2012, 11:36
Subject: [users@httpd] Apache + Tomcat Load Balancing
 
Hi,
 
We have requirement for to load balance our PHP + JSP application. I need to 
know that how can I load balance 2 Apache web Servers and 2 Tomcat Servers, 
1st Web Server + Tomcat on 1st machine and 2nd Web Server + Tomcat on 2nd 
machine. We want to use Proxy Load Balancer for Apache to tomcat communication.
If we use single Apache Web Server and 2 tomcat instances on different 
machines, it seems to be working and sharing session fine, but when we add 2nd 
apache web server to 

Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-15 Thread Anam Ali Khan
Why are you defining mod_proxy_balancer directives in WEB1  WEB2. You only 
need to configure these in Apache Load Balancer machine.

Correct me if i am wrong.

-Anam




 From: Anam Ali Khan anamalik...@yahoo.com
To: users@httpd.apache.org users@httpd.apache.org 
Sent: Thursday, 15 March 2012, 22:13
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 

Do not use session replication/sharing, use session stickiness instead.

-Anam




 From: Igor Cicimov icici...@gmail.com
To: users@httpd.apache.org 
Sent: Wednesday, 14 March 2012, 14:48
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 

What is in apache log file, any proxy errors? I would do some extra logging if 
i was you as given in the below link:
http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html#stickyness_troubleshooting

On Mar 14, 2012 8:28 PM, Kashif Rahman kashif.rah...@vopium.com wrote:

Yes I have that same in server.xml on both tomcats.
 
Thank you,
 
Best Regards,
Kashif Rahman
 
From:Igor Cicimov [mailto:icici...@gmail.com] 
Sent: Wednesday, March 14, 2012 2:21 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
Does the route parameters in the apache balancer tomcat1 and tomcat2 match the 
jvmRoute value in the tomcat connectors?
On Mar 12, 2012 9:19 PM, Kashif Rahman kashif.rah...@vopium.com wrote:
Here what I have used :
 
==
 
ProxyRequests Off
    Proxy *
  AddDefaultCharset Off
  Order deny,allow
  Allow from all
    /Proxy
    ProxyPass /balancer-manager !
    ProxyPass /examples balancer://qawebcluster/examples
    ProxyPassReverse /examples balancer://qawebcluster/examples
    ProxyPass /kashif/admin ajp://x.x.x.x:18009/kashif/admin
    ProxyPassReverse /kashif/admin ajp://x.x.x.x:18009/kashif/admin
 
    #ProxyPass /kashif balancer://qawebcluster/kashif 
stickysession=JSESSIONID|jsessionid
    #ProxyPassReverse /kashif balancer://qawebcluster/kashif 
stickysession=JSESSIONID|jsessionid
    ProxyPass /kashif balancer://qawebcluster/kashif
    ProxyPassReverse /kashif balancer://qawebcluster/kashif
    ProxyPass /k balancer://qawebcluster/k 
stickysession=JSESSIONID|jsessionid
    ProxyPassReverse /k balancer://qawebcluster/k 
stickysession=JSESSIONID|jsessionid
   Proxy balancer://qawebcluster
  BalancerMember ajp://127.0.0.1:8009 route=tomcat1 disablereuse=On
  BalancerMember ajp://x.x.x.x:8009 route=tomcat2 disablereuse=On
  ProxySet lbmethod=byrequests
    /Proxy
 
ProxyPreserveHost Off
ProxyStatus On
 
==
We have this config on WEB1 as WEB2 both.  3 machines involved. 1 Apache only 
for load balancing and 2 machines as WEB1 and WEB2 having Apache and tomcat on 
each.
 
We are using mod_proxy_ajp
 
Tomcat is clustered. Session replication works, if single Apache is handling 2 
tomcat instances. When we start second Apache, tomcat session replication 
stops. We want to have failover for PHP side too. 
 
Thank you,
 
Regards,
Kashif Rahman.
 
From:Igor Cicimov [mailto:icici...@gmail.com] 
Sent: Monday, March 12, 2012 2:12 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
You can at least tell us what OS are these servers running on? Also you said 
when you put second apache something is not working so we would like to see 
your apache config if you dont mind. Another thing not clear to me is tomcat 
session replication. Are the tomcats clustered? If not how do they replicate 
the sessions between each other?
In meantime check mod_proxy_balancer documentation as possible solution. You 
can find lots of examples with sticky sessions configuration fot this module 
for tomcat backends.
On Mar 12, 2012 6:19 PM, Kashif Rahman kashif.rah...@vopium.com wrote:
Thanks Anam, but we are looking at to use mod proxy for Apache/Tomcat 
Communication and session persistence. Can it be done using our requirement?
 
Thank you,
 
Regards,
Kashif Rahman.
 
From:Anam Ali Khan [mailto:anamalik...@yahoo.com] 
Sent: Friday, March 09, 2012 7:44 PM
To: users@httpd.apache.org
Cc: Kashif Rahman
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 
Hi,
 
I would recommend HAProxy as a load balancer in your PHP + JSP application 
environment. It will work as follows:
 
1. First HAProxy will accept client request.
2. It will forward those requests to two machines via round robin 
3. Each WebServer must use mod_jk as a connector (module) for Apache/Tomcat 
communication and session persistence.
4. HAproxy also perform health checking for two servers.
 
-Anam
 


 
From:Kashif Rahman kashif.rah...@vopium.com
To: users@httpd.apache.org 
Sent: Friday, 9 March 2012, 11:36
Subject: [users@httpd] Apache + Tomcat Load Balancing
 
Hi,
 
We have requirement for to load balance our PHP + JSP application. I need to 
know that how

Re: [users@httpd] htaccess

2012-03-14 Thread Anam Ali Khan
Yes, Apache access.htaccess only at that point where you inserted AllowOverride 
in the directory container. 

It also saves a little disk io load on web server :)


-Anam




 From: Nick Edwards nick.z.edwa...@gmail.com
To: users users@httpd.apache.org 
Sent: Wednesday, 14 March 2012, 11:41
Subject: [users@httpd] htaccess
 
Hi,
Just trying to clarify it is best to allow these in the virtualhost
root on a per domain

For instance at present we have
Directory /
    AllowOverride None
    Options None
    Require all denied
/Directory

I know this is good :)

But then we have
Directory /var/www
    AllowOverride AuthConfig
    Options +Indexes
/Directory

now assume each virtualhosts web root  is under
/var/www/virtuals/domain.name/var/www/html

I understand that current setup means apache looks in all dirs up to /var/www

So, am I assuming it is best in each virtualhost container I am
better off using a directory container like
directory /var/www/virtuals/domain.name/var/www/html?
AllowOverride AuthConfig
/directory
and removing  authconfig from the /var/www

I am thinking this saves a little performance as it then only looks
for .htaccess in

/var/www/virtuals/domain.name/var/www/html
/var/www/virtuals/domain.name/var/www/html/blog/
/var/www/virtuals/domain.name/var/www/html/blog/includes


rather than going up the chain further, is that correct? 3 looks versus 8 ?


Also seeing segfaults still occasionally, no further info on that,
with 2K hosts a machine it is impossible to peruse every log trying to
track down what host/request caused it.

Also (they say things come in threes!) any comments on previous post a
few days ago re crazy logging :-
Thanks

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-13 Thread Anam Ali Khan
First check Apache supports session stickness in PHP application environment, 
if yes then you can go with your current configuration instead of HAproxy.

-Anam



 From: Kashif Rahman kashif.rah...@vopium.com
To: users@httpd.apache.org; 'Anam Ali Khan' anamalik...@yahoo.com 
Sent: Tuesday, 13 March 2012, 2:45
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
So what solution you would recommend and what is best option for session 
sharing?

Thank you,

Best Regards,

Kashif Rahman

-Original Message-
From: Tom Evans [mailto:tevans...@googlemail.com] 
Sent: Monday, March 12, 2012 9:49 PM
To: users@httpd.apache.org; Anam Ali Khan
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing

On Mon, Mar 12, 2012 at 4:40 PM, Anam Ali Khan anamalik...@yahoo.com wrote:
 Hello,

 It looks like very complex configuration in your application environment.
 You can achieve the same with HAProxy example as given before.

 Why opt for complex configuration instead of easy available solution.

 Thanks,
 Anam


Your non-complex solution involves replacing the load balancing httpd server 
with a load balancing HAProxy server.

I fail to see how that decreases complexity. You have to learn how to configure 
two things, instead of one thing twice.

HAProxy also cannot serve static files, whilst a load balancing httpd can.

Cheers

Tom

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-13 Thread Anam Ali Khan
Dear Kashif, as per your comments below:

 
We are using mod_proxy_ajp
 
Tomcat is clustered. Session replication works, if single Apache is handling 2 
tomcat instances. When we start second Apache, tomcat session 
replication stops. We want to have failover for PHP side too.

Why are you using mod_proxy_ajp module. You should use mod_proxy_balancer. For 
PHP load balancing and session stickiness it can easily be implemented using 
cookie based approach.

And one more interesting thing is that you should use less request counting 
method to handle Load Balancing efficiently.

Please follow the documentation carefully. You can achieve your goal instead of 
HAproxy solution.

Thanks,
Anam

 



 From: Anam Ali Khan anamalik...@yahoo.com
To: Kashif Rahman kashif.rah...@vopium.com; users@httpd.apache.org 
users@httpd.apache.org 
Sent: Tuesday, 13 March 2012, 14:13
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 

First check Apache supports session stickness in PHP application environment, 
if yes then you can go with your current configuration instead of HAproxy.

-Anam



 From: Kashif Rahman kashif.rah...@vopium.com
To: users@httpd.apache.org; 'Anam Ali Khan' anamalik...@yahoo.com 
Sent: Tuesday, 13 March 2012, 2:45
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
So what solution you would recommend and what is best option for session 
sharing?

Thank you,

Best Regards,

Kashif Rahman

-Original Message-
From: Tom Evans [mailto:tevans...@googlemail.com] 
Sent: Monday, March 12, 2012 9:49 PM
To: users@httpd.apache.org; Anam Ali Khan
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing

On Mon, Mar 12, 2012 at 4:40 PM, Anam Ali Khan anamalik...@yahoo.com wrote:
 Hello,

 It looks like very complex configuration in your application environment.
 You can achieve the same with
 HAProxy example as given before.

 Why opt for complex configuration instead of easy available solution.

 Thanks,
 Anam


Your non-complex solution involves replacing the load balancing httpd server 
with a load balancing HAProxy server.

I fail to see how that decreases complexity. You have to learn how to configure 
two things, instead of one thing twice.

HAProxy also cannot serve static files, whilst a load balancing httpd can.

Cheers

Tom

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-13 Thread Anam Ali Khan
Last but not the least mod_proxy_balancer supports AJP protocol :)

-Anam




 From: Anam Ali Khan anamalik...@yahoo.com
To: users@httpd.apache.org users@httpd.apache.org; Kashif Rahman 
kashif.rah...@vopium.com 
Sent: Tuesday, 13 March 2012, 23:07
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 

Dear Kashif, as per your comments below:

 
We are using mod_proxy_ajp
 
Tomcat is clustered. Session replication works, if single Apache is handling 2 
tomcat instances. When we start second Apache, tomcat session 
replication stops. We want to have failover for PHP side too.

Why are you using mod_proxy_ajp module. You should use mod_proxy_balancer. For 
PHP load balancing and session stickiness it can easily be implemented using 
cookie based approach.

And one more interesting thing is that you should use less request counting 
method to handle Load Balancing efficiently.

Please follow the documentation carefully. You can achieve your goal instead of 
HAproxy solution.

Thanks,
Anam 

 



 From: Anam Ali Khan anamalik...@yahoo.com
To: Kashif Rahman kashif.rah...@vopium.com; users@httpd.apache.org 
users@httpd.apache.org 
Sent: Tuesday, 13 March 2012, 14:13
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 

First check Apache supports session stickness in PHP application environment, 
if yes then you can go with your current configuration instead of HAproxy.

-Anam



 From: Kashif Rahman kashif.rah...@vopium.com
To: users@httpd.apache.org; 'Anam Ali Khan' anamalik...@yahoo.com 
Sent: Tuesday, 13 March 2012, 2:45
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
So what solution you would recommend and what is best option for session 
sharing?

Thank you,

Best Regards,

Kashif Rahman

-Original Message-
From: Tom Evans [mailto:tevans...@googlemail.com] 
Sent: Monday, March 12, 2012 9:49 PM
To: users@httpd.apache.org; Anam Ali Khan
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing

On Mon, Mar 12, 2012 at 4:40 PM, Anam Ali Khan anamalik...@yahoo.com wrote:
 Hello,

 It looks
 like very complex configuration in your application environment.
 You can achieve the same with
 HAProxy example as given before.

 Why opt for complex configuration instead of easy available solution.

 Thanks,
 Anam


Your non-complex solution involves replacing the load balancing httpd server 
with a load balancing HAProxy server.

I fail to see how that decreases complexity. You have to learn how to configure 
two things, instead of one thing twice.

HAProxy also cannot serve static files, whilst a load balancing httpd can.

Cheers

Tom

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-12 Thread Anam Ali Khan
Hello,

It looks like very complex configuration in your application environment. You 
can achieve the same with HAProxy example as given before.

Why opt for complex configuration instead of easy available solution.

Thanks,
Anam




 From: Kashif Rahman kashif.rah...@vopium.com
To: users@httpd.apache.org 
Sent: Monday, 12 March 2012, 15:17
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 

Here what I have used :
 
==
 
ProxyRequests Off
    Proxy *
  AddDefaultCharset Off
  Order deny,allow
  Allow from all
    /Proxy
    ProxyPass /balancer-manager !
    ProxyPass /examples balancer://qawebcluster/examples
    ProxyPassReverse /examples balancer://qawebcluster/examples
    ProxyPass /kashif/admin ajp://x.x.x.x:18009/kashif/admin
    ProxyPassReverse /kashif/admin ajp://x.x.x.x:18009/kashif/admin
 
    #ProxyPass /kashif balancer://qawebcluster/kashif 
stickysession=JSESSIONID|jsessionid
    #ProxyPassReverse /kashif balancer://qawebcluster/kashif 
stickysession=JSESSIONID|jsessionid
    ProxyPass /kashif balancer://qawebcluster/kashif
    ProxyPassReverse /kashif balancer://qawebcluster/kashif
    ProxyPass /k balancer://qawebcluster/k 
stickysession=JSESSIONID|jsessionid
    ProxyPassReverse /k balancer://qawebcluster/k 
stickysession=JSESSIONID|jsessionid
   Proxy balancer://qawebcluster
  BalancerMember ajp://127.0.0.1:8009 route=tomcat1 disablereuse=On
  BalancerMember ajp://x.x.x.x:8009 route=tomcat2 disablereuse=On
  ProxySet lbmethod=byrequests
    /Proxy
 
ProxyPreserveHost Off
ProxyStatus On
 
==
We have this config on WEB1 as WEB2 both.  3 machines involved. 1 Apache only 
for load balancing and 2 machines as WEB1 and WEB2 having Apache and tomcat on 
each.
 
We are using mod_proxy_ajp
 
Tomcat is clustered. Session replication works, if single Apache is handling 2 
tomcat instances. When we start second Apache, tomcat session replication 
stops. We want to have failover for PHP side too. 
 
Thank you,
 
Regards,
Kashif Rahman.
 
From:Igor Cicimov [mailto:icici...@gmail.com] 
Sent: Monday, March 12, 2012 2:12 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
You can at least tell us what OS are these servers running on? Also you said 
when you put second apache something is not working so we would like to see 
your apache config if you dont mind. Another thing not clear to me is tomcat 
session replication. Are the tomcats clustered? If not how do they replicate 
the sessions between each other?
In meantime check mod_proxy_balancer documentation as possible solution. You 
can find lots of examples with sticky sessions configuration fot this module 
for tomcat backends.
On Mar 12, 2012 6:19 PM, Kashif Rahman kashif.rah...@vopium.com wrote:
Thanks Anam, but we are looking at to use mod proxy for Apache/Tomcat 
Communication and session persistence. Can it be done using our requirement?
 
Thank you,
 
Regards,
Kashif Rahman.
 
From:Anam Ali Khan [mailto:anamalik...@yahoo.com] 
Sent: Friday, March 09, 2012 7:44 PM
To: users@httpd.apache.org
Cc: Kashif Rahman
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 
Hi,
 
I would recommend HAProxy as a load balancer in your PHP + JSP application 
environment. It will work as follows:
 
1. First HAProxy will accept client request.
2. It will forward those requests to two machines via round robin 
3. Each WebServer must use mod_jk as a connector (module) for Apache/Tomcat 
communication and session persistence.
4. HAproxy also perform health checking for two servers.
 
-Anam
 



From:Kashif Rahman kashif.rah...@vopium.com
To: users@httpd.apache.org 
Sent: Friday, 9 March 2012, 11:36
Subject: [users@httpd] Apache + Tomcat Load Balancing
 
Hi,
 
We have requirement for to load balance our PHP + JSP application. I need to 
know that how can I load balance 2 Apache web Servers and 2 Tomcat Servers, 1st 
Web Server + Tomcat on 1st machine and 2nd Web Server + Tomcat on 2nd machine. 
We want to use Proxy Load Balancer for Apache to tomcat communication.
If we use single Apache Web Server and 2 tomcat instances on different 
machines, it seems to be working and sharing session fine, but when we add 2nd 
apache web server to have fail over for PHP too, tomcat stops replicating 
session? If anyone is running such type of setup then kindly do let me know 
what could be the issues or anything missing. I am using Apache WebServer as a 
load balancer for both Apache too.
 
   
 Apache Webserver
   
 |
   
 

Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-09 Thread Anam Ali Khan
Hi,I would recommend HAProxy as a load balancer in your PHP + JSP application environment. It will work as follows:1. First HAProxy will accept client request.2. It will forward those
 requests to two machines via round robin3. Each WebServer must use mod_jk as a connector (module) for Apache/Tomcat communication and sessionpersistence.4. HAproxy also perform health checking for two servers.-Anam  
  From: Kashif Rahman kashif.rah...@vopium.com To: users@httpd.apache.org  Sent: Friday, 9 March 2012, 11:36 Subject: [users@httpd] Apache + Tomcat Load Balancing   Hi, We have requirement for to load balance our PHP + JSP application. I need to know that how can I load balance 2 Apache web Servers and 2 Tomcat Servers, 1st Web Server + Tomcat on 1st machine and 2nd Web Server + Tomcat on 2nd machine. We want to use Proxy Load Balancer for Apache to tomcat communication.If we use single Apache Web Server and 2 tomcat instances on different machines, it seems to be working and sharing session fine, but when we add 2nd apache web server to have fail over for PHP too, tomcat stops replicating session? If anyone is running such type of setup then kindly do let me know what could be the issues or anything missing. I am using Apache WebServer as a load
 balancer for both Apache too.  Apache Webserver | |  _ |__ |  | Apache Webserver Apache Webserver | |  Tomcat  Tomcat  What could be the recommended solution for this requirement? Thank you, Best Regards,Kashif RahmanPrincipal SCM Engineer Vopium A/S | Office# 2, 7th Floor, Shaheen Complex | 38 Abbot RoadLahore | Pakistan | t + 92 42 6316491 | f + 92 42 6316492  + 92 334 9771227 | kashif_r | w www.vopium.com 

Re: [users@httpd] What's the name of the http server on my Ubuntu: httpd or apache2?

2012-03-06 Thread Anam Ali Khan
I think it is not so important to call Apache web server as apache2 in any 
distribution.


The truth is that the proper name of Apache Web Server is httpd which is why 
Apache Software Foundation call by this name.


-Anam




 From: Mathijs mathijs...@gmail.com
To: users@httpd.apache.org 
Cc: julioser...@gmail.com 
Sent: Tuesday, 6 March 2012, 3:19
Subject: Re: [users@httpd] What's the name of the http server on my Ubuntu: 
httpd or apache2?
 

The Debian/Ubuntu distributions, or rather their Apache HTTPD package 
maintainers, have renamed the binary to apache2, amongst other modifications. 
This was mainly done to differentiate between Apache 1.x and Apache 2.x, but 
its use is mostly void nowadays.
Some other changes and layout peculiarities are listed 
here: http://wiki.apache.org/httpd/DebianDeb0rkification 


On Mon, Mar 5, 2012 at 11:12 PM, Julio Sergio julioser...@gmail.com wrote:

I'm very puzzled with this simple question: the name of the http server is httpd
or apache2?
This is because, all apache documentation, in http.apache.org, refers to it as
httpd, however in my Ubuntu installation it appears to be apache2.
Were not I someone that has some idea of this, I would be certainly lost.
I don't know who to blame for this: Apache, Ubuntu or both?

Do you have any comments?

Thanks,

-Sergio.


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




-- 
Gr,

Mathijs

Re: [users@httpd] viurtual management

2012-03-02 Thread Anam Ali Khan
Create a symbolic link in each domain document root.

-Anam




 From: Pete Houston p...@openstrike.co.uk
To: users@httpd.apache.org 
Sent: Friday, 2 March 2012, 15:17
Subject: Re: [users@httpd] viurtual management
 
On Fri, Mar 02, 2012 at 08:06:55PM +1000, Nick Edwards wrote:
  With a lot of virtual hosts, is it possible to have a sort of global
 (  /admin ) directory, which uses a specific dir elsewhere, that
 everyone is referenced to when they type  their.domain/admin

Sounds like an Alias to me. Any reason not to set an alias in your main
conf? eg.

    Alias    /admin    /path/to/global/admin

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

Re: [users@httpd] public_html directory authentication

2012-03-02 Thread Anam Ali Khan
Hello,

Try with this configuration:

 Directory /home/username/public_html/Private
    AuthType Basic
    AuthUserFile  /home/username/public_html/Private/.htpasswd
    AuthName Test
    Require valid-user
    AllowOverride All
    Order allow,deny
    Allow from all

/Directory

chmod 644 /home/username/public_html/Private/.htpasswd
chown root:apache /home/username/public_html/Private/.htpasswd

Note: You dont need to store password file in a publicly accessible directory, 
i think it can be a security risk.

-Anam




 From: John D javadevelope...@gmail.com
To: users@httpd.apache.org 
Sent: Friday, 2 March 2012, 0:48
Subject: [users@httpd] public_html directory authentication
 

I'm running Apache/2.2.3 on a centos 5 server and trying to setup 
authentication for a subdirectory in a user's public_html folder.
I created a .htaccess file and .htpasswd file in that subdirectory  with 
permissions 0644. But now the subdirectory does not show up 
on the web page. In my httpd.conf file I have:

 Directory /home/*/public_html
   AllowOverride AuthConfig
 /Directory

I've also tried adding this to the httpd conf file
 Directory /home/username/public_html/Private
    AuthType Basic
    AuthUserFile  /home/username/public_html/Private/.htpasswd
    AuthName Test
    Require valid-user
/Directory


but that also doesn't seem to work. The only thing that works a bit for me is 
to set AllowOverride to None in the /home/*/public_html directory config but 
that just enables the folder to show and does no authentication. Can anyone 
help me?

Thanks

Re: [users@httpd] Problems with cgi scripts and Apache's log.

2012-03-01 Thread Anam Ali Khan
You can try following configuration in Apache virtual host container.

LocationMatch ^[/]cgi-bin[/](*)\.dll)$
Order deny,allow
Deny from all
/LocationMatch

SetEnvIfNoCase Request_URI ^[/]cgi-bin[/](*)\.dll)$ dontlog
CustomLog/var/log/httpd/access_log combined env=!dontlog

First will deny allow requests that ending in dll extension and next directives 
will not logged those requests in Apache logs.

Regards,
Anam




 From: Antonio Fernández Pérez antoniofernan...@fabergames.com
To: users@httpd.apache.org 
Sent: Thursday, 1 March 2012, 22:02
Subject: Re: [users@httpd] Problems with cgi scripts and Apache's log.
 

Thanks for all answers.

I had some doubts about this. I think that is interesting log all data 
(accesses or errors). I 'm afraid these logs are growing a lot, I don't know if 
this is bad. I should to define some directives with my partners and we should 
to decide what to do with this.

Thanks for your help.

Best regards, 

Toni.

El 1 de marzo de 2012 17:54, Jim Jagielski j...@jagunet.com escribió:

Which do you want: to stop the logfiles from growing or deny the
requests?

Or both?


On Mar 1, 2012, at 11:40 AM, Antonio Fernández Pérez wrote:

 Hi again,

 My apologies for these messages. Now, I have checked it and is growing the 
 access log file. How can I do to deny these requests? I'm trying to 
 configure Apache to deny all requests that tries to execute .dll files ind 
 cgi-bin directory. Any idea? I don't know how can I do it.

 Thanks.

 Best regards,

 Toni.

 El 1 de marzo de 2012 17:09, Antonio Fernández Pérez 
 antoniofernan...@fabergames.com escribió:
 Thanks for your help.

 I have gotten it doing this:
 AliasMatch ^/cgi-bin/(.*)\.dll$ /var/www/go_away.html

 Now Apache doesn't log errors about dll loads. Do you think that is it 
 correct?

 Thanks.

 Best regards,

 Toni.

 El 1 de marzo de 2012 16:32, Antonio Fernández Pérez 
 antoniofernan...@fabergames.com escribió:

 I put an error log output.

 Thanks,

 [Thu Mar 01 16:31:10 2012] [error] [client 80.24.29.20] script not found or 
 unable to stat: /var/www/www.fabergames.net/cgi-bin/cbws1084x.dll
 [Thu Mar 01 16:31:12 2012] [error] [client 88.23.110.4] script not found or 
 unable to stat: /var/www/www.fabergames.net/cgi-bin/cbws1084x.dll
 [Thu Mar 01 16:31:12 2012] [error] [client 217.127.6.33] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:13 2012] [error] [client 212.36.73.27] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:14 2012] [error] [client 217.126.29.45] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:14 2012] [error] [client 83.34.151.133] (13)Permission 
 denied: exec of '/var/www/go_away.html' failed
 [Thu Mar 01 16:31:14 2012] [error] [client 83.34.151.133] Premature end of 
 script headers: go_away.html
 [Thu Mar 01 16:31:14 2012] [error] [client 83.42.159.135] (13)Permission 
 denied: exec of '/var/www/go_away.html' failed
 [Thu Mar 01 16:31:14 2012] [error] [client 83.42.159.135] Premature end of 
 script headers: go_away.html
 [Thu Mar 01 16:31:14 2012] [error] [client 79.148.190.156] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:16 2012] [error] [client 80.34.128.246] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 83.55.242.122] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 88.18.154.61] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 217.127.7.73] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 80.28.208.232] (13)Permission 
 denied: exec of '/var/www/go_away.html' failed
 [Thu Mar 01 16:31:17 2012] [error] [client 80.28.208.232] Premature end of 
 script headers: go_away.html
 [Thu Mar 01 16:31:17 2012] [error] [client 217.127.7.73] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:18 2012] [error] [client 80.35.91.44] File does not exist: 
 /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:18 2012] [error] [client 88.27.241.160] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin


 El 1 de marzo de 2012 16:24, Antonio Fernández Pérez 
 antoniofernan...@fabergames.com escribió:

 Hi again,

 I have tried to configure this in my virtualhost of Apache but does not 
 works. I have defined in virtualhost config file this: Alias 
 /cgi-bin/cbws1084.dll /var/www/go_away.html
 Then, I have executed #service apache2 reload, the Apache's error log 
 continues growing a lot (because continues .dll request).

 Something is wrong in my configuration. Please help me.

 Thanks.

 Best regards,

 Toni.

 El 1 de marzo de 2012 15:47, Steve Swift swi...@swiftys.org.uk escribió:

 My 

Re: [users@httpd] Problems with cgi scripts and Apache's log.

2012-03-01 Thread Anam Ali Khan
Place SetEnvIfNoCase in a single line.


Sorrt, first will deny ALL requests that ending in dll extension and next 
directives will not logged those requests in Apache logs.

Thanks,
Anam




 From: Anam Ali Khan anamalik...@yahoo.com
To: users@httpd.apache.org users@httpd.apache.org 
Sent: Friday, 2 March 2012, 0:27
Subject: Re: [users@httpd] Problems with cgi scripts and Apache's log.
 

You can try following configuration in Apache virtual host container.

LocationMatch ^[/]cgi-bin[/](*)\.dll)$
Order deny,allow
Deny from all
/LocationMatch

SetEnvIfNoCase Request_URI ^[/]cgi-bin[/](*)\.dll)$ dontlog
CustomLog/var/log/httpd/access_log combined env=!dontlog

First will deny allow requests that ending in dll extension and next directives 
will not logged those requests in Apache logs.

Regards,
Anam




 From: Antonio Fernández Pérez antoniofernan...@fabergames.com
To: users@httpd.apache.org 
Sent: Thursday, 1 March 2012, 22:02
Subject: Re: [users@httpd] Problems with cgi scripts and Apache's log.
 

Thanks for all answers.

I had some doubts about this. I think that is interesting log all data 
(accesses or errors). I 'm afraid these logs are growing a lot, I don't know if 
this is bad. I should to define some directives with my partners and we should 
to decide what to do with this.

Thanks for your help.

Best regards, 

Toni.

El 1 de marzo de 2012 17:54, Jim Jagielski j...@jagunet.com escribió:

Which do you want: to stop the logfiles from growing or deny the
requests?

Or both?


On Mar 1, 2012, at 11:40 AM, Antonio Fernández Pérez wrote:

 Hi again,

 My apologies for these messages. Now, I have checked it and is growing the 
 access log file. How can I do to deny these requests? I'm trying to 
 configure Apache to deny all requests that tries to execute .dll files ind 
 cgi-bin directory. Any idea? I don't know how can I do it.

 Thanks.

 Best regards,

 Toni.

 El 1 de marzo de 2012 17:09, Antonio Fernández Pérez 
 antoniofernan...@fabergames.com escribió:
 Thanks for your help.

 I have gotten it doing this:
 AliasMatch ^/cgi-bin/(.*)\.dll$ /var/www/go_away.html

 Now Apache doesn't log errors about dll loads. Do you think that is it 
 correct?

 Thanks.

 Best regards,

 Toni.

 El 1 de marzo de 2012 16:32, Antonio Fernández Pérez 
 antoniofernan...@fabergames.com escribió:

 I put an error log output.

 Thanks,

 [Thu Mar 01 16:31:10 2012] [error] [client 80.24.29.20] script not found or 
 unable to stat: /var/www/www.fabergames.net/cgi-bin/cbws1084x.dll
 [Thu Mar 01 16:31:12 2012] [error] [client 88.23.110.4] script not found or 
 unable to stat: /var/www/www.fabergames.net/cgi-bin/cbws1084x.dll
 [Thu Mar 01 16:31:12 2012] [error] [client 217.127.6.33] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:13 2012] [error] [client 212.36.73.27] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:14 2012] [error] [client 217.126.29.45] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:14 2012] [error] [client 83.34.151.133] (13)Permission 
 denied: exec of '/var/www/go_away.html' failed
 [Thu Mar 01 16:31:14 2012] [error] [client 83.34.151.133] Premature end of 
 script headers: go_away.html
 [Thu Mar 01 16:31:14 2012] [error] [client 83.42.159.135] (13)Permission 
 denied: exec of '/var/www/go_away.html' failed
 [Thu Mar 01 16:31:14 2012] [error] [client 83.42.159.135] Premature end of 
 script headers: go_away.html
 [Thu Mar 01 16:31:14 2012] [error] [client 79.148.190.156] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:16 2012] [error] [client 80.34.128.246] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 83.55.242.122] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 88.18.154.61] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 217.127.7.73] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:17 2012] [error] [client 80.28.208.232] (13)Permission 
 denied: exec of '/var/www/go_away.html' failed
 [Thu Mar 01 16:31:17 2012] [error] [client 80.28.208.232] Premature end of 
 script headers: go_away.html
 [Thu Mar 01 16:31:17 2012] [error] [client 217.127.7.73] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:18 2012] [error] [client 80.35.91.44] File does not exist: 
 /var/www/www.fabergames.net/Fabergames/cgi-bin
 [Thu Mar 01 16:31:18 2012] [error] [client 88.27.241.160] File does not 
 exist: /var/www/www.fabergames.net/Fabergames/cgi-bin


 El 1 de marzo de 2012 16:24, Antonio Fernández Pérez 
 antoniofernan...@fabergames.com escribió:

 Hi again,

 I have tried to configure this in my virtualhost of Apache

Re: [users@httpd] Static content switching in Apache

2012-02-29 Thread Anam Ali Khan
Thank you Tom for your reply.

I don't want to serve static content from Apache, i want to forward those 
requests to lightweight web servers and they should be capable to serve those 
content.



 From: Tom Evans tevans...@googlemail.com
To: users@httpd.apache.org; Anam Ali Khan anamalik...@yahoo.com 
Sent: Tuesday, 28 February 2012, 19:54
Subject: Re: [users@httpd] Static content switching in Apache
 
On Tue, Feb 28, 2012 at 2:32 PM, Anam Ali Khan anamalik...@yahoo.com wrote:
 Hello,

 I would like to implement following configurations in Apache web server:

 Static content switching (forwarding) of files in Apache to lightweight web
 servers - Servers like thttpd/lightttpd
 Responce should be return directly by those lightweight web servers.


mod_proxy will do that.

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

Apache is quite capable of serving files from disk though, why not just let it?

Cheers

Tom

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
      from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

[users@httpd] Static content switching in Apache

2012-02-28 Thread Anam Ali Khan
Hello,

I would like to implement following configurations in Apache web server:

1. Static content switching (forwarding) of files in Apache to 
lightweight web servers - Servers like thttpd/lightttpd
2. Responce should be return directly by those lightweight web servers.


Waiting of your prompt responce.

Thank you
Anam