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?
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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?
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
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 "
Greetings,
Can the perl include path be configured on a per virtual host basis?
-Bill
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
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,
| 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
"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
- 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
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
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.
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 = ( ['/',
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
47 matches
Mail list logo