Re: [users@httpd] SSL Smartcard and Chrome browser

2011-10-05 Thread Devraj Mukherjee
How is this an Apache question?

On Tue, Oct 4, 2011 at 1:21 AM, Margus Pärt  wrote:
> Hello!
>
>
> Problem #1
>
> 1. Log in to site1.com with Smartcard (and enter PIN1)
> 2. Go to site2.com and enter with Smartcard
>
>
> Result:
> No PIN1 is asked. (Chrome caches PIN1)
>
>
>
> Problem #2
>
> 1. Log in to site1.com with Smartcard (SSLCacheTimeout and
> KeepAliveTimeout are 1)
> 2. Try to log in again without Smartcard
>
> Result:
> Certificate is not asked again. (Haven't had the time to test, but
> Chrome probably keeps TCP session up, so SSL session is never timed
> out.)
>
>
>
>
> Any ideas?
>
>
> Br,
> Margus
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [users@httpd] Can Basic authentication (or equivalent) ask a script to perform the authentication?

2011-10-04 Thread Devraj Mukherjee
On Wed, Oct 5, 2011 at 4:15 PM, Ben Timby  wrote:
> On Tue, Oct 4, 2011 at 8:51 PM, Devraj Mukherjee  wrote:
>> Is it possible to configure Apache to ask a script to perform the
>> authentication / authorization but allow Apache to serve the content?
>
> Yes, with mod_wsgi even.
>
> http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms
>

Thanks very much for pointing that out.

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



Re: [users@httpd] Could Apache login support CAPTCHA and lockout?

2011-10-04 Thread Devraj Mukherjee
Hi Neal,

I have used http://authmemcookie.sourceforge.net/ previously to create
a form based authentication for web sites.

The form can be in any scripting language Apache supports so CAPTCHA
should be easy to implement.

On Tue, Oct 4, 2011 at 11:44 PM, Neal Rhodes  wrote:
> We have bunches of web applications which use the regular Apache login
> protection, and they won't run unless REMOTE_USER is set by the Apache
> login.
>
> 
> require valid-user
> 
>
> 
> require valid-user
> 
>
> AuthName O-Visitor
> AuthUserFile /usr/appl/cgi/.htpasswd
>
> AuthType Basic
>
>
> Looking at improving security, it would seem that it would be much harder to
> conduct brute-force attacks on these systems if we could configure Apache
> login to do two things:
>
> A. Present the CAPTCHA style validation prompt as part of the login, to make
> it difficult for scripted attacks to proceed;
> B. Lockout an individual username in the .htpasswd file after X failed login
> attempts.
>
> Are there flavors of linux apache which have modules to provide this?
>
>
> Neal Rhodes
> MNOP Ltd
>
>

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



[users@httpd] Can Basic authentication (or equivalent) ask a script to perform the authentication?

2011-10-04 Thread Devraj Mukherjee
Hi all,

We have a largish application written in Python / MySQL running under
Apache 2.2.x + mod_wsgi (Ubuntu 11.04).

Part of the application requires us to deliver large number of
documents to each user. Problem being each user has different levels
of access (based on roles they have in an application).

I hate the idea of having my app generate .htaccess files (like what a
lot of popular CMSes do), or streaming the file through a script
(would undermine performance).

I have looked into using mod_auth_mysql which could do the
authentication part, but authorization would be an issue due to the
complex rules of our app.

Is it possible to configure Apache to ask a script to perform the
authentication / authorization but allow Apache to serve the content?

Thanks.

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



Re: [users@httpd] Invoking PHP without .php extension?

2011-07-07 Thread Devraj Mukherjee
On Fri, Jul 8, 2011 at 9:54 AM, Michael B Allen  wrote:
> This is a wreck and I must say I don't think it has much to do with
> PHP. It has to do with the CGI model which is all but dead.
>

Considered Python via mod_wsgi?

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



Re: [users@httpd] Invoking PHP without .php extension?

2011-07-07 Thread Devraj Mukherjee
Hi,

If your Rewrite rule reads something like this

RewriteRule ^api/(.*) api-gateway.php   [L]

Then basically you can extract the last few bit using regular
expression in our case

$urlParts = null;
preg_match('/api\/([^\/]+)\/([0-9]+)*/', $_SERVER['REQUEST_URI'], $urlParts);
$handlerName = count($urlParts) > 1 ? $urlParts[1] : null;
$identifier = count($urlParts) > 2 ? $urlParts[2] : null;

I would strongly suggest that you use Rewrite rules to achieve this.
Allowing arbitary patterns to use the PHP parser could be an issue
from a security standpoint.

I don't this is "disaster" its just a little misconfiguration :)

On Fri, Jul 8, 2011 at 3:54 AM, Michael B Allen  wrote:
> I want a request like:
>
>  /base/path/to/target?foo=bar
>
> to invoke a particular PHP file for everything under /base.
>
> It seems the usual way (only way?) to do this is with something like:
>
>  AddHandler php5-script .php
>  AddType text/html .php
>  DirectoryIndex index.php
>
> and with directives like:
>
>  Alias /base /path/to/base/html
>
>  
>    Options Indexes FollowSymLinks
>    AllowOverride None
>    Order allow,deny
>    Allow from all
>
>    RewriteEngine on
>    RewriteBase /base
>    RewriteCond %{REQUEST_FILENAME} !-f
>    RewriteCond %{REQUEST_FILENAME} !-d
>    RewriteCond %{REQUEST_FILENAME} !-l
>    RewriteRule .* index.php [L]
>  
>
> However this is a disaster. The request for
> /base/path/to/target?foo=bar is received inside the PHP script as
> /base/index.php/path/to/target?foo=bar. Now the application has to
> have intimate knowledge of the presence of the extra /index.php
> segment and exclude it from URLs and paths emitted by the application.
> The internal representation doesn't match the reality of the external
> representation.
>
> So my question is, is there a way to directly invoke a preconfigured
> PHP script for everything at / under a certain location without using
> the .php extension in the request path?
>
> Mike
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [users@httpd] Caching module

2011-04-01 Thread Devraj Mukherjee
We found this while we were doing some research,
http://code.google.com/p/modmemcachecache/

Although our solution ended up being caching on an application level.

If you are a little more specific about your problem, we might be able
to share a little more.

On Sat, Apr 2, 2011 at 10:24 AM, Mohit Anchlia  wrote:
> Apache 2:
>
> Is there any caching module in apache that will also keep cache in
> sync accross multiple apache servers (cluster)?
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



[users@httpd] SetEnv scope

2011-03-30 Thread Devraj Mukherjee
Hi all,

We find it quite handy to use SetEnv to store configuration variables
for our PHP / Python Web apps.

Helps us keep configuration separate to the application, hence moving
code from development to production environments becomes quite simple.

Our SetEnvs are generally defined in our VirtualHost configuration.

I was wondering what the scope of these variables are. Are they
confined to the scripts VirtualHost or the entire Apache instance.

Would this be considered a security issue?

Thanks.

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



Re: [users@httpd] Filtering HTTPS Access

2011-03-16 Thread Devraj Mukherjee
Is there a reason you dont want to use Rewrite rules?

On Sat, Mar 12, 2011 at 5:27 AM, Farid Izem  wrote:
> Hi,
>
> I'm currently working on a configuration to force HTTPS by directory.
> Configuration looks like :
>
> 
> SSLOptions StrictRequire
> SSLRequireSSL
> ErrorDocument 403 https://mywebserver.fr.world.socgen
> 
>
> This configuration works perfectly. But i'd like to allow HTTP
> connection to a particular set of IP,
> for example keepalive from load balancer which are perform only in HTTP.
>
> First solution would be to change load balancer to make keepalive over
> HTTPS. I have no money.
> Second solution, redirect HTTP to HTTPS  using Rewrite engine whereas
> using SSLRequireSSL and ErrorDocument.
> Already done and validated.
>
> I want to avoid RewriteRule usage. I d'like to used SSLRequire with
> some conditions.
>
> Is it possible with
>
> 
> SSLOptions StrictRequire
> SSLRequireSSL
> SSLRequire ( %{REMOTE_ADDR} !~ m/192\.172\.10\.[1-2]/)
> ErrorDocument 403 https://mywebserver.fr.world.socgen
> 
>
> It is not working.Can you help me please ? is SSLRequire only used in
> HTTPS context only ?
>
> Regards,
>
> Farid
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [users@httpd] Reverse Proxying to 2 backends, how to keep the URL-directory prefix having relative paths?

2011-02-11 Thread Devraj Mukherjee
On Sat, Feb 12, 2011 at 1:57 PM, Nick Kew  wrote:
> On Fri, 11 Feb 2011 22:52:25 +0100
> Nick Rudnick  wrote:
>
>
>> I run into problems with the second backend, as its relative paths lack
>> the wiki/ prefix.
>
> http://www.apachetutor.org/admin/reverseproxies
>

That article uses mod_proxy_html to rewrite URLs in the page body.

I have a similar setup and now use mod_substitute to do the same
thing. Much simpler and don't have to build the module separately (not
that its difficult). Upgrades are easier.

I prefer modules distributed as part of the Apache core.

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



Re: [users@httpd] mod_ssl, erratic performance

2011-01-22 Thread Devraj Mukherjee
I found that turning KeepAlive On makes a huge difference to SSL
performance (or performance in general).

On Sat, Jan 22, 2011 at 11:53 AM,   wrote:
> Solaris 10
> Apache version: 2.2.11 & 2.2.17 (32 &64 bit)
>
> We recently moved our production webserver from a sparc platform (T2000) to 
> an x86/64 platform (x2270-m2) and we have noticed an erratic response time 
> for downloads of files using SSL. This seems to randomly occur with any files 
> about 10k or larger. For instance, I have been using a test file of 140K, and 
> it can take 0.5 or 4.8 seconds to transfer. When using the sparc platform, it 
> always only takes 0.5 seconds.
>
> I noticed this as we are using an external monitoring system (Gomez.com) and 
> we started seeing these wildly varying times for transaction processing.
>
> I have tried a cut down SSL setup for testing, and examined every directive 
> and option, and I can't make sense of the problem. I'm using the following 
> configuration string, and I'd be happy to include the configuration setups..
>
> ./configure --prefix=/app/www/apache-2.2.11_32 --with-mpm=worker --enable-ssl 
> --with-apr=/app/apr-1.3.3-32 --with-apr-util=/app/apr-1.3.3-32 
> --enable-mods-shared="headers expires deflate"
>
> Server version: Apache/2.2.17 (Unix)
> Server built:   Jan  5 2011 15:56:01
> Server's Module Magic Number: 20051115:25
> Server loaded:  APR 1.3.3, APR-Util 1.3.4
> Compiled using: APR 1.3.3, APR-Util 1.3.4
> Architecture:   32-bit
> Server MPM:     Worker
>  threaded:     yes (fixed thread count)
>    forked:     yes (variable process count)
> Server compiled with
>  -D APACHE_MPM_DIR="server/mpm/worker"
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>  -D APR_USE_FCNTL_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D DYNAMIC_MODULE_LIMIT=128
>  -D HTTPD_ROOT="/app/www/apache-2.2.17_32"
>  -D SUEXEC_BIN="/app/www/apache-2.2.17_32/bin/suexec"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
> I can move the bare-bones configuration between the sparc and x86 platforms 
> and get normal response on the sparc, and irregular on the x86.
>
> Any help would be appreciated.
>
> John Newton
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [users@httpd] Password Protection Ignored

2011-01-22 Thread Devraj Mukherjee
Have you checked the Order directive?

Also I usually have the Basic authentication in a Location tag to
ensure its been applied to the right URL.

On Sat, Jan 22, 2011 at 11:45 PM, --[ UxBoD ]--  wrote:
> Hi,
>
> I have a reports directory I wish to secure and have created the necessary 
> .htaccess file:
>
> AuthUserFile /www/security/somedomain_access
> AuthType Basic
> AuthName "Restricted Access"
> Require user someuser
>
> I believe my virtual host config is correct:
>
> 
>    ServerAdmin webmas...@somedomain.co.uk
>    DocumentRoot "/www/somedomain.co.uk"
>    
>        AllowOverride All
>    
>
>    ServerName www.somedomain.co.uk
>    ServerAlias somedomain.co.uk
>
>    ExpiresActive On
>    ExpiresByType text/html "access plus 30 seconds"
>    ExpiresByType text/css "access plus 2 weeks"
>    ExpiresByType text/javascript "access plus 2 weeks"
>    ExpiresByType image/png "access plus 1 month"
>    ExpiresByType image/gif "access plus 1 month"
>    ExpiresByType image/jpg "access plus 1 month"
>
>    AddOutputFilterByType DEFLATE text/html text/css text/xml 
> application/x-javascript application/javascript application/xml
>
>    BrowserMatch ^Mozilla/4 gzip-only-text/html
>    BrowserMatch ^Mozilla/4\.0[678] no-gzip
>    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
>
>    DeflateCompressionLevel 6
>
>    Header append Vary User-Agent
>
>    ErrorLog "logs/www.somedomain.co.uk-error.log"
>    CustomLog "logs/www.somedomain.co.uk-access.log" common
> 
>
> Though when I navigate to http://www.somedomain.co.uk/reports/test.html I am 
> never prompted for a user/password :( If I add some random text to .htaccess 
> then I do receive a Server Error so the file is being processed.  Thoughts 
> please ?
> --
> Thanks, 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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [users@httpd] Help with config

2011-01-13 Thread Devraj Mukherjee
Hi Bob,

Are you able to post error messages from your HTTPD error log?

Thanks.

On Thu, Jan 13, 2011 at 11:41 PM, Bob Wilson
 wrote:
> Can any one help with the initial configuration of Apache?
>
> I was told that to make localhost point to a alternative directory I
> should change both the 'Documentroot' AND 'Directory' paths
>
>
> The original info in httpd.conf works OK
>
> DocumentRoot "C:/Program Files (x86)/Apache Software
> Foundation/Apache2.2/htdocs"
>
>  Foundation/Apache2.2/htdocs">
>
> I have changed it to:
>
> DocumentRoot "C:/Users/User/My Documents/htdocs"
>
> 
>
> Which doesn't work with error message 'The requested operation has failed!'
>
> I'm sure that I didn't have this problem with XP but I'm now using Windows 7
>
> Thanks
>
> Bob
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [us...@httpd] RewriteCond %{HTTPS} =on

2011-01-11 Thread Devraj Mukherjee
Condition satisfies if HTTPS protocol is in use.
http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html



On Tue, Jan 11, 2011 at 7:01 PM, Tushar Chavan
 wrote:
> Hi  Experts,
>
> I am bit confused with 'RewriteCond %{HTTPS} =on'.
>
> Can you please tell me, what is the function of RewriteCond %{HTTPS} =on?
> what 'RewriteCond %{HTTPS} =on' will do ?
>
> Best regards,
> Tushar
>

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



Re: [users@httpd] HTTP authentication using HTTP

2011-01-11 Thread Devraj Mukherjee
Hi Anders,

Depending on what the directories contains (eg. your app) I would
nearly be tempted to using OAuth or one of the open authentication
protocols.

I realise that its not the same as Basic authentication where the
authenticated session is generated by another server.

Just my two cents worth!

On Tue, Jan 11, 2011 at 8:52 PM, Anders Melchiorsen
 wrote:
> Hi.
>
> I want to password protect some directories by forwarding the HTTP
> authentication to a different URL. That is, rather than using LDAP or MySQL
> as a backend, I want to use a CGI script (possibly on a different server).
>
> Searching high and low has not helped me -- "http authentication" mostly
> turns up discussions on the htpasswd syntax.
>
> As I was unable to find any official way, I made this test module,
>
>   http://www.kalibalik.dk/anders/software/mod_authn_http/
>
> but it would need some work before I can use it for real (it currently
> forks a curl process to forward the request).
>
> So, my question is: how can I do this with just standard modules?
>
>
> Thanks,
> Anders.
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [us...@httpd] SQL Server authentication

2011-01-11 Thread Devraj Mukherjee
Hi Paolo,

I found this looking for a solution to my MySQL authentication post, might help.
http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html

Says that it supports ODBC.

Good luck.

On Tue, Jan 11, 2011 at 7:58 PM, Paolo DiCanio  wrote:
>
> Hi,
>
> My Apache server currently uses a passwd file for authentication. I need to
> change the authentication scheme so that it uses both this passwd file and a
> list of usernames and passwords stored in an SQL Server database table.
>
> In other words, if the username and password is found in the file, or in the
> database, then authentication succeeds. Obviously the latter will require me
> to configure the database connection parameters, and the SQL query to
> execute (with placeholders for username and password).
>
> If it's not possible for Apache to use both a file and a database for
> authentication, then if someone could explain how to configure SQL Server
> database authentication (only), I'd be very grateful.
>
> Thanks,
> Paolo
> --
> View this message in context: 
> http://old.nabble.com/SQL-Server-authentication-tp30641656p30641656.html
> Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



[us...@httpd] mod_auth_mysql under Ubuntu 10.04 different to CentOS 5.5?

2011-01-10 Thread Devraj Mukherjee
Hi all,

Is mod_auth_mysql an official Apache module?

I have successfully used it under a CentOS 5.5 box for a couple of
years now, installed like so
http://dev.e-taxonomy.eu/trac/wiki/ApacheMySQLAuthentication

We are migrating to an Ubuntu 10.04 VM, and the module distributed by
the package libapache2-mod-auth-mysql, seems to have different
directives and not as flexible. Infact all the directives are
absolutely different.

If there are any Ubuntu admins out there could you point me to
documentation for this module please?

Are these different modules all together?

Thanks for your time.

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



Re: [us...@httpd] CGI-BIN

2010-10-28 Thread Devraj Mukherjee
Hi Motty,

On Fri, Oct 29, 2010 at 9:11 AM, motty.cruz  wrote:
> Hello,
> I'm trying  to get apache to execute cgi scripts outside  cgi-bin
> directory(/usr/local/www/cgi-bin) instead I want to run scripts from
> /usr/local/www/directory. I google it but most furums are for Linux. My
> machine is a FreeBSD 8.1 running Apache 1.2
> Any help is appreciated.

You have to explicitly allow CGI execution


Options +ExecCGI


Refer to http://httpd.apache.org/docs/2.0/howto/cgi.html

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



Re: [us...@httpd] mod_proxy and POST requests

2010-09-07 Thread Devraj Mukherjee
On Tue, Sep 7, 2010 at 5:21 PM, Rainer Jung  wrote:
> On 07.09.2010 06:53, Devraj Mukherjee wrote:
>>
>> A particular requests happens to be a POST request and the proxy fails
>> to proxy the request.
>>
>> Reading the documentation suggests that this is know problem with
>> mod_proxy (http://httpd.apache.org/docs/current/mod/mod_proxy.html,
>> Request Bodies section).
>
> No, it doesn't suggest that. It usually works.
>
> What do you exactly mean by "fail"? Can you increase the log level of Apache
> to debug, retry and post the error log lines written when handling the
> "failed" request? Caution: debug produces lots of output, so best to use a
> test system on which you can reproduce "fails".
>

Rainer, my bad. I meant I get a 400 Bad Request.

Will see if I can increase the verbosity of the logs.

Thanks.

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



[us...@httpd] mod_proxy and POST requests

2010-09-06 Thread Devraj Mukherjee
Hi all,

I am using Apache as a reverse proxy to proxy Lotus iNotes 8.5.1.
iNotes is moving to an Ajax based interface which uses JSON strings to
fetch data from the server.

A particular requests happens to be a POST request and the proxy fails
to proxy the request.

Reading the documentation suggests that this is know problem with
mod_proxy (http://httpd.apache.org/docs/current/mod/mod_proxy.html,
Request Bodies section).

Is there a work around for this?

Any pointers / suggestions are welcome.

Thanks.

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



Re: [us...@httpd] Multiple IPs NATed to apache

2010-05-23 Thread Devraj Mukherjee
If you have NATed the addresses, the local interface has no idea about
the external addresses. Hence the VirtualHost will be defined on the
local IP. I don't see this to be a problem  unless you want to use
SSL.

Or map each external IP to a different internal IP, for transparency
in your configuration.

On Thu, May 20, 2010 at 5:54 AM, Mike A. Leonetti
 wrote:
> I have three external IP addresses NATed through the firewall to one
> local IP address on a Linux server.  Will I still be able to define a
> VirtualHost for each external IP address in apache even though the
> interface is only set up for the one local IP address?
>
> Thanks.
>
> --
> Mike A. Leonetti
> As warm as green tea
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

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



Re: [us...@httpd] Deny from all force

2010-04-11 Thread Devraj Mukherjee
Obviously you are not considering people using "proxies" get around IP
subnets. I would recommend the use of fail2ban and other tools like
that to block them on a per case basis, rather than blocking the whole
country off.

Since this is not an ethics list, I will leave this discussion here.
The web is about freedom of information.

On Mon, Apr 12, 2010 at 2:25 AM, Nilesh Govindarajan  wrote:
> On 04/10/10 13:53, Devraj Mukherjee wrote:
>>
>> Hi Nilesh,
>>
>> Deny and Allow option override can be globally configured as such
>> http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
>>
>> I was wondering how and more importantly WHY you plan to block users
>> from particular countries?
>>
>> On Wed, Apr 7, 2010 at 3:15 PM, Nilesh Govindarajan
>>  wrote:
>>>
>>> Hi,
>>>
>>> I have installed mod_geoip.
>>>
>>> Now I want block Chinese and Russian visitors which should not overridden
>>> in
>>> .htaccess
>>>
>>> I.e. The Deny directive should work globally and should not be overridden
>>> by
>>> any other 'Allow from All' directives.
>>>
>>> Is this possible or I have to configure this in every .htaccess ?
>>>
>>> --
>>> Nilesh Govindarajan
>>> Site&  Server Administrator
>>> www.itech7.com
>>> मेरा भारत महान !
>>> मम भारत: महत्तम भवतु !
>>>
>>> -
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> Seehttp://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
>>>
>>>
>>
>>
>>
>
> Chinese and Russians were creating nuisance on my site, so wanted to block
> them all. I did it using ipset.
>
> --
> Nilesh Govindarajan
> Site & Server Administrator
> www.itech7.com
> मेरा भारत महान !
> मम भारत: महत्तम भवतु !
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Deny from all force

2010-04-10 Thread Devraj Mukherjee
Hi Nilesh,

Deny and Allow option override can be globally configured as such
http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride

I was wondering how and more importantly WHY you plan to block users
from particular countries?

On Wed, Apr 7, 2010 at 3:15 PM, Nilesh Govindarajan  wrote:
> Hi,
>
> I have installed mod_geoip.
>
> Now I want block Chinese and Russian visitors which should not overridden in
> .htaccess
>
> I.e. The Deny directive should work globally and should not be overridden by
> any other 'Allow from All' directives.
>
> Is this possible or I have to configure this in every .htaccess ?
>
> --
> Nilesh Govindarajan
> Site & Server Administrator
> www.itech7.com
> मेरा भारत महान !
> मम भारत: महत्तम भवतु !
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] RE: Apache 1.3.41 + SSL

2010-04-10 Thread Devraj Mukherjee
Hi Motty,

According to Networking handbook on Freebsd's site
http://www.freebsd.org/doc/handbook/network-apache.html

Section 29.7.5.1 mod_ssl

"If you have not yet installed Apache, then a version of Apache 1.3.X
that includes mod_ssl may be installed with the www/apache13-modssl
port. SSL support is also available for Apache 2.X in the www/apache22
port, where it is enabled by default."

On Thu, Apr 8, 2010 at 8:22 AM, motty.cruz  wrote:
> Hello All,
>
> I’m newbie to this mail list!. I have a question regarding Apache and SSL.
> We installed apache version 1.3.41 and I would like to add support for ssl.
> To support encryption for squirrelmail. Currently I’m running FreeBSD 8.0
> amd64. Do I have to uninstall Apache and reinstall with ssl support or can I
> install module_ssl withouth have to uninstall apache 1.3.41.
>
>
>
> Thanks in advance, I appreciate any help.
>
> -Motty



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] htpasswd is working in only one machine

2010-03-28 Thread Devraj Mukherjee
On Wed, Mar 24, 2010 at 11:42 PM, Wagner Pereira  wrote:
> Hi, folks.
>
> I made all the configs described in the manual, but the htpasswd/htaccess
> authentication method is working only in my machine.
>
> It means that just for me it is necessary provide the user/password for
> access the Rancid via cvsweb.
>

Could this be a virtual host problem?

If it works on the machine that you have Basic authentication
configured (i.e localhost) and doesn't work for remote connections?

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Reverse Proxy incorrectly transform content

2010-02-10 Thread Devraj Mukherjee
Hi Pongtawat,

We have worked on a similar issue with the Pentaho business
intelligence suite. If you are using Apache 2.2 + You can use
mob_substitute and have rules that change the domain name and fix
these issues.

I believe these issues are caused by dynamically generated URLs via
JavaScript etc.

Happy to share my configuration. Hope this helps.

On Tue, Feb 9, 2010 at 3:20 PM, Pongtawat Chippimolchai
 wrote:
> Dear Tom,
> Thank you very much for clarifying this. That explains why it work correctly
> if I save the page as HTML and let Tomcat serve it statically behind Apache
> reverse proxy. So, there must be something wrong with XWiki apps when
> working behind Apache. I have checked the request that was send to Tomcat
> and it seems ok. So, it might be something in the header or environment?
> Thank you,
> Pongtawat
>
> On Mon, Feb 8, 2010 at 6:35 PM, Tom Evans  wrote:
>>
>> On Mon, Feb 8, 2010 at 10:50 AM, Pongtawat Chippimolchai
>>  wrote:
>> > Hello,
>> > I'm using Apache to redirect request via reverse proxy to Tomcat on port
>> > 8080. On most of the pages, it will work flawlessly. However, on some
>> > pages,
>> > it seems that Apache will incorrectly modify the HTML content (IMO, as
>> > part
>> > of URL transformation). For example the following code:
>> > > > href="/Blog/CategoryRss?xpage=plain&category=Blog.News" title="RSS">
>> > becomes:
>> > > > class="wikimodel-freestanding"
>> >
>> > href="http://wiki.knowledgesharing.in.th/Blog/CategoryRss?xpage=plain&category=Blog.News";>> >
>> > class="wikigeneratedlinkcontent">http://wiki.knowledgesharing.in.th/Blog/CategoryRss?xpage=plain&category=Blog.News"
>> > title="RSS">
>> > with a mysterious span code inside href attribute.
>> > FYI, the original HTML validated as XHTML 1.0 Strict.
>> > I have no idea what cause this. Please help.
>> > My setting is as follow.
>> > Apache version:
>> > I have this issue with Apache on both Ubuntu 8.04 and 9.10, i.e. the
>> > following versions:
>> > Server version: Apache/2.2.8 (Ubuntu)
>> > Server built:   Nov 13 2009 21:58:02
>> > Server version: Apache/2.2.12 (Ubuntu)
>> > Server built:   Nov 12 2009 22:51:51
>> > The reverse proxy is configured as follow:
>> > 
>> > ServerName wiki.knowledgesharing.in.th
>> > ServerAdmin "admin AT knowledgesharing DOT in DOT th"
>> > ServerSignature Email
>> > ProxyPass / http://wiki.knowledgesharing.in.th:8080/
>> > ProxyPassReverse / http://wiki.knowledgesharing.in.th:8080/
>> > 
>> > Options FollowSymLinks
>> > AllowOverride None
>> > 
>> > 
>> > The site is live, so you could try it at:
>> > http://wiki.knowledgesharing.in.th/Blog/ (via Apache reverse proxy)
>> > http://wiki.knowledgesharing.in.th:8080/Blog/ (direct to Tomcat, without
>> > reverse proxy)
>> > Thank you very much,
>> > Pongtawat
>>
>> ProxyPass and ProxyPassReverse do not modify the HTML content of the
>> page. From the docs of ProxyPassReverse:
>>
>> Only the HTTP response headers specifically mentioned above will be
>> rewritten. Apache will not rewrite other response headers, nor will it
>> rewrite URL references inside HTML pages. This means that if the
>> proxied content contains absolute URL references, they will by-pass
>> the proxy. A third-party module that will look inside the HTML and
>> rewrite URL references is Nick Kew's mod_proxy_html.
>>
>> Cheers
>>
>> Tom
>>
>> -
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
>



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Web page usage and monitoring

2010-02-10 Thread Devraj Mukherjee
We use Google analytics a lot as well, it seems to work quite well and
gather extra information about the browser etc. Not Apache related but
works well.

On Wed, Feb 10, 2010 at 5:15 AM, Dorrian, William M  Contractor
ace...@saj  wrote:
> We're using Apache 2.0.52 on RHEL 4. Does anyone know if there is there any
> software that we can use to get counts on which pages on our site are
> frequently used?
>
> Thanks,
>
> Bill Dorrian
> Unix/Linux Systems Support
> (904) 232-2742
>
> "Give a man a fish and you've freed him up for the day to write a poem,
> compose a song, or howl at the Gods. Teach a man to fish and you've
> condemned him to a lifetime as a fisherman."
>
> -Rodney Anonymous



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] using mod_custom_header module.

2010-02-10 Thread Devraj Mukherjee
What do you mean by printing Client IP?

On Thu, Feb 11, 2010 at 4:13 AM, Arnab Ganguly  wrote:
> Hi All,
> Please guide me in printing the Client ip address using mod_custom_header
> module ?Any standard  LogFromat configuration do we have for this ?
> Also would like to know about the directive "X-LB-CLIENT-IP" and what way it
> is different from "X-Forwarded-For"?
>
> Thanks in advance.
> -A
>



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] speaking url is not working inside subfolder

2010-01-20 Thread Devraj Mukherjee
Hi,

On Wed, Jan 20, 2010 at 3:28 AM, J. Bakshi  wrote:
> Dear list,
>
> Options +FollowSymLinks
> RewriteEngine on
>
> # domain for typo3
>
> RewriteCond %{HTTP_HOST} ^(www.)domain.in$
> RewriteCond %{REQUEST_URI} !^/TYPO3/
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule ^(.*)$ /TYPO3/$1
> RewriteCond %{HTTP_HOST} ^(www.)domain.in$
> RewriteRule ^(/)?$ TYPO3/index.php [L]
>

You question is specific to TYPO3 and I believe you would get better
support on their list. We run a few TYPO3 site and use the following
rewrite rule to support what you refer to as "speaking urls".

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (\.html|/)$ /index.php

-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Handling multipart/form-data requests via Apache Module

2010-01-20 Thread Devraj Mukherjee
If you can access the POST data then it should be a matter of decoding
the mime string and get the multipart data out.

Are you writing your module in C, Perl or Python?

On Thu, Jan 21, 2010 at 5:07 AM, Jain Sachinkumar  wrote:
> Hello,
>
> We are interested in logging HTTP requests that are sent to web
> applications hosted on the Apache web server. Eventually, as part of a
> larger research project, we would like to be able to replay these requests
> automatically on the web application. For this purpose, we have developed
> an Apache module which logs HTTP GET and POST requests and associated data
> in a seperate file. In this module, I am able to log data that is
> associated with a POST request, but I am having difficulty handling
> multipart/form-data requests and was hoping I could get some help from the
> community on this.
>
> Consider for example, the following form
>
> upload.html
> 
> Last Name:  
> Choose a file to upload: 
> 
> 
>
> uploader.php
> This is the php script which will handles the file that is sent through
> the HTML page.
>
> In our logger, we already have the functionality to log the 'lname',
> 'uploadedfile' fields and their values. But, in addition to the file's
> name which comes as a value of the 'uplaodedfile' form field, we would
> like to get the file's contents as well. We would like to save the file to
> a predetermined location, for e.g., if the user uploads a zip file, we
> would like the logger to store the zip file before passing it on to the
> web application.
>
> Is there a way to get the file contents in a logger software that is
> sitting on Apache between the user and the web application. Any
> suggestions/advice would be appreciated.
>
> Regards,
> - Sachin Jain
> Research Assistant,
> Information Systems Department,
> University of Maryland, Baltimore County
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Apache 2.2: mod_proxy_balancer does not work as documented?

2010-01-14 Thread Devraj Mukherjee
Hi Francis,

I use mod_proxy_ajp to proxy Pentaho, also a Tomcat application. I
think what you are looking for is ProxyPassReverseCookieDomain so the
cookies are set for the right domain.

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

Let me know if you want me to share my configuration files.

On Thu, Jan 14, 2010 at 7:28 PM, Francis GALIEGUE  wrote:
> Hello everyone,
>
> For a production platform, we have plans to migrate to Apache 2.2,
> using mod_proxy_ajp and mod_proxy_balancer instead of mod_jk.
>
> Unfortunately, while the "single Tomcat below" case works with no
> problem, the balancer does not work at all...
>
> Here is the relevant part of the configuration:
>
>        
>                BalancerMember
> ajp://tomcat-rod-r7.admin.one2team.rod:8009 keepalive=On
>                BalancerMember
> ajp://tomcat-cdgdev-r7.admin.one2team.rod:8009 keepalive=On
>                ProxySet stickysession=JSESSIONID nofailover=On
>        
>
>        RewriteEngine On
>        RewriteCond %{REQUEST_URI} ^/servlet/ [OR]
>        RewriteCond %{REQUEST_URI} \.jsp$
>        RewriteRule ^/(.*) balancer://rod-r7/$1 [P]
>
> With this configuration, sessions do not stick :(
>
> So, looking at the documentation again, I saw that there is a
> scolonpathdelim parameter which can be set to On, in order to account
> for the part behind the ';' in the JSESSIONID. And indeed, there is
> one in the generated cookies.
>
> Unfortunately, when I add this to the ProxySet directive above, httpd
> -S says that the parameter is unknown :(
>
> Help :(
>
> --
>
> Francis Galiegue
> ONE2TEAM
> Ingénieur système
> Mob : +33 (0) 683 877 875
> Tel : +33 (0) 178 945 552
> f...@one2team.com
> 40 avenue Raymond Poincaré
> 75116 Paris
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Appending or replacing html/text output

2010-01-12 Thread Devraj Mukherjee
If you are using Apache 2.x then mod_substitute is your friend.

2010/1/12 Sam Minning :
> hello apache community,
>
>
>
> I am using Apache 2.2, combined with PHP via fastcgi
> Additionally there is mod_deflate in use, as well as gzip-compression via
> PHP.
>
> I would like to append a string and/or replace the body-tag of any served
> document, no matter if it is plain .html or parsed .php and no matter
> whether
> GZIP is enabled at PHP. mod_deflate is always used by default.
>
> The idea is to replace the closing body-tag of any document and if there is
> none
> found, to append one, with some additional text.
>
>
> I have tried several modules, e.g. mod_substitute or similar, but none was
> able to fit my needs, mostly not supported compression from mod_deflate or
> gzip caused problems, so I was unable to implement this at all.
>
> Maybe there are some modules, even unofficial ones, out there I do not know
> of, which could solve this issue. Any ideas about such modules or any
> suggestions
> on how to accomplish this?
>
>
> thanks very much in advance,
> Sam
>
>
> 
> Windows Live: Make it easier for your friends to see what you’re up to on
> Facebook.



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Redirection from DocumentRoot

2010-01-12 Thread Devraj Mukherjee
You can also you use

Alias /testinstall /opt/apache/htdocs/testinstall


On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek  wrote:
> Hello *,
>
> sorry for bother you with this (may be simple) question but I have following
> problem.
> Let's say that my document root is situated to the /usr/apache/htdocs/
>
> Is it possible to configure apache so that after accessing to the
> DocumentRoot page there
> will be done automatic redirection to the /opt/apache/htdocs/testInstall so
> that in URL will be seen
> e.g. http://
> thank you in advance
>
> best regards
> Petr
>
>
>



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Apache on IA64

2010-01-07 Thread Devraj Mukherjee
What OS are you referring to ?

On Thu, Jan 7, 2010 at 5:05 PM, Pravesh Rai  wrote:
> Hi All,
>
> Has anybody tried to port Apache (2.2.6 onwards) to IA64 setup ? If
> yes, what would be the major precautions needs to be taken in that
> case ?
>
> Thank,
> Pravesh
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Intermittent PHP network connection errors, restart fixes it. What's the cause?

2010-01-04 Thread Devraj Mukherjee
Hi Mark,

On Tue, Jan 5, 2010 at 6:41 AM, Mark London  wrote:
> Hi - At the top of my php scripts, I have code to connect to our ldap server,
> in order for the scripts to make ldap requests.  I don't have any disconnect
> call in my code.  Lately I have noticed that the apache server will get into a
> state where connection requests will occasionally fail.  When I refresh the
> page, the connection almost always succeeds on the 2nd attempt.   If I restart
> the apache server, the problem totally goes away for a long period of time.
> So I assume that somewhere, something is causing connections to stay opened
> when the script ends, rather than automatically closing them.
>

>From what you describe your LDAP connections are made from PHP and
thus should have nothing to do with Apache. I would suggest that you
might find more answers if you post this question to the PHP list.

> This error occurs with other types of network connections that the script
> makes (besides ldap), so it's not an ldap issue.
>
> How does Apache automatically close connections?  Is there any way to debug
> the problem, i.e. to see if connections are left opened in some way?
>

As you mentioned above its your PHP script that makes the LDAP
connection not Apache. Apache is not responsible for managing socket
connections that PHP opens.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Setting up a basic http proxy?

2010-01-04 Thread Devraj Mukherjee
You are looking at the right documentation, you need to add rules that
are custom to your situation.

For example if your web server serving the JS is running on port 8080
a rule would look like

ProxyPass /js http://localhost:8080/

On Mon, Jan 4, 2010 at 11:17 AM, DJ AM_Juicebox
 wrote:
> Hi,
>
> I'm looking to run apache as a proxy for web development. I'm running mac ox
> 10.5.4, which already has apache 2.2.8 installed and running.
>
> I'd like to point my javascript files (which are running locally on my
> machine) to:
>
>   http://localhost/test.php
>
> which would hit the local apache server, then have that apache instance
> forward to my real remote server:
>
>   http://www.mysite.com/test.php
>
> I've looked at a few walkthroughs but they seem to be out of date. I'm
> wondering if there's a recent how-to on setting this up - the doc here:
>
>   http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
>
> gives a basic example, but I'm not sure where that text should be added - to
> http.conf? Do I simply add it there, then restart the server?
>
> Thanks
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Upgrading from 1.3.22 to 1.3.41`

2009-12-31 Thread Devraj Mukherjee
Can you please look through the logs and share anything meaningful you
find there?

What OS are you using?

On Fri, Jan 1, 2010 at 4:58 AM, Paul McFerrin  wrote:
> I asked this question of this mailing lists many years ago about my 1.3.22
> and I'm again performing this upgrade to 1.3.41 (last 1.x release).  I have
> gotten my server to respond to both URL's.
>
> However on every page, I get the "Forbidden" error message.  If I do allow
> it to view any page, I them get "The page isn't redirecting properly" error.
>  The htdocs pointer is pointing to thw same page as the 1.3.22 server.
>
> I have place the current copy of httpd.conf at
> http://pmcferrin.homedns.org/httpd.conf
>
> Any help would be appreciated.  The end result is to get php4 installed.
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Devraj Mukherjee
You need to add something like

AddType application/x-httpd-php .php

to your Apache configuration file. You are also likely to get more
information regarding this on the PHP resource centres.

Also is there a reason you aren't choosing Apache 2.x + PHP5?

On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin  wrote:
> I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
> enough to tie things in as a fastcgi.  What other files have to be modified?
> Where does PHP4 have to be installed?  Can someone tie things in for me.  I
> seemed to so close but yet so far.
>
> Rightnow my .php file jst downloads the contents.
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Logs of uploaded files from browser

2009-12-31 Thread Devraj Mukherjee
Do you mean files uploaded by applications running on the Apache
server or by something like mod_dav?


On Thu, Dec 31, 2009 at 7:28 PM, Manoj Singh  wrote:
> Hi,
>
> Is it possible to get the logs of uploaded files in the apache server?
>
> Please help me out.
>
> Regards,
> Manoj
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Change response status from 403 to 404

2009-12-23 Thread Devraj Mukherjee
Depending on which Version of Apache you are using, mod_headers may be
of assistance
http://httpd.apache.org/docs/2.0/mod/mod_headers.html

On Thu, Dec 24, 2009 at 1:40 AM, Xibin Liu  wrote:
> Hello,
>
> Is there an easy way to change the response status in the http header from
> 403 to 404 by configuring the file "httpd.conf"? The reason for doing this
> is to prevent hackers from guessing forbidden web contents by looking for
> 403 in the http header of the response.
>
> Thanks,
> Xibin
>
> 
> Get a great deal on Windows 7 and see how it works the way you want. See the
> Windows 7 offers now.



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Localized Apache webserver

2009-12-23 Thread Devraj Mukherjee
Which part of the log would you want to be localised for your purpose?

On Wed, Dec 23, 2009 at 6:02 PM,   wrote:
> Hello,
>
> I would like to know if Apache webserver can generate localized logging.
> For example, If I install Apache webserver on Japanese OS or English OS with
> system locale changes to japanese, is it possible to generate http logs in
> Japanese language since the administrator will be japanese user. Also any
> info on support for other language and how many languages are supported.
>
> Is there some setting in httpd.conf which can enable this behavior.
>
> Thanks in advance,
> Kaustubh



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Apache config

2009-12-22 Thread Devraj Mukherjee
Provide us some more information please.

- What OS are you using?
- If Linux can you do something like a netstat --listen and see if 443
is being used.
- Change in firewall configuration

On Wed, Dec 23, 2009 at 12:15 PM, cpanon  wrote:
>
> Hello
> I have a Apache2.054 system that was working perfectly with https for 
> months.  I was able to see the specific secured page, it was loading my 
> certificate file, excellent.  All of a sudden, with no change in the 
> configuration, really, it is no longer listening on 443.  I have the log as 
> recently as yesterday with it starting up and showing listening on 443 and 
> 80.  Now just listening on 80..  I updated the drivers on the nics, both 
> Intel Pro, rebooted, clicked my heels.  Nothing.  Has anyone had such a 
> drastic change with it still working over 80?  I will change the NIC, but 
> done believe the problem could be that specific.  All ideas welcomed.  tia.



--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] mod_proxy auth from PHP?

2009-12-20 Thread Devraj Mukherjee
On Mon, Dec 21, 2009 at 1:24 PM, Perl Whore  wrote:
> Ah, thanks. This is a good idea. I didn't know about mod_auth_memcookie.
>
> Yes, it'll be great if you share your configuration so I can have a
> better understanding.
>

The following is what my configuration sort of looks like (very
similar to the example that ships with the module). Ensure that you
put login.php in a directory that is accessible outside your protected
area.

In case of reverse proxies you can do this by

ProxyPass /url !

Needless to say you will need memcached and memcache support in PHP.

 

 Auth_memCookie_CookieName myauthcookie
 Auth_memCookie_Memcached_AddrPort 127.0.0.1:11000

 # to redirect unauthorized user to the login page
 ErrorDocument 401 "/gestionuser/login.php"

 # to specify if the module are autoritative in this directory
 Auth_memCookie_Authoritative on
 # must be set without that the refuse authentification
 AuthType Cookie
 # must be set (apache mandatory) but not used by the module
 AuthName "My Login"

 


-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Module to accept and parse POST in JSON

2009-12-20 Thread Devraj Mukherjee
It might help if you describe what you are trying to achieve and we
might be able to give you a better answer.

On Sun, Dec 13, 2009 at 3:09 AM, Kevac Marko  wrote:
> Hello
>
> Is there any module similar to mod_form
> (http://apache.webthing.com/mod_form/) which is able to accept and
> parse POST request in JSON format (application/json)?
>
> Thanks.
>
> --
> Marko Kevac
> Sent from Moscow, Mow, Russia
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] mod_proxy auth from PHP?

2009-12-20 Thread Devraj Mukherjee
On Mon, Dec 14, 2009 at 11:04 PM, Perl Whore  wrote:
> Here is the situation:
>
> I have a php login page at https://login.mydomain.com and an internal
> server listening only on localhost http://localhost:12345
>
> I want mod_proxy to send to the internal server only if auth was
> successful from the php login page. The user/pass can be in the .php
> file itself like if $_POST['password'] = 'abc' because it's just for a
> single user and I don't require a database although I don't really
> mind using SQLite if mod_proxy requires that I do.
>

This is easier done using Basic authentication with the choice of many
backends, like RDBMS or LDAP, but I am assuming that you want to use
form based authentication for whatever reason.

> Is this possible (I guess nothing is impossible)? If so, which
> authentication module should I be looking into to achieve this?
>

I answered a similar question before, where the user was trying to get
mod_auth_form going for Apache 2.2

We implemented something similar using mod_auth_memcookie
(http://authmemcookie.sourceforge.net/) and you can use your own for
to do the authentication.

Let me know if you want me to share configurations etc.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] reverse proxy with apache 1.3 and apache 2.2

2009-12-20 Thread Devraj Mukherjee
At first guess it seems like your server intra-8.lan is dropping
connections for the new server.

Does intra-8.lan restrict connections from certain IPs?

On Thu, Dec 17, 2009 at 11:54 PM, Jérémie G  wrote:
> Hello,
>
> I have to migrate a working reverse proxy from apache-ssl
> 1.3.33-6sarge3 to apache2 2.2.9-10+lenny6 with ssl but I encounter a
> critical issue : when I try to access the website from behind a proxy,
> it's working with apache 1.3 but not with apache 2.2 (without proxy,
> it's working fine for both version).
>
> The error displayed in the error.log is : [error] (104)Connection
> reset by peer: proxy: prefetch request body failed to 192.168.20.8
> (intra-8.lan) from a.b.c.d ()
>
> Both server have IP address in the same subnet and have only this
> virtual host enabled.
>
> I have tried some tweak in the configuration but I'm clueless to find
> any parameter correcting this behavior. Bellow is the apache-ssl 1.3
> config vhost file :
> 
>        ServerName extranet.enterprise.com
>        ServerAdmin supp...@enterprise.com
>        SSLCertificateFile    /etc/apache-ssl/ssl/ip-13.crt
>        SSLCertificateKeyFile /etc/apache-ssl/ssl/ip-13.key
>        ProxyPass / http://intra-8.lan/
>        ProxyPassReverse / http://intra-8.lan/
> 
>
> An here is the apache 2.2 config file :
> 
> 
>        ServerName extranet-new.enterprise.com
>        ServerAdmin supp...@enterprise.com
>        SSLEngine On
>        SSLCertificateFile    /etc/apache2/ssl/ip-14.crt
>        SSLCertificateKeyFile /etc/apache2/ssl/ip-14.key
>        ProxyRequests Off
>        
>                Order Deny,Allow
>                Allow from all
>        
>        ProxyPass / http://intra-8.lan/
>        ProxyPassReverse / http://intra-8.lan/
> 
> 
>
> I really need to migrate this website to the new server, any idea ?
>
> Jeremie
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Is it possible to disable the Server header from mod_proxy destination?

2009-12-20 Thread Devraj Mukherjee
Yes, you can use mod_headers to change the headers on the proxy.

On Fri, Dec 18, 2009 at 3:33 AM, Perl Whore  wrote:
> I'm using the [P] flag with mod_rewrite to forward requests to an
> internal application server but the Server header returned is that of
> the application server's and not Apache's. Is this the normal
> behaviour? If it is, can I make Apache override that with the Apache
> version instead?
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Allowing users access to their websites (Possibly OT?)

2009-12-20 Thread Devraj Mukherjee
I have experienced something similar with applications that ship
.htaccess files to override parameters for the web server and / or
PHP. These .htaccess files override the settings for your WebDAV
connections.

I ended up creating a virtual host for the WebDAV with a separate
domain name and turned allow override off.

On Sun, Dec 20, 2009 at 3:20 AM, LuKreme  wrote:
> I have several users who have websites on my Apache 2.2.13/FreeBSD 
> 8.0-RELEASE server and I give them access to their files via webdav. This 
> mostly has worked fine for years (Since FreeBSD 4.2-RELEASE), but I 
> occasionally have weird problems with webdav (especially with things like 
> Drupal or WordPress installed), so I am looking for another solution.
>
> I don't want to allow ftp access or any access to a shell on the machine, so 
> what are my options. How are others doing this? (It seems that chroot jails 
> and ftp are still the standard, or is that wrong)
>
> My users are not sophisticated, and webdav is just about as complicated as 
> they can manage. Anything with a shell prompt is going to be nothing but 
> problems.
>
> --
> ...I started playing Myst at 4:30 in the afternoon and looked up
>        suddenly and realized it was February.
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] mod_auth_form in 2.2

2009-12-20 Thread Devraj Mukherjee
Hi Jeff,

I was faced with the same issue and finally concluded that it was
easier not to try and recompile the mod_auth_form for httpd 2.2.
Instead I worked around by using mod_auth_memcookie
http://authmemcookie.sourceforge.net/ and wrote my own form.

Our implementation consisted of a custom two factor authentication (using SMS).

The source comes with an example (form implemented in PHP, but the
choice of language is obviously upto you). I am happy to share parts
of our configuration and experiences.

Let me know if you need any further help on this.

On Sun, Dec 20, 2009 at 5:19 PM, Jeff Shearer  wrote:
>
> Is it possible to implement mod_auth_form in apache 2.2?
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



[us...@httpd] Official websocket implementation in Apache?

2009-12-20 Thread Devraj Mukherjee
Hi all,

We are working on a project that could really make use of Websockets.
We are currently using the Google pywebsocket project but are
concerned about performance. pywebsocket is based around mod_python
and is available at http://pywebsocket.googlecode.com/

Does anyone have any opinions on mod_python based module performance
and any indications of Apache supporting the Websocket protocol.

Thanks.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



[us...@httpd] HTTPS connections via mod_proxy ProxyRemote don't work

2009-12-03 Thread Devraj Mukherjee
Hi all,

I am using Apache as a reverse proxy (primarily because we use
mod_substitute, mod_heads to add Firefox CSS fixes to a web
application provided by a third party for our users). Essentially its
setup as a VirtualHost that reverse proxies the requests to the
external site.

The complication is that this reverse proxy sits in our corporate
network and all external traffic goes through a Squid proxy server. I
am routing the reverse proxy traffic through squid using the
ProxyRemote directive and all works well for HTTP connections.

The external web site has switched to HTTPS and now when I try and
proxy the connection over HTTPS it says

The timeout specified has expired: proxy: HTTPS: attempt to connect ...
ap_proxy_connect_backend disabling worker for (...

Any ideas if I need to do something special when using ProxyRemote and HTTPS?

Thanks.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Reverse proxying is problematic

2009-12-03 Thread Devraj Mukherjee
Also look at mod_substitute and mod_headers

On Wed, Dec 2, 2009 at 10:45 PM, Robert Schenck  wrote:
> Peter,
>
> I have to use Apache, I don't have a choice (says my employer).
>
> On Wed, Dec 2, 2009 at 12:13 PM, Peter Schober 
> wrote:
>>
>> * Robert Schenck  [2009-12-02 12:03]:
>> > My office is subscribed to few academic journals. These journals verify
>> > the
>> > subscription via IP, such that anyone connected to the internet through
>> > our
>> > connection can access the journals.
>>
>> You might also want to look at EZproxy
>> http://en.wikipedia.org/wiki/EZproxy
>> (besides getting the publisher to dump IP-addresses for authorization).
>> -peter
>>
>> -
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Change Content-Disposition from inline to attachment using mod_headers in a reverse proxy?

2009-11-20 Thread Devraj Mukherjee
Hi Nick,

>>
>> We are setting up a reverse proxy to proxy contents from an external
>> web site, because we need to change parts of the content before we
>> serve it to our users (primarily to make the site Firefox friendly).
>> mod_substitute does most of what we want, apart from file downloads.
>> Firefox on Linux (which is most of our users) doesn't seem to handle
>> PDF files delivered inline that well.
>
> Sounds like firefox on linux is badly misconfigured.  LART your sysop!
>

Appreciate the feedback. Will take it up with him.

>> The web site sends down the PDF files with the following header
>>
>> Content-Disposition: inline;filename=Report.pdf
>>
>> I would like the Content-Disposition to be changed to attachment. I
>> believe mod_headers is the module for the job.
>
> Yep.  What's the problem?
> (just dropping the Content-Disposition wouldn't hurt).
>

Ah great. Will try that.

Thanks for your time.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Can mod_proxy authenticate against another proxy (squid) server?

2009-11-20 Thread Devraj Mukherjee
Hi Nick,

On Sat, Nov 21, 2009 at 10:14 AM, Nick Kew  wrote:
> Devraj Mukherjee wrote:
>
>> Can mod_proxy authenticate and route its request against squid or
>> another proxy server?
>
> What authentication method is the squid demanding?  If HTTP-based,
> set the headers in Apache (or if digest, you'd need have to delegate
> to the browser unless you can find a digest-client module).
> If not HTTP, then just allow the clients to authenticate the squid.
>

Thanks for the response. Authentication is set to HTTP.

Is ProxyRemote the proper directive for Apache to use another Proxy
server to get content, when implementing a Reverse proxy?

How do I add headers for outgoing requests?

Any examples or pointers would be greatly appreciated.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



[us...@httpd] Change Content-Disposition from inline to attachment using mod_headers in a reverse proxy?

2009-11-20 Thread Devraj Mukherjee
Hi all,

We are setting up a reverse proxy to proxy contents from an external
web site, because we need to change parts of the content before we
serve it to our users (primarily to make the site Firefox friendly).
mod_substitute does most of what we want, apart from file downloads.
Firefox on Linux (which is most of our users) doesn't seem to handle
PDF files delivered inline that well.

The web site sends down the PDF files with the following header

Content-Disposition: inline;filename=Report.pdf

I would like the Content-Disposition to be changed to attachment. I
believe mod_headers is the module for the job.

Is it possible to use mod_headers to change the parameter value? Can
someone please provide me links to any resources that can help me
understand this better? The examples on the Apache web site are not
enough for me to understand how I may be able to go about this.

Thanks for your time.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



[us...@httpd] Can mod_proxy authenticate against another proxy (squid) server?

2009-11-20 Thread Devraj Mukherjee
Hi all,

I am trying to setup a reverse proxy inside our corporate network to
proxy an external web site. We wish to modify parts of the content
before we send it down the line to our users. We have a proof of
concept working and have managed to use mod_substitute to change what
we need to in the content. Currently my Apache server is connected
directly to the Internet.

As most corporate networks, our production environment has a firewall
to access content from the outside world. Ideally I would like my
Apache server to sit inside the network. To do this I need Apache
(reverse proxy) to authenticate against our squid proxy server to
fetch the content.

Can mod_proxy authenticate and route its request against squid or
another proxy server?

Thanks.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Reverse proxy

2009-10-14 Thread Devraj Mukherjee
I am not familiar with Oracle app servers but I am guessing they are
Tomcat based?

If they are then you might want to look at mod_proxy_ajp as well.

On Fri, Oct 9, 2009 at 6:59 PM, isha b  wrote:
> Hi all
>
> I have a Oracle Web application which is running in backend server as
> http://oraclewebapplication: . I am trying to pass it through apache
> reverse proxy as
>
> https://myreverseproxy/myapps but after initial load its redirects back to
> backend server as http://oraclewebapplication:/AppsLogin   instead of
> https://myreverseproxy/myapps/AppsLogin  resulting page can not be found.
>
> Anybody have solution for this? Looking for some help.
>
>
> Thanks n Regards,
> Isha



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] virtualhost doubt

2009-10-14 Thread Devraj Mukherjee
Hi Andre,

I believe this would be easier handled at the application server /
application level than trying to get Apache to direct error logs based
on URLs.

Unless of course you can create two VirualHost entries in which case
you can redirect the logs to different locations.

On Tue, Oct 13, 2009 at 11:35 PM, Andre Rodrigues
 wrote:
> Hi,
>
> I´ve configured a virtualhost like this:
>
> 
>
> ServerName portal
>
> # SSL config
>
> 
>
> JkMount /app dmb
>
> JkMount /app2 dmb
>
> Errorlog /var/log/apache2/app-error_log
>
> 
>
> If user types http://portal/app the Errorlog would be "Errorlog 
> /var/log/apache2/app-error_log".
> OR
> If user type http://portal/app2 the Errorlog would be "Errorlog 
> /var/log/apache2/app2-error_log".
>
>
> How to config the Errorlog directive in order to have application´s specific 
> logs?
>
>
> Thanks,
> André
>
>
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Authorisation using LDAP

2009-10-14 Thread Devraj Mukherjee
Hi Stephen,

What you describe can be handled by
http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html

and a combination of Location tags if you want your authentication to
be fine grained.


On Wed, Oct 14, 2009 at 3:49 AM, Foster, Stephen (ASPIRE)
 wrote:
>
>
>
>
> Hi there,
>
> I’m wanting to configure apache to provide authorisation using LDAP, my
> users already authenticate via another method so I only want to authorize
> access if the user belongs to a particular group or role. And I want to
> apply this access to both static content in my DocumentRoot and also to
> allow the users to then be proxied onwards. Does anyone have any examples of
> configuration for providing authorisation only, all examples I have found
> related to authentication and then authorization and I can’t get it to work.
>
>
>
> Cheers in advance
>
>
>
> Steve
>
> Capgemini is a trading name used by the Capgemini Group of companies which
> includes Capgemini UK plc, a company registered in England and Wales (number
> 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21
> 6DB.
>
> This message contains information that may be privileged or confidential and
> is the property of the Capgemini Group. It is intended only for the person
> to whom it is addressed. If you are not the intended recipient, you are not
> authorized to read, print, retain, copy, disseminate, distribute, or use
> this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] How to configure Apache 2.2.8 to act as reverse proxy?

2009-10-14 Thread Devraj Mukherjee
Hi Ted,

You might be looking for mod_proxy_html
http://apache.webthing.com/mod_proxy_html/

See if that helps.

On Thu, Oct 15, 2009 at 8:28 AM, Ted Byers  wrote:
>
> This ought to be a FAQ, but I haven't found it yet.
>
> Please be patient with my as I am out of my element (I develop software, and
> I don't normally administer servers of any sort).  I need a simple set up so
> I can write and test code that handles the VIA HTTP header.
>
> If I've understood the documentation I've found so far, this would be a
> reverse proxy.
>
> The server on which this would be most useful is running IndigoPerl.  Alas,
> the examples I found so far for configuring a proxy refer to modules not
> shipped in the Indigoperl distribution.  I do not have a set up where I can
> build Apache, and don't want to build it if I can avoid it.  It has several
> proxy modules (mod_proxy.so, mod_proxy_ftp.so, mod_proxy_http.so, &c.) but
> apparently not the ones that rewrite links to pages on the httpd server that
> is hidden from the outside world by the firewall.
>
> I have two machines with non-routable IP addresses behind a firewall.  The
> router is configured to send requests on port 80 to one of the two machines.
> I have a fixed IP address from my ISP, but I do not have a domain name.
>
> Let's say my two machines have the IP addresses 192.168.2.1 and 192.168.2.2,
> and the latter has my fixed IP address: x1.x2.x3.x4.  How do I tell the
> apache server on the latter that requests come in to x1.x2.x3.x4 are to be
> served from the local htdocs directory and that those coming in on
> x1.x2.x3.x4/the_other_website are to be obtained from 192.168.2.1?  That is
> x1.x2.x3.x4/the_other_website/cgi-bin maps to 192.168.2.1/cgi-bin (and that
> any links on any page on either machine of the form http://192.168.2.1/
> are handled correctly rather than giving the user an error message).
>
> I have found that a link like 192.168.2.1/cgi-bin on a page in
> 192.168.2.2/htdocs works fine when logged on to 192.168.2.2, but it gives an
> error from a machine outside the LAN indicating the page doesn't exist (and
> I know that is because there is no such IP address in the LAN that includes
> the machine I used to test this).
>
> Can you please provide me with an URL that tells me the absolute minimum, in
> terms of modules and directives in the configuration file, to get this
> working so I can get on with writing the code to process the VIA HTTP
> headers?  Or failing that, tell me the bare minimum I need in modules and
> directives, to get this working?
>
> Thanks
>
> Ted
> --
> View this message in context: 
> http://www.nabble.com/How-to-configure-Apache-2.2.8-to-act-as-reverse-proxy--tp25899379p25899379.html
> Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



[us...@httpd] URL exception when using ProxyPass directive (mod_proxy)

2009-09-05 Thread Devraj Mukherjee
Hi all,

I am using mod_proxy to reverse proxy content from another web server.
I have assigned the root of the web server as the root of the
mod_proxy setup, such as

ProxyPass /  http://sourceserver.local/

  ProxyPassReverse /


I would like make an exception and serve some local content at the URL
/forms/ (the content is locally available on the reverse proxy). I
have tried serving this via the Alias directive but have failed.

Is this even possible? Or should I place those files on another server
(or VirtualHost) and reverse proxy them through?

Thanks.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Apache 2.3 source?

2009-06-18 Thread Devraj Mukherjee
On Fri, Jun 19, 2009 at 3:59 PM, Prasanna Ram
Venkatachalam wrote:
>>
>> Is it possible to get a copy of the Apache 2.3 source? Looked around
>> on the source distribution site and can't find anything.
>
>
> Might help. This is an automated snapshot system. Not sure if it completely
> works!! :(
> http://httpd.apache.org/dev/
> http://cvs.apache.org/snapshots/httpd/
> Regards
> Prasanna Ram
>

Thanks a lot.



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



[us...@httpd] Apache 2.3 source?

2009-06-18 Thread Devraj Mukherjee
Hi all,

Is it possible to get a copy of the Apache 2.3 source? Looked around
on the source distribution site and can't find anything.

Thanks.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



Re: [us...@httpd] Configure LDAP authentication group name using script

2008-12-23 Thread Devraj Mukherjee
Thanks.

On Tue, Dec 23, 2008 at 10:52 PM, Eric Covener  wrote:
> On Tue, Dec 23, 2008 at 5:32 AM, Devraj Mukherjee  wrote:
>> Hi all,
>>
>> I am using the "Require group" directive to authenticate my users.
>> Based on the URL I would like the value of the require group to be
>> difference for the site. Is it possible to have a script or DBM file
>> return the list of groups that this directive considers as values?
>
> I don't think you'll have any luck with that.
>
> --
> Eric Covener
> cove...@gmail.com
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

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



[us...@httpd] Configure LDAP authentication group name using script

2008-12-23 Thread Devraj Mukherjee
Hi all,

I am using the "Require group" directive to authenticate my users.
Based on the URL I would like the value of the require group to be
difference for the site. Is it possible to have a script or DBM file
return the list of groups that this directive considers as values?

Thanks.

-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

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



Re: [us...@httpd] mod_dav_svn configuration to support multiple repositories

2008-12-22 Thread Devraj Mukherjee
> If all repositories live in the same directory you can use the
> SVNParentPath directove.
> In the other case you will have to use seperate  blocks, as
> they tell apache to hand over handling of a particular url to mod_svn,
> something you can't do with mod_rewrite.
>

Appreciate your response.

Inside a Location tag I might be able to use the URL environment
variables and parse out the repository that they are trying to access
to implement authentication against MySQL or LDAP.

Am I on the right track there?

Thanks.

-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

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



[us...@httpd] mod_dav_svn configuration to support multiple repositories

2008-12-22 Thread Devraj Mukherjee
Hi all,

I have been successfully running mod_dav_svn locally at work and so
far we have been using a single Subversion repository to store all our
projects, but as work is growing we wish to run separate repos for
various groups here.

As far as I can see I have to make Location tag entries for each
repository that I would like Apache to serve.

Is it possible to configure mod_dav_svn such that I can use the
equivalent of ReWrite rules in the Location tag and dynamically map
back the URL to a destination repository?

Any suggestions + experiences would be helpful. I am trying to make
the configuration of the server bullet proof so  my users can create
repositories and the Apache server honours them without any
configuration changes.

Not sure if its even possible.

-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

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



Re: [EMAIL PROTECTED] httpd segfaults?

2008-03-26 Thread Devraj Mukherjee
I already have that in httpd.conf and don't see any CoreDump files in /tmp.


On Thu, Mar 27, 2008 at 5:11 AM, Joshua Slive <[EMAIL PROTECTED]> wrote:
> On Mon, Mar 24, 2008 at 3:35 AM, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:
>  > Hi everyone,
>  >
>  >  I administer a web server running CentOS running httpd 2.0.59
>  >  distributed from the centosplus repository. I noticed that dmesg
>  >  splits out a heap of these messages. However httpd was still running,
>  >  I am suspecting that a child process spat the dummy.
>  >
>  >  httpd[17570]: segfault at 007fbf3ffca0 rip 002a9a59cc5b rsp
>  >  007fbf3ffc80 error 6
>  >
>  >  Can anyone shed any light on what this might be?
>
>  Here's how to get more info on segfaults:
>  http://httpd.apache.org/dev/debugging.html#crashes
>
>  Joshua.
>
>  -
>  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]
>
>



-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] httpd segfaults?

2008-03-24 Thread Devraj Mukherjee
Hi everyone,

I administer a web server running CentOS running httpd 2.0.59
distributed from the centosplus repository. I noticed that dmesg
splits out a heap of these messages. However httpd was still running,
I am suspecting that a child process spat the dummy.

httpd[17570]: segfault at 007fbf3ffca0 rip 002a9a59cc5b rsp
007fbf3ffc80 error 6

Can anyone shed any light on what this might be?

Thanks.

-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] webdav not authenticating on apache 2.2.3 - centos 5

2008-02-20 Thread Devraj Mukherjee
Hi James,

Not sure if this is the cause but it seems you are providing a
directory name in your location tag where as a Location tag excepts a
URL path.

http://httpd.apache.org/docs/2.0/mod/core.html#location

Thought it might be worth pointing out.

On Thu, Feb 21, 2008 at 7:47 AM, James Chase <[EMAIL PROTECTED]> wrote:
> I've been trying to get webdav to work with apache for a little while
>  now and I must be missing something. Currently I just have the
>  directives like this
>
>  
> DAV on
>  
>
>  I just want to verify that webdav actually works. When trying to map the
>  location with Windows XP it asks for a username/password which I don't
>  understand why it should? I also tried a program called "Webdrive" and
>  it was unable to connect and gave this error when authenticating as an
>  anonymous user:
>
>  "Unable to connect to server, error information below
>
>  Error: HTTP Error response received from server, erorr=405 (4516)
>  Operation: Connecting to server
>  Server Response: 405 Method Not Allowed"
>
>  I tried the litmus test on the centos machine and got this:
>
>  "[EMAIL PROTECTED] james]# /usr/local/bin/litmus http://192.168.1.8/dav/
>  -> running `basic':
>   0. init.. pass
>   1. begin. FAIL (Could not create new collection
>  `/dav/litmus/' for tests: 405 Method Not Allowed
>  Server must allow `MKCOL /dav/litmus/' for tests to proceed)
>  <- summary for `basic': of 2 tests run: 1 passed, 1 failed. 50.0%
>  See debug.log for network/debug traces."
>
>  The directory permissions look fine...owned by apache:apache and 775
>
>  Before this I was using a .htpasswd file and had authentication on in
>  the apache directives but the usernames and passwords I added to the
>  file would not work. It had the exact same problem I have now. I'm sure
>  it's something simple and I'm an idiot -- I just can't figure it out   =o(
>
>
>
>  ---
>  [This E-mail scanned for viruses by Declude EVA]
>
>
>
>  -
>  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]
>
>



-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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 2.0.59 catches SIGTERM and shuts down

2008-02-19 Thread Devraj Mukherjee
Hi everyone,

I administer a CentOS 4.6 server (use the CentOS plus repo) that runs
Apache 2.0.59 and PHP 5.1.6

For the past few days the httpd processes have been locking up (the
parent processes still seem to be there), but the rest of it comes to
a grinding halt. The server itself is still accessible (I can SSH and
restart httpd and all comes good). The only third party module I was
using was mod_security which I have removed now to try and resolve the
issue.

Most sites run PHP based CMSes and thus use MySQL.

Some of the messages in /var/log/httpd/error_log are

GNU Ghostscript 7.07: Unrecoverable error, exit code 1

and of course

[Tue Feb 19 21:42:34 2008] [notice] caught SIGTERM, shutting down
[Tue Feb 19 21:43:09 2008] [notice] core dump file size limit raised
to 18446744073709551615 bytes
[Tue Feb 19 21:43:09 2008] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)

Can anyone please give me some feedback as to what my issue may be?
Thanks a lot.

[EMAIL PROTECTED] ~]# httpd -v
Server version: Apache/2.0.59
Server built:   Jan 14 2008 08:28:18

[EMAIL PROTECTED] ~]# uname -a
Linux charlie.networketernity.com 2.6.9-67.0.1.EL.plus.c4smp #1 SMP
Wed Dec 26 08:30:41 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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 2.0.59

2008-02-19 Thread Devraj Mukherjee
Hi everyone,

I administer a CentOS 4.6 server (use the CentOS plus repo) that runs
Apache 2.0.59 and PHP 5.1.6

For the past few days the httpd processes have been locking up (the
parent processes still seem to be there), but the rest of it comes to
a grinding halt. The server itself is still accessible (I can SSH and
restart httpd and all comes good). The only third party module I was
using was mod_security which I have removed now to try and resolve the
issue.

Most sites run PHP based CMSes and thus use MySQL.

Some of the messages in /var/log/httpd/error_log are

GNU Ghostscript 7.07: Unrecoverable error, exit code 1

and of course

[Tue Feb 19 21:42:34 2008] [notice] caught SIGTERM, shutting down
[Tue Feb 19 21:43:09 2008] [notice] core dump file size limit raised
to 18446744073709551615 bytes
[Tue Feb 19 21:43:09 2008] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)

Can anyone please give me some feedback as to what my issue may be?
Thanks a lot.

[EMAIL PROTECTED] ~]# httpd -v
Server version: Apache/2.0.59
Server built:   Jan 14 2008 08:28:18

[EMAIL PROTECTED] ~]# uname -a
Linux charlie.networketernity.com 2.6.9-67.0.1.EL.plus.c4smp #1 SMP
Wed Dec 26 08:30:41 EST 2007 x86_64 x86_64 x86_64 GNU/Linux


-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] reverse proxy with ldap authentication

2007-09-26 Thread Devraj Mukherjee
Hi Roberto,

Clearly your LDAP client or Apache module is missing SSL support for
LDAP. What operating system are you using? (CentOS, RHEL?)


On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi all, I try to install a reverse proxy with ldap authentication : it
> works with ldap but not with ldaps.
> I've got this notice about LDAP and SSL in the log
>
> [Wed Sep 26 16:57:40 2007] [notice] LDAP: Built with OpenLDAP LDAP SDK
> [Wed Sep 26 16:57:40 2007] [notice] LDAP: SSL support unavailable
> [Wed Sep 26 16:57:40 2007] [notice] Apache/2.0.52 (Red Hat) configured --
> resuming normal operations
>
> Any help would be appreaciated.
> Thx
>
> Roberto
>
>
> -
> 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]
>
>


-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] Version features of mod_dav

2007-07-03 Thread Devraj Mukherjee

Hi everyone,

I am interested in using the verisoning features of Webdav that may be
implemented by mod_dav.

Are there any resources you can point me to?

Thanks for your time.

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] htpasswd

2007-02-12 Thread Devraj Mukherjee

If you are writing PHP then check http://koivi.com/php-http-auth/

On 2/12/07, Tony Morris <[EMAIL PROTECTED]> wrote:

I have a single users file that is output from htpasswd/2 and I'm
looking for a web application that allows users to authenticate and
change their password in the users file.

I apologise if it seems like I'm asking a 'just google it' question, but
there are *so* many choices and I've already been caught out by a couple
(e.g. one was a Windows binary when I run Linux).

Can anyone please give me some recommendations or shorten my list, even
in private to protect the integrity of the mailing list? Thanks.

--
Tony Morris
http://tmorris.net/







--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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: Basic authentication timeout issues

2006-10-24 Thread Devraj Mukherjee

I know I am reverse posting but I found the answer to my own problem
and the result is located at
http://www.outoforder.cc/projects/apache/mod_auth_xradius/docs/#AuthXRadiusCacheTimeout

On 10/25/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:

Hi everyone,

I am using Apache as a reverse proxy and having it authenticate
against a RADIUS server. I am using mod_auth_xradius to communicate
with the RADIUS server using basic authentication.

All my user sessions however seem to timeout in about 10 mins. I can't
seem to find a timeout directive for mod_auth_xradius. Has anyone had
any similar experiences before? Any pointers as to where I should be
looking at?

Thanks.

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)




--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] Basic authentication timeout issues

2006-10-24 Thread Devraj Mukherjee

Hi everyone,

I am using Apache as a reverse proxy and having it authenticate
against a RADIUS server. I am using mod_auth_xradius to communicate
with the RADIUS server using basic authentication.

All my user sessions however seem to timeout in about 10 mins. I can't
seem to find a timeout directive for mod_auth_xradius. Has anyone had
any similar experiences before? Any pointers as to where I should be
looking at?

Thanks.

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] Custom error page 401 for reverse proxy

2006-10-23 Thread Devraj Mukherjee

Thanks Joshua.


On 10/19/06, Joshua Slive <[EMAIL PROTECTED]> wrote:

On 10/18/06, Boyle Owen <[EMAIL PROTECTED]> wrote:
>
> The *obvious* solution is to use ErrorDocument, but that requires that
> *some* of your webspace is publicly accessible. If you can't host the
> ErrorDocument on the main server, can you host it on another server?
> (remember, you can use "http://some-server/some-doc"; in an
> ErrorDocument...)

Actually, for 401 error docs, you can't use an absolute URL.

A common way of dealing with this is to auth-protect your docroot, but
use an Alias to map an unprotected area into the doc space.  For
example:


require valid-user
...

ErrorDocument 401 /errors/401.html
Alias /errors /usr/local/apache2/errors

Order deny,allow
Allow from all


Joshua.

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





--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] Custom error page 401 for reverse proxy

2006-10-18 Thread Devraj Mukherjee

Thanks Owen.

On 10/18/06, Boyle Owen <[EMAIL PROTECTED]> wrote:

> -Original Message-
> From: Devraj Mukherjee [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 18, 2006 6:29 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Custom error page 401 for reverse proxy
>
> Hi everyone,
>
> I am running a reverse proxy based on Apache. The root of the web
> server is protected (basic authentication) however I wish to present
> the user with a custom error page if they fail to authenticate
> (primarily to hide the details of the web server and operating system,
> presented by default by Apache).
>
> If I add an ErrorDocument tag it can't be processed properly because
> its placed in the root of the web server. How can I overcome this, or
> more importantly can I do anything about it?
>
> Create a public virtual host is not an option for me.

That's a bit like asking, "how do I make my car go backwards? - BTW,
reverse gear is not an option for me..."

The *obvious* solution is to use ErrorDocument, but that requires that
*some* of your webspace is publicly accessible. If you can't host the
ErrorDocument on the main server, can you host it on another server?
(remember, you can use "http://some-server/some-doc"; in an
ErrorDocument...)

If that's not an option, the only other thing I can think of is to "use
the source, Luke" - hack into modules/http/http_protocol.c and look at
the method, get_canned_error_string(...). (PS - assuming 2.2.3)

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.

>
> Thanks for your time.
>
> --
> "I never look back darling, it distracts from the now", Edna Mode (The
> Incredibles)
>
> -
> 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]
>


This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

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





--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] Custom error page 401 for reverse proxy

2006-10-17 Thread Devraj Mukherjee

Hi everyone,

I am running a reverse proxy based on Apache. The root of the web
server is protected (basic authentication) however I wish to present
the user with a custom error page if they fail to authenticate
(primarily to hide the details of the web server and operating system,
presented by default by Apache).

If I add an ErrorDocument tag it can't be processed properly because
its placed in the root of the web server. How can I overcome this, or
more importantly can I do anything about it?

Create a public virtual host is not an option for me.

Thanks for your time.

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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 2.0.52 CentOS memory leak issue

2006-10-02 Thread Devraj Mukherjee

Hi everyone,

I have a box running CentOS 4.4 as an httpd server. I am running
version 2.0.52 of Apache as ditributed by CentOS. It seems to me that
httpd is eating up all the memory and thus my machiens eventually runs
out of memory and comes to a stand still.

Is this true? Has anyone had similar experiences? Here are some kernel
log messages

Oct  1 07:48:23 charlie kernel: Free pages:   13640kB (0kB HighMem)
Oct  1 07:48:23 charlie kernel: Active:10282 inactive:956850 dirty:0
writeback:0 unstable:0 free:3410 slab:9415 mapped:967735
pagetables:23309
Oct  1 07:48:23 charlie kernel: Node 0 DMA free:11528kB min:4kB
low:8kB high:12kB active:0kB inactive:0kB present:16384kB
pages_scanned:2977 a
ll_unreclaimable? yes
Oct  1 07:48:23 charlie kernel: protections[]: 0 0 0
Oct  1 07:48:23 charlie kernel: Node 0 Normal free:2112kB min:2160kB
low:4320kB high:6480kB active:42928kB inactive:3825600kB
present:4702208k
B pages_scanned:5985945 all_unreclaimable? yes
Oct  1 07:48:23 charlie kernel: protections[]: 0 0 0
Oct  1 07:48:23 charlie kernel: Node 0 HighMem free:0kB min:128kB
low:256kB high:384kB active:0kB inactive:0kB present:0kB
pages_scanned:0 all
_unreclaimable? no
Oct  1 07:48:23 charlie kernel: protections[]: 0 0 0
Oct  1 07:48:23 charlie kernel: Node 0 DMA: 0*4kB 1*8kB 0*16kB 2*32kB
3*64kB 0*128kB 2*256kB 1*512kB 0*1024kB 1*2048kB 2*4096kB = 11528kB
Oct  1 07:48:28 charlie kernel: Node 0 Normal: 12*4kB 232*8kB 13*16kB
0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB =
2112k
B
Oct  1 07:48:28 charlie kernel: Node 0 HighMem: empty
Oct  1 07:48:28 charlie kernel: Swap cache: add 2902771, delete
2902761, find 906274/1018789, race 0+20
Oct  1 07:48:29 charlie kernel: Free swap:0kB
Oct  1 07:48:29 charlie kernel: 1179648 pages of RAM
Oct  1 07:49:47 charlie kernel: 168514 reserved pages
Oct  1 07:49:47 charlie kernel: 664563 pages shared
Oct  1 07:49:47 charlie kernel: 10 pages swap cached
Oct  1 07:49:47 charlie kernel: Out of Memory: Killed process 1996 (httpd).
Oct  1 07:49:47 charlie kernel: oom-killer: gfp_mask=0x1d2
Oct  1 07:49:47 charlie kernel: Mem-info:
Oct  1 07:49:48 charlie kernel: Node 0 DMA per-cpu:
Oct  1 07:49:48 charlie kernel: cpu 0 hot: low 2, high 6, batch 1
Oct  1 07:49:48 charlie kernel: cpu 0 cold: low 0, high 2, batch 1
Oct  1 07:49:48 charlie kernel: cpu 1 hot: low 2, high 6, batch 1
Oct  1 07:49:48 charlie kernel: cpu 1 cold: low 0, high 2, batch 1
Oct  1 07:49:48 charlie kernel: cpu 2 hot: low 2, high 6, batch 1
Oct  1 07:49:48 charlie kernel: cpu 2 cold: low 0, high 2, batch 1
Oct  1 07:49:48 charlie kernel: cpu 3 hot: low 2, high 6, batch 1
Oct  1 07:49:48 charlie kernel: cpu 3 cold: low 0, high 2, batch 1
Oct  1 07:49:48 charlie kernel: Node 0 Normal per-cpu:
Oct  1 07:49:48 charlie kernel: cpu 0 hot: low 32, high 96, batch 16
Oct  1 07:49:48 charlie kernel: cpu 0 cold: low 0, high 32, batch 16
Oct  1 07:49:48 charlie kernel: cpu 1 hot: low 32, high 96, batch 16
Oct  1 07:49:48 charlie kernel: cpu 1 cold: low 0, high 32, batch 16
Oct  1 07:49:48 charlie kernel: cpu 2 hot: low 32, high 96, batch 16
Oct  1 07:49:48 charlie kernel: cpu 2 cold: low 0, high 32, batch 16
Oct  1 07:49:48 charlie kernel: cpu 3 hot: low 32, high 96, batch 16
Oct  1 07:49:48 charlie kernel: cpu 3 cold: low 0, high 32, batch 16
Oct  1 07:49:48 charlie kernel: Node 0 HighMem per-cpu: empty
Oct  1 07:49:48 charlie kernel:
Oct  1 07:49:48 charlie kernel: Free pages:   13664kB (0kB HighMem)
Oct  1 07:49:48 charlie kernel: Active:133982 inactive:832635 dirty:0
writeback:0 unstable:0 free:3416 slab:9418 mapped:967370
pagetables:2324
6
Oct  1 07:49:48 charlie kernel: Node 0 DMA free:11528kB min:4kB
low:8kB high:12kB active:0kB inactive:0kB present:16384kB
pages_scanned:2985 a
ll_unreclaimable? yes
Oct  1 07:49:48 charlie kernel: protections[]: 0 0 0
Oct  1 07:49:48 charlie kernel: Node 0 Normal free:2136kB min:2160kB
low:4320kB high:6480kB active:535160kB inactive:3331308kB
present:4702208
kB pages_scanned:4548753 all_unreclaimable? yes
Oct  1 07:49:48 charlie kernel: protections[]: 0 0 0


--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

-
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] mod_publisher question

2006-09-13 Thread Devraj Mukherjee

Hi Nick,

Thanks for the response. I read your article earlier and solved most
of the issues :) except something like this.

Notes will produce code like this in the HTML, and obviously that is
not a URL as far as proxy_html is concered.

Any suggestions will be welcome.

Thanks for your time.

QPComponentInit('<img
src="/iNotes/Forms7.nsf/collapse.gif?OpenFileResource&MX">|<img
src="/iNotes/Forms7.nsf/collapse-mo.gif?OpenFileResource&MX">|<img
src="/iNotes/Forms7.nsf/expand.gif?OpenFileResource&MX">|<img
src="/iNotes/Forms7.nsf/expand-mo.gif?OpenFileResource&MX">','','','','','','','1');
BFK();


On 9/14/06, Nick Kew <[EMAIL PROTECTED]> wrote:

On Wednesday 13 September 2006 15:08, Devraj Mukherjee wrote:


> I am interested to know if anyone has done something similar and if
> there are any resources that you can point me to.

The article at http://www.apacheweek.com/features/reverseproxies
describes your problem.  mod_publisher is one option for dealing with it.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674

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





--
"I never look back, it distracts from the now", Edna Mode (The Incredibles)

-
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_publisher question

2006-09-13 Thread Devraj Mukherjee

Hi everyone,

I am trying to setup a reverse proxy using Apache that proxys Domino
web access for my organisation. The problem with Domini web access
(DWA) is that it has absolute URLs in all the documents that it
produces.

These URLs are in various HTML tags (such as img, a href) to
JavaScript, MetaTags and even input fields. The reverse proxy setup
requires me to map it to a URL like http://domain.tld/dwa/

If I use the root of the reverse proxy then everything works perfectly
because everything is an an absolutely URL preprended with a / (which
obviously makes it look at the root of the web server)

After a lot of research it seems like mod_publisher is the only way
that I can re-write each one of these elemetns in the produced HTML so
that everything falls in order.

I am interested to know if anyone has done something similar and if
there are any resources that you can point me to.

Any help is greatly appreciated. I have kind of hit a brick wall and
dont know where to go.

Thanks for reading my email and your time if you choose to reply.

--
"I never look back, it distracts from the now", Edna Mode (The Incredibles)

-
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] Php Load Script

2006-09-04 Thread Devraj Mukherjee

I am not sure if there is anything to do that on the PHP level. Have
you looked at http://opensourcetesting.org/performance.php

On 9/3/06, Armin ranjbar <[EMAIL PROTECTED]> wrote:

hi all ;

im looking for somekind of php load script to monitor / measure my webserver 
performance , any idea ?

--
Never be led astray onto the path of virtue.

-
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] Mixing virtual hosting techniques

2006-09-04 Thread Devraj Mukherjee

Hi everyone,

I am looking at running an Apache web server with a combination of
name and ip based virtual hosting.

Say I have ip address 192.168.1.3 and 192.168.1.4 and I wish to listen
on both those ip addresses and provide virtual name based virtual
hosting on each one of those addresses

So 192.168.1.3 would be domain1.com as well as intranet.domain1.com
where as 192.168.1.4 would be domain2.com and https://domain2.com

Is this trivial? Any resources on the above will be appreciated.

-
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] Rewriting for Reverse proxy style setups

2006-08-31 Thread Devraj Mukherjee

Any ideas about a list for proxy_html module?

On 8/31/06, Joshua Slive <[EMAIL PROTECTED]> wrote:

On 8/30/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:

> I have nailed it down to two problems.
>
> 1. All elements (scripts, etc) have absolute references to others so
> the documents always need to be relative to the root
>
> 2. There are various absolute references in the HTML specially in the
> form of  tags. They need to be re-written.
>
> If I point the root of the reverse proxy to the Domino web access root
> then everything works like a dream. However I wish to provide a
> virtual URL such as http://revproxy/domino/
>
> Has anyone dealt with this before? Any resources will be helpful.

mod_proxy_html is the only way to deal with this as far as I know.
Google for it.

Joshua.

-
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] Using apache on 127.0.01 , localhost and internal ip address (192.168.1.3)

2006-08-30 Thread Devraj Mukherjee

If that is the only public IP address you have, just change the listen
directive to

Listen 80

which makes it listen on all interfaces on port 80

Or have two listen directive for each ip address

On 8/30/06, Yashesh Bhatia <[EMAIL PROTECTED]> wrote:

Hello:

   I'm using Apache 2.2.3 on Fedora Core 5 and have installed it and
configured it to run on
my local IP address 192.168.1.3 by using the following line in the
httpd.conf file

Listen 192.168.1.3:80

Now I also want apache deamon to respond to requests on localhost and 127.0.01

How do I go about doing it ? I tried using virtual hosts by
uncommenting the line

LoadModule vhost_alias_module modules/mod_vhost_alias.so
Include conf/extra/httpd-vhosts.conf

and adding the following entries in the file conf/extra/httpd-vhosts.conf

NameVirtualHost *:80

ServerName localhost


ServerName 127.0.0.1


However the above does not work (i did restart apache :)). So when i do

http://127.0.0.1/
or
http://localhost/

i get a message
Unable to connect
Firefox can't establish a connection to the server at localhost.
Firefox can't establish a connection to the server at 127.0.0.1

but i i do a
http://192.168.1.3/

it works fine.

Any tips on how to configure httpd.conf and httpd-vhosts.conf to make
the above work is really appreciated.

Thanks.

Yashesh

-
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] Alias/RewriteRule/ProxyPass/SSL - how do they coexist?

2006-08-30 Thread Devraj Mukherjee

UseCanonicalNames Off

On 8/26/06, Chris Dagnon <[EMAIL PROTECTED]> wrote:

Here is hopefully a succinct re-statement of my current problem:

I had a website setup and it was working fine using VirtualHost ProxyPass
to forward to another port and a server-level Alias+Directory pair to
forward all image requests to a concrete, common directory.

Now that I've added SSL into the mix, and the Alias never seems to be
triggered for that site, though it is for a non-SSL site.  My newest
question is wondering if it is because there is one VirtualHost *:80 with
a RewriteRule with [R,L].  That should be fine since it is forwarding on
to the VirtualHost *:443 rules.  But again, the Alias isn't getting
triggered.

I did try replacing [R,L] with variations including PT as mod_rewrite's
docs suggest, but saw no changes after restarting Apache2.  I also tried
moving and copying the Alias w/wo Directory into VirtualHost *:443 and
before it, with no change seen.

Is there anyway I can have Apache2 and/or it's mods do some painfully
detailed logging so I can determine just what logic and what order
everything is being processed?  I'm down to it being an interaction with
SSL but that doesn't make sense to me.  Of course there are a couple
warnings in the console on Apache2 startup, but nothing in the logs about
those problems.

  -  apache2: Could not determine the server's fully qualified domain
name, using 127.0.0.1 for ServerName
  -  [Fri Aug...] [warn] NameVirtualHost *:80 has no VirtualHosts


Thanks for ideas on where to look or how to resolve this!

-Chris

-
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] Rewriting for Reverse proxy style setups

2006-08-30 Thread Devraj Mukherjee

Hi everyone,

I am using Apache in as a reverse proxy to proxy a host of different
things. I have a successfully managed to proxy web based applications
like TYPO3, DotProject and the likes. The one that causes me grief is
Domino Web access.

I have nailed it down to two problems.

1. All elements (scripts, etc) have absolute references to others so
the documents always need to be relative to the root

2. There are various absolute references in the HTML specially in the
form of  tags. They need to be re-written.

If I point the root of the reverse proxy to the Domino web access root
then everything works like a dream. However I wish to provide a
virtual URL such as http://revproxy/domino/

Has anyone dealt with this before? Any resources will be helpful.

Thanks a lot for sparing your time.

-
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] Radius authentication

2006-08-30 Thread Devraj Mukherjee

Hi everyone,

I have a protected web site which uses mod_auth_radius to perform its
authentication. However even after I have authenticated some elements
such as images don't turn up.

One of the pages also delivers a Java applet and the JRE seems to be
asking me to authenticate over again and at times does not deliver the
applet successfully.

Any ideas or similar experiences are welcome. I can't seem to make any
sense of this.

Thanks.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Use of environment variables in configuration files?

2006-08-27 Thread Devraj Mukherjee

Thanks for that Joshua.


On 8/25/06, Joshua Slive <[EMAIL PROTECTED]> wrote:

On 8/25/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:
> Hello World,
>
> Is it possible to environment variables such as the domain name being
> access to adaptable Apache configuration.
>
> Such as
>
> Alias /documents /home/www/domain.com.au/documents
>
> Where domain.com.au could be replaced depending on what domain name
> was accessed.

Not in general, since most apache directives are resolved at
start-time, not at request time.  But in that particular case, you can
use mod_rewrite:
RewriteEngine On
RewriteRule ^/documents /home/www/%{SERVER_NAME}/documents
(You probably want to assure that UseCanonicalName is set On in this
case to avoid bad things happening when people supply arbitrary Host
headers.)

Joshua.

-
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] Use of environment variables in configuration files?

2006-08-24 Thread Devraj Mukherjee

Hello World,

Is it possible to environment variables such as the domain name being
access to adaptable Apache configuration.

Such as

Alias /documents /home/www/domain.com.au/documents

Where domain.com.au could be replaced depending on what domain name
was accessed.

Any help is appreciated.

Thanks.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] how to get asp on apache ?(asap)

2006-02-02 Thread Devraj Mukherjee

Hi Mohan,

I have no experience with Apache::ASP but It's worth looking at mod_mono 
that supports ASP .NET on Apache.


Devraj

mohan devanoor wrote:

hello all,
i have apache 2.0.55 and perl. and i installed mod_perl in order to get 
asp run on my apache.

i copied eg/ folder to htdocs but couldnt get the asp page in IE.
iam a newbie for apache::asp . can any one tell me the procedure to get 
asp page on my server.

Your help would be appreciated...
Thanks


Brings words and photos together (easily) with
PhotoMail 
 
- it's free and works with Yahoo! Mail.



-
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] Apache2 on Debian

2006-01-23 Thread Devraj Mukherjee

Hi Brian,

I am not a debian user but I wouldn't think that it matters who owns the 
script unless the apache process has to write back to the files/directories.


For example if you are running a CMS then it would matter or an 
application that uploaded pictures etc.


Devraj

Brian Street wrote:

Hello everyone,

I'm interested in whether or not people running Apache2 on Debian 3.1 create
a separate user for the web directory (/var/www/xxx).

The default install has root owning everything, but starting the web server
as www-data.

Thank you,
Brian.


-
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] Writing Apache modules in Python

2005-09-08 Thread Devraj Mukherjee
Hi everyone,

I am a newbie to mod_python (I have programmed in Python before) and
having trouble understanding if using mod_python or one of the related
projectes (such as mod_snake which seems to be dea) I can actually develop
Apache modules in Python.

I have been tossing the option of writing modules for Apache for a while
and have been wanting to avoid C programming ;-) if I can write them in
Python it will be my prefered way.

Thanks for any insights.

Devraj

-
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] Module development

2005-07-17 Thread Devraj Mukherjee

Are there any resources for module development with Apache?

Devraj

--
Eternity Technologies Pty. Ltd. ACN 107 600 975
P O Box 5949 Wagga Wagga NSW 2650 Australia
Voice: +61-2-69255866 / Fax: +61-2-69251039
http://www.eternitytechnologies.com/



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[users@httpd] RewriteRule issue

2005-07-10 Thread Devraj Mukherjee

Hi All,

I am implementing a site using Apache 2.0/PHP/MySQL and using the Typo3 
content management product. Everything works well but (there is always a 
but) a little Rewrite problem.


We migrated from a static site so Google and all the other search 
engines still bring up search results for all the other static links. 
Since the entire site is dynamic now and we are not using real urls for 
the pages, most of the links that search engines bring up and invalid 
documents.


Typo3 ships with a .htaccess file that has a Rewrite rule tohandle one 
level deep URLs, such as http://debortoli.info/test/ is redirected back 
to the root index.php file


All I now want to do is modify this Rewrite rule to act recursively, 
such that if a request for http://debortoli.info/test2/test3/test4 is 
recd it gets redirected to a page as well.


Any poitners and suggestions are welcome.

Thanks in advance.

Devraj

--
Eternity Technologies Pty. Ltd. ACN 107 600 975
P O Box 5949 Wagga Wagga NSW 2650 Australia
Voice: +61-2-69255866 / Fax: +61-2-69251039
http://www.eternitytechnologies.com/



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]