Re: Virtual Host Logging Perl Script (mod_macro note)

2003-07-16 Thread Jez Hancock
On Wed, Jul 16, 2003 at 12:40:10PM -0700, Marc M. Adkins wrote: > > > Right now it seems a bit silly having a separate ErrorLog line in each > > > of the apache virtual host stubs, but as far as I am aware there isn't > > > an easier way is there? > > > &

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Jez Hancock
omething a bit lighter might do for this. > > > Right now it seems a bit silly having a separate ErrorLog line in each > > of the apache virtual host stubs, but as far as I am aware there isn't > > an easier way is there? > > You could look at mod_macro. This is what

RE: Virtual Host Logging Perl Script (mod_macro note)

2003-07-16 Thread Marc M. Adkins
> > Right now it seems a bit silly having a separate ErrorLog line in each > > of the apache virtual host stubs, but as far as I am aware there isn't > > an easier way is there? > > You could look at mod_macro. mod_macro (http://www.coelho.net/mod_macro) works great f

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Ged Haywood
g line in each > of the apache virtual host stubs, but as far as I am aware there isn't > an easier way is there? You could look at mod_macro. 73, Ged.

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Jez Hancock
On Wed, Jul 16, 2003 at 12:40:06PM +0200, Guillaume Fougnies wrote: > Wed, Jul 16, 2003 at 11:07:47AM +0100: Jez Hancock wrote: > > I would do this but we wanted to give our users 'live' logfiles, rather > > than making them wait until log rotation before being able to view them > > (or did I misun

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Guillaume Fougnies
Hi, Wed, Jul 16, 2003 at 11:07:47AM +0100: Jez Hancock wrote: > Hi Ged, > > On Wed, Jul 16, 2003 at 07:06:43AM +0100, Ged Haywood wrote: > > On Tue, 15 Jul 2003, Jez Hancock wrote: > > > Does anyone how one could log errorlog entries in a similar manner to > > > the script above - ie pipe the err

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Jez Hancock
ding that would need to be done and I don't know how efficient or practical such a CGI script would really be. Finally I prefer the idea of user's automatically just getting a set of logfiles created directly to the filesystem. Right now it seems a bit silly having a separate ErrorLog line i

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Ged Haywood
Hi there, On Tue, 15 Jul 2003, Jez Hancock wrote: > Does anyone how one could log errorlog entries in a similar manner to > the script above - ie pipe the errorlog to a script which appends one > copy of the error entry to a main error logfile and another copy to the > virtual host's error logfil

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Stas Bekman
Perrin Harkins wrote: On Tue, 2003-07-15 at 16:11, Stas Bekman wrote: Is this still correct in the threaded environment where the filehandle is shared across several threads? Why would the filehandle be shared? Wouldn't you open a new handle in each thread? Because it's shared on the OS level.

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Jez Hancock
On Tue, Jul 15, 2003 at 02:39:18PM -0400, Perrin Harkins wrote: > On Tue, 2003-07-15 at 14:27, Jez Hancock wrote: > > Much obliged, that does look to be something I could use. Reminds me I > > need to be locking the logfile as well ;) > > Actually, if you are just printing one short line I think

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Perrin Harkins
On Tue, 2003-07-15 at 16:11, Stas Bekman wrote: > Is this still correct in the threaded environment where the filehandle is > shared across several threads? Why would the filehandle be shared? Wouldn't you open a new handle in each thread? I expect this would be fine, since the behavior is enfo

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Stas Bekman
Perrin Harkins wrote: On Tue, 2003-07-15 at 14:27, Jez Hancock wrote: On Tue, Jul 15, 2003 at 01:32:11PM +0300, Stas Bekman wrote: Take a look at: http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler a similar code will work for mp1 if you don't use 2.0. Much obliged, that does

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Perrin Harkins
On Tue, 2003-07-15 at 14:27, Jez Hancock wrote: > On Tue, Jul 15, 2003 at 01:32:11PM +0300, Stas Bekman wrote: > > Take a look at: > > http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler > > a similar code will work for mp1 if you don't use 2.0. > Much obliged, that does look to

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Jez Hancock
On Tue, Jul 15, 2003 at 01:32:11PM +0300, Stas Bekman wrote: > Jez Hancock wrote: > >My question is: would it be possible to use mod_perl in some way to > >perform the function of the script? In testing the speed of the script > >seems reasonable enough, is there a better way to do what I'm doing

Re: Virtual Host Logging Perl Script

2003-07-15 Thread Stas Bekman
Jez Hancock wrote: Hi, I've just written a short perl script to perform logging for our virtual hosts. The code has plenty of comments so I'll paste it below. My question is: would it be possible to use mod_perl in some way to perform the function of the script? In testing the speed of the scrip

Virtual Host Logging Perl Script

2003-07-14 Thread Jez Hancock
Hi, I've just written a short perl script to perform logging for our virtual hosts. The code has plenty of comments so I'll paste it below. My question is: would it be possible to use mod_perl in some way to perform the function of the script? In testing the speed of the script seems reasonable

Virtual Host Logging Perl Script

2003-07-14 Thread Jez Hancock
Hi, I've just written a short perl script to perform logging for our virtual hosts. The code has plenty of comments so I'll paste it below. My question is: would it be possible to use mod_perl in some way to perform the function of the script? In testing the speed of the script seems reasonable

[OT] Re: sending ssl certificate according to virtual host

2002-11-06 Thread Issac Goldstand
- Original Message - From: "Vivek Khera" <[EMAIL PROTECTED]> Newsgroups: ml.apache.modperl To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 6:52 PM Subject: Re: sending ssl certificate according to virtual host > >>>>> "MJ" ==

Re: sending ssl certificate according to virtual host

2002-11-06 Thread Mads Toftum
On Wed, Nov 06, 2002 at 11:52:13AM -0500, Vivek Khera wrote: > What they should have done is what is done now with TLS in SMTP. You > connect to the same port, but issue a "STARTTLS" command to switch > over to secured mode. With this type of scheme, the header info with > the desired host could

Re: sending ssl certificate according to virtual host

2002-11-06 Thread Vivek Khera
> "MJ" == Mathieu Jondet <[EMAIL PROTECTED]> writes: MJ> Depending on the vh requested I set the SSLCertificateFile and MJ> SSLCertificateKeyFile which will point to the correct ssl files for the MJ> requested vh. You can't do this with name-based vhosts. To present the proper SSL certificat

Re: sending ssl certificate according to virtual host

2002-11-06 Thread James G Smith
client request >no matter which vh is requested. After a handler treat the request and >fetch the >data where it should be fetch. >Everyhing is working fine, but I would like to add SSL support on >the system. I want to be able to send the SSL certificate and key files >for

sending ssl certificate according to virtual host

2002-11-06 Thread Mathieu Jondet
treat the request and fetch the data where it should be fetch. Everyhing is working fine, but I would like to add SSL support on the system. I want to be able to send the SSL certificate and key files for the requested virtual host. Depending on the vh requested I set the SSLCertifica

Re: Apache and Perl with Virtual Host [OT]

2002-03-23 Thread Ged Haywood
Hi again, Oh, rats, I'm sorry, I shouldn't have sent that. I'm not sure that it's your 'Options' settings at all. Have you got the right execute permisions on the directories/files that you're trying to get Apache to search and/or execute? Have you got anything in the error_log? By way of fur

Re: Apache and Perl with Virtual Host

2002-03-22 Thread Ged Haywood
Hi there, On Fri, 22 Mar 2002, Matt Phelps wrote: [snip,snip] > Okay, this is still giving me problems. Here is my config. I've > tried several things and still nothing. For some reason I can't get > cgi scripts to run under any virtual webs, but the default web. What's a 'web'? I think you me

Re: Apache and Perl with Virtual Host

2002-03-22 Thread Matt Phelps
Okay, this is still giving me problems. Here is my config. I've tried several things and still nothing. For some reason I can't get cgi scripts to run under any virtual webs, but the default web. I'm running RH 7.2 with apache 1.3.20. I do have mod_perl installed. My other box with RH 6.0 wit

Re: Apache and Perl with Virtual Host

2002-03-14 Thread Bill Marrs
At 04:02 AM 3/14/2002, Matt Phelps wrote: >Forgive me if I'm posting to the wrong group. I"ve got apache 1.3.22 >running several virtual webs. I can get perl scripts to run under the >default web but not in the others. All the webs point to the same script >folder. If I try to run the script un

Apache and Perl with Virtual Host

2002-03-14 Thread Matt Phelps
Forgive me if I'm posting to the wrong group. I"ve got apache 1.3.22 running several virtual webs. I can get perl scripts to run under the default web but not in the others. All the webs point to the same script folder. If I try to run the script under a virtual web, all I get is text display.

Re: virtual host "server root"

2002-03-01 Thread Rick Myers
On Mar 01, 2002 at 19:30:37 +, Ged Haywood wrote: > Hi there, > > On Wed, 27 Feb 2002, Rick Myers wrote: > > > I'm trying to create a "root" directory for each of my virtuals. > > the realm of the virtual that certainly shouldn't be within > [snip] > > I've come up with three solutions, none

Re: virtual host "server root"

2002-03-01 Thread Andy Lester
> > I'm trying to create a "root" directory for each of my virtuals. > > the realm of the virtual that certainly shouldn't be within > [snip] > > I've come up with three solutions, none of which I > > particularly like for various reasons. > > Have you looked at mod_macro? mod_macro has been a go

virtual host "server root"

2002-02-27 Thread Rick Myers
I'm trying to create a "root" directory for each of my virtuals. The reason is that there's plenty of stuff within the realm of the virtual that certainly shouldn't be within the document root -- templates, cache, logs, etc. Plus, I might want to point a virtual into a user dir somewhere. I've co

disable mod_perl for specific loation/virtual host

2002-01-21 Thread pilsl
files for this specific virtual host: I activate mod_perl in main-part of my http.conf: SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI for all virtual hosts and now need to know which PerlHandler is responsible for no-mod_perl cgi. (The Pe

Re: Virtual Host?

2001-09-11 Thread Rafiq Ismail
I set up something similar recently. What I would recommend is setting up a separate samba view to 'just' that dirctory on your unix disk which you wish to make publically accessible - set this up in your smb.conf file. You can specify valid users (just the webserver?), whether it is writable a

Re: Virtual Host?

2001-09-10 Thread Medi Montaseri
ox. > > There is a volume there /DISK7 and I would like to be able to use that as a > kind of Virtual host through the Apache Web server. /DISK7 has a bunch of > .mov files that instead of copying to the htdocs directory, I would like to > be able to href link to them and have them displa

RE: Virtual Host?

2001-09-10 Thread Medi Montaseri
How about a symbolic link... On Mon, 10 Sep 2001, Rob Bloodgood wrote: > > > > i think you may have to mount it > > mount -t smb -o username=user,password=pass //ntserver//disk7 > > /mnt/smbshare > > > > then just add /mnt/smbshare to doc root! > > Except that, to the best of my knowledge, Samb

RE: Virtual Host?

2001-09-10 Thread Rob Bloodgood
> > i think you may have to mount it > mount -t smb -o username=user,password=pass //ntserver//disk7 > /mnt/smbshare > > then just add /mnt/smbshare to doc root! Except that, to the best of my knowledge, Samba can only mount to "regular" mount points on Linux. Rob #!/usr/bin/perl -w use Disclai

Re: Virtual Host?

2001-09-10 Thread clayton cottingham
"Purcell, Scott" wrote: > > Hello, > I have Apache w/modperl running on my NT box. The box has Samba on it, and > I can see my Unix volumes from my SGI box. > > There is a volume there /DISK7 and I would like to be able to use that as a > kind of Virtual hos

Virtual Host?

2001-09-10 Thread Purcell, Scott
Hello, I have Apache w/modperl running on my NT box. The box has Samba on it, and I can see my Unix volumes from my SGI box. There is a volume there /DISK7 and I would like to be able to use that as a kind of Virtual host through the Apache Web server. /DISK7 has a bunch of .mov files that

RE: name-based virtual host ->suexec: command not in docroot

2001-07-02 Thread David Harris
> I need to run a cgi from one of the virtual hosts, but I get the following > errors: > suexec.log - command not in docroot (/path/to/cgi) > error.log - Premature end of script headers: /path/to/cgi Suexec is compiled with a built in path which all requests must fall underneath as part of the s

name-based virtual host ->suexec: command not in docroot

2001-07-02 Thread Oliver
Hello All, I'm using name-based virtual hosts on Apache 1.3.19 I need to run a cgi from one of the virtual hosts, but I get the following errors: suexec.log - command not in docroot (/path/to/cgi) error.log - Premature end of script headers: /path/to/cgi Anyone know why and what I should do? Tha

i use linux+apache. how to create a cgi-bin directory for Virtual Host?

2001-06-09 Thread ydok
my system is build on linux+apache now  i'm create virtual hosts.i change the config file (/opt/apache/conf/httpd.conf)like this: # get the server name from the Host: headerUseCanonicalName Off# this log format can be split per-virtual-host based on the first fieldLogFormat &

Re: perl initialization per virtual host... is it possible

2000-09-25 Thread Doug MacEachern
On Thu, 14 Sep 2000, William Deegan wrote: > When I do that a "SetEnv" in my virtual host doesn't seem to get > passed to the startup.pl... > > Is that the expected behavior? yes, SetEnv isn't passed until the request time fixup phase. try PerlSetEnv, which wil

@INC per virtual host

2000-09-18 Thread HotMail: Bill
Greetings, Can the perl include path be configured on a per virtual host basis? -Bill

Re: perl initialization per virtual host... is it possible

2000-09-14 Thread William Deegan
- Original Message - From: "Ime Smits" <[EMAIL PROTECTED]> To: "William Deegan" <[EMAIL PROTECTED]> Cc: "G.W. Haywood" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 14, 2000 2:26 PM Subject: Re: perl initializ

Re: perl initialization per virtual host... is it possible

2000-09-14 Thread David Hodgkinson
"William Deegan" <[EMAIL PROTECTED]> writes: > Ged, > > I think you may have misunderstood. > > I meant a different startup per virtual host, not per child process. > > Is that possible? If you're going to do that, say, to stop virtual servers in

Re: perl initialization per virtual host... is it possible

2000-09-14 Thread Ime Smits
| I meant a different startup per virtual host, not per child process. It's perfectly ok to specify a PerlRequire for each virtual host or even in .htaccess, but I think that's a dirty habbit to get into. As the complete perl namespace is shared between all your virtual hosts there

Re: perl initialization per virtual host... is it possible

2000-09-14 Thread William Deegan
Ged, I think you may have misunderstood. I meant a different startup per virtual host, not per child process. Is that possible? -Bill - Original Message - From: "G.W. Haywood" <[EMAIL PROTECTED]> To: "William Deegan" <[EMAIL PROTECTED]> Sent: Thur

perl initialization per virtual host... is it possible

2000-09-14 Thread William Deegan
Greetings, Is it possible to setup different Initialization per virtual host? so perhaps one: PerlRequire /usr/local/www_sh/conf/startup.pl per virtual host, each different. -Bill Deegan

Cookies and Virtual Host ServerName

2000-05-12 Thread William Rico
I encountered a weird problem while writing a simple authentication handler (based on TicketTool from the eagle book again : ).    My virtual host was setup as follows... DocumentRoot /usr/local/apache/htdocsServerName mydomain ...   In my authentication handler I tried setting a cookie

Re: Perl Sections and Virtual Host

2000-04-20 Thread Doug MacEachern
i've only skimmed this thread, but haven't seen any mention of chapter 8 online at http://modperl.com/ which covers sections in detail.

Re: Perl Sections and Virtual Host

2000-04-19 Thread Pierre-Yves BONNETAIN
> > my $realname = 'http://www.main.org'; > > my %vnames = ( 'sec.ondary.com' => 'second', 'third.dom.com' => 'third' ); > ^^^ > > foreach (keys %vnames) { > ^^^ > > $VirtualHost{'192.168.1.2:80'} = { > > ServerName => $_, > > RedirectPermanent =>

Re: Perl Sections and Virtual Host

2000-04-19 Thread darren chamberlain
Pierre-Yves BONNETAIN ([EMAIL PROTECTED]) said something to this effect: *snip* > > my $realname = 'http://www.main.org'; > my %vnames = ( 'sec.ondary.com' => 'second', 'third.dom.com' => 'third' ); ^^^ > foreach (keys %vnames) { ^^^ > $VirtualHost{'192.168.1.2:80

Perl Sections and Virtual Host

2000-04-18 Thread Pierre-Yves BONNETAIN
is www.main.org, and secondary domain are sec.ondary.com and third.dom.com. With a regular Virtual host config, no sweat (well, it seems so; maybe an Apache expert will tell me I forgot something big and important :-) NameVirtualHost 192.168.1.2:80 ServerName sec.ondary.com