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