Re: [EMAIL PROTECTED] Apache directory access & Suse AppArmor

2008-10-15 Thread Yoom Nguyen
Eric, It seems if I enable /srv/www/domainroot/images/* via AppArmor then I don't even need to declare in Apache configuration file. Is this true? I assume apache2 will not allow something like this? Options None Order deny,allow Deny from all Allow from 172.24.16.0/

Re: [EMAIL PROTECTED] Apache directory access & Suse AppArmor

2008-10-15 Thread Eric Covener
On Wed, Oct 15, 2008 at 7:53 AM, Yoom Nguyen <[EMAIL PROTECTED]> wrote: > Can anyone tell me what is the different between Apache2 directory access as > compare to AppArmor come with SuSE? They're independent, and you need to satisfy both to successfully serve a file. Just like Apache config and t

[EMAIL PROTECTED] Apache directory access & Suse AppArmor

2008-10-15 Thread Yoom Nguyen
Can anyone tell me what is the different between Apache2 directory access as compare to AppArmor come with SuSE? I though SuSe AppArmor allow administrator to control the files, directory system level access.  And If you define something like these syntax below it will allow administrator

Re: [EMAIL PROTECTED] Rewriting URLs to remove .html extension

2008-10-15 Thread Nick Kew
On 15 Oct 2008, at 17:29, François Beausoleil wrote: Hi all! I moved my blog from a CMS to plain files. My old links are of the form: http://blog.teksol.info/tags/unit-testing All files are now stored with a .html extension, such that %{DOCUMENT_ROOT}/tags/unit-testing.html is an exist

[EMAIL PROTECTED] Are There others algorithm scheduler to load balance in Apache ??

2008-10-15 Thread ricardo figueiredo
hi, I am search modules or programs that has differents algorithns to load balancers. The module mod_proxy_balancer has just 2 algorithm and I want test others load balancers. -- Thank You !! Ricardo

[EMAIL PROTECTED] Modify HTTP response code

2008-10-15 Thread anand k
Hi, I'm trying to modify the HTTP status code of the response. One solution to do this is via "as-is". I was wondering if this could be achieved directly via an apache directive so that apache would not need to read the file. Is there a way to modify the HTTP status code via mod_headers? -- Vie

Re: [EMAIL PROTECTED] Rewriting URLs to remove .html extension

2008-10-15 Thread Brian Mearns
It looks like %{REQUEST_FILENAME} is the /full/ system path to the file, so I think the %{DOCUMENT_ROOT} is incorrect there. I'm not familiar with RewriteCond's, but personally I would try removing the DOCUMENT_ROOT from that condition. Good luck. -Brian On Wed, Oct 15, 2008 at 12:29 PM, François

[EMAIL PROTECTED] Rewriting URLs to remove .html extension

2008-10-15 Thread François Beausoleil
Hi all! I moved my blog from a CMS to plain files. My old links are of the form: http://blog.teksol.info/tags/unit-testing All files are now stored with a .html extension, such that %{DOCUMENT_ROOT}/tags/unit-testing.html is an existing file. I found a thread in 2004 which talked about t

Re: [EMAIL PROTECTED] Apache server - Output to the same page whatever request

2008-10-15 Thread solprovider
On 10/14/08, MierMier <[EMAIL PROTECTED]> wrote: > MierMier wrote: > > I have an appche server 2.x. + PHP, And I woundered rather it is possible > > to output the same page (i.e. "a.php") for a request of whatever page. > > > > I will give an examples: > > if the client try to reach "/hello/i

[EMAIL PROTECTED] Determine file system directory in DirectoryIndex script

2008-10-15 Thread Brian Mearns
Using the DirectoryIndex directive, I understand you can specify a non-relative file path, for instance /var/www/index_for_all.php. My question is this: is there a way to find out the system path for the directory being indexed from within that file? I know I can get the requested URL and various r

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy, order of execution?

2008-10-15 Thread Eric Covener
On Wed, Oct 15, 2008 at 7:25 AM, howard chen <[EMAIL PROTECTED]> wrote: > Thanks. > > On Wed, Oct 15, 2008 at 7:19 PM, Eric Covener <[EMAIL PROTECTED]> wrote: >> Only where they overlap and it's before 2.2, because it's undefined as >> to which will run first. >> >> In 1.3 you might be able to cont

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy, order of execution?

2008-10-15 Thread howard chen
Thanks. On Wed, Oct 15, 2008 at 7:19 PM, Eric Covener <[EMAIL PROTECTED]> wrote: > Only where they overlap and it's before 2.2, because it's undefined as > to which will run first. > > In 1.3 you might be able to control it by AddModule ordering, but in > 2.0 it may differ from system to system an

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy, order of execution?

2008-10-15 Thread Eric Covener
On Wed, Oct 15, 2008 at 7:07 AM, howard chen <[EMAIL PROTECTED]> wrote: > Hello, > > On Wed, Oct 15, 2008 at 6:49 PM, Eric Covener <[EMAIL PROTECTED]> wrote: >> On Wed, Oct 15, 2008 at 4:47 AM, howard chen <[EMAIL PROTECTED]> wrote: >>> >>> Seems that Rewrite is done after the proxy? How to control

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy, order of execution?

2008-10-15 Thread howard chen
Hello, On Wed, Oct 15, 2008 at 6:49 PM, Eric Covener <[EMAIL PROTECTED]> wrote: > On Wed, Oct 15, 2008 at 4:47 AM, howard chen <[EMAIL PROTECTED]> wrote: >> >> Seems that Rewrite is done after the proxy? How to control the order then? > > in 2.2, rewrite will always happen first. In 2.0 it's unpre

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy, order of execution?

2008-10-15 Thread Eric Covener
On Wed, Oct 15, 2008 at 4:47 AM, howard chen <[EMAIL PROTECTED]> wrote: > > Seems that Rewrite is done after the proxy? How to control the order then? in 2.2, rewrite will always happen first. In 2.0 it's unpredictable. To control the order, use RewriteRule with [P] instead of ProxyPass when it "

Re: [EMAIL PROTECTED] Redirect/ReWrite config for multiple domains to different pages

2008-10-15 Thread Brian Mearns
If customer1's_domain.com and customer2's_comain.com are DNS entries to your server, then your solution can be found in VirtualHosts. This setup allows you to use different configurations depending on the hostname the client the provides when they connect. In this case, you can just set up the appr

[EMAIL PROTECTED] Redirect/ReWrite config for multiple domains to different pages

2008-10-15 Thread Paul Robson
Having read the Apache and mod_ReWrite docs I can't see how to setup the below secienario and Google searches are fruitless as I'm not quite sure exactly what to search for. I have a web application which allows many customers to access it without knowing about each other by suppling their id in th

RE: [EMAIL PROTECTED] mod_rewrite, mod_proxy, order of execution?

2008-10-15 Thread Ashutosh.Mohanty
Hello Chen, Can you please elaborate little more, like what's there in logs, and the configuration. Thanks, Best Regards, Ashutosh Mohanty -Original Message- From: howard chen [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 2:17 PM To: users@httpd.apache.org Subject: [EMAIL

[EMAIL PROTECTED] mod_rewrite, mod_proxy, order of execution?

2008-10-15 Thread howard chen
Hello , I have the following config in httpd.conf: my site is http://www.example.com (port 80) == RewriteEngine On RewriteRule ^/$/cgi-bin/index.cgi ProxyPass /cgi-bin/ http://www.example.com:9000/cgi-bin/ ProxyPassReverse /cgi-bin/ http://www.example.c

Re: [EMAIL PROTECTED] memory usage in apache2 on debian 32 and 64bits

2008-10-15 Thread Matus UHLAR - fantomas
On 14.10.08 19:34, Luis Cañas Díaz wrote: > I've been this afternoon having a look at one of my servers and I'm > having many problems with the memory usage. do you having performance problems, or problems from not understanding what those numbers mean? > I've seen in a Debian 64 bits that a apac