Re: Virtual Host Logging Perl Script

2003-07-16 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 logfile?

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

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Ged Haywood
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 (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 for me. I found that I had to make

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? You could look at mod_macro. mod_macro (http

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

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

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

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 you'll

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

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

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

sending ssl certificate according to virtual host

2002-11-06 Thread Mathieu Jondet
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 SSLCertificateFile

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 be in

Re: sending ssl certificate according to virtual host

2002-11-06 Thread James G Smith
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 the requested virtual host. Depending on the vh requested I set

[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 == Mathieu Jondet [EMAIL PROTECTED] writes: MJ Depending

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 certificate, you have

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

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

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 mean

Apache and Perl with Virtual Host

2002-03-14 Thread Matt Phelps
Forgive me if I'm posting to the wrong group. Ive 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: 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. Ive 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

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 godsend for

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 of which I

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

disable mod_perl for specific loation/virtual host

2002-01-21 Thread pilsl
for this specific virtual host: I activate mod_perl in main-part of my http.conf: Files ~ \.pl$ SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI /Files for all virtual hosts and now need to know which PerlHandler is responsible for no-mod_perl

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

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

Re: Virtual Host?

2001-09-10 Thread Medi Montaseri
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 displayed. So my question is, where

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, Samba can only

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 host through the Apache Web server. /DISK7 has

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 Disclaimer

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?

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

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 "

@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

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

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: Thursday, September 14,

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 is really

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 interfering with each other, consider having

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 initialization per virtual host... i

Cookies and Virtual Host ServerName

2000-05-12 Thread William Rico
ith domain "mydomain" which is exactly what I was trying to achieve when explicitly setting the domain. Why wouldn't Apache send my original cookie? After some more testing, I realized that setting my VirtualHost up with a fully qualified ServerName also solves the problem. In other wo

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 Perl 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 = ( ['/',

Perl Sections and Virtual Host

2000-04-18 Thread Pierre-Yves BONNETAIN
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 VirtualHost 192.168.1.2:80 ServerName sec.ondary.com