Re: virtual ssl ?

2001-03-02 Thread Andreas Edler

Hello Cherubini [EMAIL PROTECTED],

 is it possible to have different certificates for every virtual host on
 apache ?

yes, of course.  But only with IP based virtual hosts, not with
namebased virtual hosts.

Shalom!
  .\ndreas

-- 
___
Server-Service GmbH  +  Blumenauer Str. 1  +  30449 Hannover
  [EMAIL PROTECTED]  +  http://www.server-service.de/


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: transfering amongst partitions

2001-03-02 Thread G.Brits

I will explain it my way , got a bit confused with your explination ..

You have one hard drive lets say 10 GIG. 4 Gig for NT , 2 GIG for var .. and
what ever

If you don't want any data from the NT drive , do the following

Unmout the NT partition , so when you type in " mount " at the bash , it
should not be in there ( The NT partition) now you can mke2fs or format that
partition . so now you have an epty , unmouted partition . Lets say you want
to use that partition as /var. Make a directory called var2 , and copy all
of /var into var2 ... so you are copying the /var contents into a folder
var2. Now unmount the /var partition , since you did not have a /var
partition , but a /var folder , you can delete it afterwards. now mount /var
onto the empty partition , so when you are done , and type " mount " at the
prompt again , it shoul show you that /dev/hdax is now mounted as /var . Now
just copy the var2 contents into the /var partition .

Reboot if you want to check that everything comes up fine

Regards

G.Brits
Linux Systems Engineer
Technology Concepts
Tel +27 11 803 2169
Fax +27 11 803 2189

-Original Message-
From: David Bishop [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2001 01:21
To: [EMAIL PROTECTED]
Subject: transfering amongst partitions


So, I trying to convert a machine that has been dual-booting NT and Debian
for awhile, mainly because I just noticed that I haven't booted into NT in
over two months :-)  I want to reclaim that lost disk space that is
currently
an NTFS partition, and that's where I'm stuck.  The current layout of the
drive is hda1=ntfs, hda2=/, hda5=swap, and hda6=/home.  hda1 is 4 gigs, and
hda2 and 6 are two gigs each.  Now, I assume it would be easiest to
re-fdisk/format hda1 to be ext2, then copy all of hda2 over, then hda6 as
well, delete everything but hda1, and refdisk to make a four-gig hda2, and
recreate the swap.  Sounds easy, right?  Well, therein lies the troubles.

First, I don't know of a safe way to transfer all of those files.  I've
tried
to use tar in the past, but had permision issues (things ended up being
owned
by root).  I could use dd, but that's a block-by-block transfer, right?  So
the partitions would have to be the same size? cp has the same problems as
tar, and how does copying device files work? I thought I read that would
screw stuff up.

Oh, and how do I boot up afterwards?  I forgot to mention that there is no
floppy disk available, so I can't just boot off of a rescue floppy and rerun
lilo when everything is schootched around.

So, I am undoubtably making a mountain out of a molehill, and I just ask
that
you guys not laugh too loudly.  Laughing up your sleeve is perfectly
acceptable, though :-)

TIA and HAND,

D.A.Bishop

P.S. Of course this box is running some web services so it can't be down for
longer than about 1/2 hour.  Just making things easy on me B-)


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: virtual ssl ? also multiple virtual domains in apache

2001-03-02 Thread Russell Coker

On Friday 02 March 2001 09:53, Andreas Edler wrote:
  is it possible to have different certificates for every virtual host on
  apache ?

 yes, of course.  But only with IP based virtual hosts, not with
 namebased virtual hosts.

How?  Would it be possible to post a snippet from an apache config file?

On the topic of apache with multiple domains I am currently working on a 
solution for Apache with 1000 domains on a single machine.  I am using the 
following log file directives:
LogFormat "%V %h %l %u %t \"%r\" %s %b" main
CustomLog /var/log/apache/access.log main

Which result in a single log file with "www.company.com " preceeding the 
usual CLF format log file text.  I have written an enhancement to my clfmerge 
program (which will be in the next release of my logtools package) to convert 
this to have http://www.company.com/URL in the main text of the CLF log 
entries (so log analysis programs such as Webalizer can analyse all domains 
together).  Also I am about to write a program to split a single log file 
into a file per domain for per-customer log analysis.

Also I wanted to do the following:
VirtualDocumentRoot /home/www/domains/%0/docs
VirtualScriptAlias /home/www/domains/%0/cgi-bin

But it seems that this offers no support for running cgi-bin programs for 
each domain as a different UID.  So I'll have to write a script that sucks 
data out of LDAP and generates the Apache configuration.

Any suggestions on better ways of doing it?

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: IMAP/POP3 + Maildir

2001-03-02 Thread Jeff Waugh

quote who="Marc Haber"

 apt-get source courier should do the trick with a properly configured apt.
 
 I will try to package 0.32 later today.

Ah, thanks very much! Much confusion over the odd versioning. :)

- Jeff


-- [EMAIL PROTECTED] - http://lazarus.aphid.net/ --

"It's only ironic because it's true." - Reflexive irony, overheard. 


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: virtual ssl ? also multiple virtual domains in apache

2001-03-02 Thread G.Brits

Add this line in your httpd.conf file at the end
Include conf/vhosts.conf

and obviously make a file called vhosts.conf - with is the part you are
looking for ..

VirtualHost www.domain1.com:80
DocumentRoot /var/htdocs/hosting/domain1/
ServerName xxx.xx.xxx.xx# This being the ip address of the server
ErrorLog logs/www.domain1.com-error_log
CustomLog logs/www.domain1.com-access_log common
DirectoryIndex index.php3 default.html
/VirtualHost

Hope this answers your question

-Original Message-
From: Russell Coker [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2001 12:31
To: Andreas Edler; Cherubini Enrico
Cc: [EMAIL PROTECTED]
Subject: Re: virtual ssl ? also multiple virtual domains in apache


On Friday 02 March 2001 09:53, Andreas Edler wrote:
  is it possible to have different certificates for every virtual host on
  apache ?

 yes, of course.  But only with IP based virtual hosts, not with
 namebased virtual hosts.

How?  Would it be possible to post a snippet from an apache config file?

On the topic of apache with multiple domains I am currently working on a
solution for Apache with 1000 domains on a single machine.  I am using the
following log file directives:
LogFormat "%V %h %l %u %t \"%r\" %s %b" main
CustomLog /var/log/apache/access.log main

Which result in a single log file with "www.company.com " preceeding the
usual CLF format log file text.  I have written an enhancement to my
clfmerge
program (which will be in the next release of my logtools package) to
convert
this to have http://www.company.com/URL in the main text of the CLF log
entries (so log analysis programs such as Webalizer can analyse all domains
together).  Also I am about to write a program to split a single log file
into a file per domain for per-customer log analysis.

Also I wanted to do the following:
VirtualDocumentRoot /home/www/domains/%0/docs
VirtualScriptAlias /home/www/domains/%0/cgi-bin

But it seems that this offers no support for running cgi-bin programs for
each domain as a different UID.  So I'll have to write a script that sucks
data out of LDAP and generates the Apache configuration.

Any suggestions on better ways of doing it?

--
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: transfering amongst partitions

2001-03-02 Thread David Bishop

Hrrm, I'll try to explain a bit better this time :-)

I currently have a hard drive laid out like this:

hda1 = NTFS 4Gigs
hda2 = ext2 / 2Gigs
hda5 = swap 128 Megs
hda6 = ext2 /home 2 Gigs

and I want to end up with:

hda1 = ext2 / 4Gigs
hda2 = ext2 /home 4Gigs
hda3 = swap 128 megs

So my idea was, blow away the ntfs partition, and transfer everything over
there, then blow away the other partitions, create a new 4 gig partition and
transfer /home back.  My two problems were: what can I use to copy the data
without screwing anything up (I guess cp -ap will work?) and how to tell lilo
where the new kernel is without booting off of a floppy (which, I guess I
could probably work around).  As I said, probably making a mountain out of a
molehill, I'm just fairly new at this and don't want to screw up one of our
web servers.  The reason I want to do the "giant root partitioning scheme",
is that everytime I start dividing stuff up, I run into a situation where I
have plenty of space on one partition, and am cramped on another.  This seems
to be a simple way to avoid that :-)

Thanks for all the suggestions so far, I'm gonna start playing around with
it.

D.A.Bishop

On Fri, 2 Mar 2001 11:14:34 +0200, G.Brits said:

 I will explain it my way , got a bit confused with your explination ..
  
  You have one hard drive lets say 10 GIG. 4 Gig for NT , 2 GIG for var .. and
  what ever
  
  If you don't want any data from the NT drive , do the following
  
  Unmout the NT partition , so when you type in " mount " at the bash , it
  should not be in there ( The NT partition) now you can mke2fs or format that
  partition . so now you have an epty , unmouted partition . Lets say you want
  to use that partition as /var. Make a directory called var2 , and copy all
  of /var into var2 ... so you are copying the /var contents into a folder
  var2. Now unmount the /var partition , since you did not have a /var
  partition , but a /var folder , you can delete it afterwards. now mount /var
  onto the empty partition , so when you are done , and type " mount " at the
  prompt again , it shoul show you that /dev/hdax is now mounted as /var . Now
  just copy the var2 contents into the /var partition .
  
  Reboot if you want to check that everything comes up fine
  
  Regards
  
  G.Brits
  Linux Systems Engineer
  Technology Concepts
  Tel +27 11 803 2169
  Fax +27 11 803 2189
  
  -Original Message-
  From: David Bishop [mailto:[EMAIL PROTECTED]]
  Sent: 02 March 2001 01:21
  To: [EMAIL PROTECTED]
  Subject: transfering amongst partitions
  
  
  So, I trying to convert a machine that has been dual-booting NT and Debian
  for awhile, mainly because I just noticed that I haven't booted into NT in
  over two months :-)  I want to reclaim that lost disk space that is
  currently
  an NTFS partition, and that's where I'm stuck.   The current layout of the
  drive is hda1=ntfs, hda2=/, hda5=swap, and hda6=/home.   hda1 is 4 gigs, and
  hda2 and 6 are two gigs each.  Now, I assume it would be easiest to
  re-fdisk/format hda1 to be ext2, then copy all of hda2 over, then hda6 as
  well, delete everything but hda1, and refdisk to make a four-gig hda2, and
  recreate the swap.  Sounds easy, right?  Well, therein lies the troubles.
  
  First, I don't know of a safe way to transfer all of those files.  I've
  tried
  to use tar in the past, but had permision issues (things ended up being
  owned
  by root).  I could use dd, but that's a block-by-block transfer, right?  So
  the partitions would have to be the same size? cp has the same problems as
  tar, and how does copying device files work? I thought I read that would
  screw stuff up.
  
  Oh, and how do I boot up afterwards?  I forgot to mention that there is no
  floppy disk available, so I can't just boot off of a rescue floppy and rerun
  lilo when everything is schootched around.
  
  So, I am undoubtably making a mountain out of a molehill, and I just ask
  that
  you guys not laugh too loudly.   Laughing up your sleeve is perfectly
  acceptable, though :-)
  
  TIA and HAND,
  
  D.A.Bishop
  
  P.S. Of course this box is running some web services so it can't be down for
  longer than about 1/2 hour.  Just making things easy on me B-)
  
  
  --
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of "unsubscribe". Trouble? Contact
  [EMAIL PROTECTED]
  
  
  --  
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
  
  


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: transfering amongst partitions

2001-03-02 Thread Jeremy C. Reed

On 2 Mar 2001, David Bishop wrote:

 hda1 = NTFS 4Gigs
 hda2 = ext2 / 2Gigs
 hda5 = swap 128 Megs
 hda6 = ext2 /home 2 Gigs
 
 and I want to end up with:
 
 hda1 = ext2 / 4Gigs
 hda2 = ext2 /home 4Gigs
 hda3 = swap 128 megs

 So my idea was, blow away the ntfs partition, and transfer everything over
 there, then blow away the other partitions, create a new 4 gig partition and
 transfer /home back.  My two problems were: what can I use to copy the data
 without screwing anything up (I guess cp -ap will work?) and how to tell lilo
 where the new kernel is without booting off of a floppy (which, I guess I

Backup all the important data (like /home) first.

For hda1: Use fdisk to change type (but not size). Then use mkfs (or
mkfs.ext2). "cp -a" should work.

To do the rest, it would be a good idea to boot from a emergency/rescue
floppy, so you don't have to worry about swap and losing your commands
when you fdisk the currently used /.

You will need to know how to use your rescue disk. For example, to edit
lilo, you'll need to mount the partition, edit it, and then run lilo with
chroot. (I like TOMSRTBT as a Linux rescue disk.)

Use fdisk to remove your 2,5,6 (primary and logical) partitions and create
your new 2 and 3 partitions.

Use mkfs (mkfs.ext2) for hda2.

Configure lilo. Maybe your /etc/lilo.conf has "root=/dev/hda2"; change it
to hda1 and run lilo (chrooted if using rescue disk).

Set up new swap with mkswap.

cp the /home to the new partition. (In the past, I have had two
homes: /home and /home2 with identical content. I don't remove the
unneeded home until I have verified after a reboot.)

   to use tar in the past, but had permision issues (things ended up being
   owned by root).

tar should also work. Do some tests and practice with it.

   tar, and how does copying device files work? I thought I read that would

tar and cp can properly copy device files; do some tests and practice.

 # cp -a /dev/zero tmp/zero
 # ls -l /dev/zero tmp/zero
 crw-rw-rw-1 root root   1,   5 Jan 30 13:41 /dev/zero
 crw-rw-rw-1 root root   1,   5 Jan 30 13:41 tmp/zero

Hopefully these ideas help; I may have missed something though.

  Jeremy C. Reed
...
 ISP-FAQ.com -- find answers to your questions
 http://www.isp-faq.com/


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Unidentified subject!

2001-03-02 Thread Fire Angel

unsubscribe

---
|Fire Angel Zhen Ren Shan |
|[EMAIL PROTECTED] Verite Bonte Patience |
|ICQ : 26515622   |
---


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




virtual ssl ?

2001-03-02 Thread Cherubini Enrico
Hi,
is it possible to have different certificates for every virtual host on
apache ?

-- 


Bye
++ Maybe you are searching for freedom
| Enrico |Maybe you can't find it anywhere
++  I found it in linux...

``I think he has a Napoleonic concept of himself and his company, an arrogance 
that derives from power and unalloyed success, with no leavening hard 
 experience, no reverses,'' Judge Thomas Penfield Jackson says of Bill Gates.




FW: re:exim and sendmail-like virtusertable

2001-03-02 Thread G.Brits



Regards

G.Brits
Linux Systems Engineer
Technology Concepts
Tel +27 11 803 2169
Fax +27 11 803 2189

-Original Message-
From: G.Brits [mailto:[EMAIL PROTECTED]
Sent: 02 March 2001 10:49
To: [EMAIL PROTECTED]
Subject: re:exim and sendmail-like virtusertable


What you do is the following

IN the virtusertable file make a line like
@domain1.comdomain1

In your aliases file create an alias domain one and send that aliases mail
to [EMAIL PROTECTED]

Then in your virtusertable file again create a line like

[EMAIL PROTECTED]   [EMAIL PROTECTED]
This will send all the mail from domain1.com to the user in domain2.com

Hope it helps









i want to set up exim with virtualhosts and virtual passwd and alias
files.
so far anything works perfectly with a patched gnu-pop3d version.
but i'm missing a solution for the special token in sendmails
virtusertable which
allows all unassigned email-adresses to be sent to another domain
(e.g.: [EMAIL PROTECTED] - [EMAIL PROTECTED])
i want to be able to create aliases for domains and virtual mailboxes
(no problem
so far), but i want all unassigned emails of a virtual domain to be sent
to another domain.
i know that it is possible to send all unassigned emails to a specified
email (e.g. postmaster) by using a * in the alias file, but i found no
solution
to create a rewriting rule like it is possible in sendmails
virtusertable.
i can add a general rewriting rule (e.g. [EMAIL PROTECTED] [EMAIL PROTECTED]) 
in the
exim.conf,
but this overrides all virtual users and aliases.

any ideas?

thanks,
peter


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]


Regards

G.Brits
Linux Systems Engineer
Technology Concepts
Tel +27 11 803 2169
Fax +27 11 803 2189




Re: virtual ssl ?

2001-03-02 Thread Andreas Edler
Hello Cherubini [EMAIL PROTECTED],

 is it possible to have different certificates for every virtual host on
 apache ?

yes, of course.  But only with IP based virtual hosts, not with
namebased virtual hosts.

Shalom!
  .\ndreas

-- 
___
Server-Service GmbH  +  Blumenauer Str. 1  +  30449 Hannover
  [EMAIL PROTECTED]  +  http://www.server-service.de/




RE: virtual ssl ?

2001-03-02 Thread G.Brits
Yes that is possible

I have a Redhat 6.2 SSL server running more than 10 sites ( Virtual Hosts
and everything)


Regards

G.Brits
Linux Systems Engineer
Technology Concepts
Tel +27 11 803 2169
Fax +27 11 803 2189

-Original Message-
From: Cherubini Enrico [mailto:[EMAIL PROTECTED]
Sent: 02 March 2001 10:17
To: debian-isp@lists.debian.org
Subject: virtual ssl ?


Hi,
is it possible to have different certificates for every virtual host on
apache ?

--


Bye
++ Maybe you are searching for freedom
| Enrico |Maybe you can't find it anywhere
++  I found it in linux...

``I think he has a Napoleonic concept of himself and his company, an
arrogance
that derives from power and unalloyed success, with no leavening hard
 experience, no reverses,'' Judge Thomas Penfield Jackson says of Bill
Gates.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]




RE: transfering amongst partitions

2001-03-02 Thread G.Brits
I will explain it my way , got a bit confused with your explination ..

You have one hard drive lets say 10 GIG. 4 Gig for NT , 2 GIG for var .. and
what ever

If you don't want any data from the NT drive , do the following

Unmout the NT partition , so when you type in  mount  at the bash , it
should not be in there ( The NT partition) now you can mke2fs or format that
partition . so now you have an epty , unmouted partition . Lets say you want
to use that partition as /var. Make a directory called var2 , and copy all
of /var into var2 ... so you are copying the /var contents into a folder
var2. Now unmount the /var partition , since you did not have a /var
partition , but a /var folder , you can delete it afterwards. now mount /var
onto the empty partition , so when you are done , and type  mount  at the
prompt again , it shoul show you that /dev/hdax is now mounted as /var . Now
just copy the var2 contents into the /var partition .

Reboot if you want to check that everything comes up fine

Regards

G.Brits
Linux Systems Engineer
Technology Concepts
Tel +27 11 803 2169
Fax +27 11 803 2189

-Original Message-
From: David Bishop [mailto:[EMAIL PROTECTED]
Sent: 02 March 2001 01:21
To: debian-isp@lists.debian.org
Subject: transfering amongst partitions


So, I trying to convert a machine that has been dual-booting NT and Debian
for awhile, mainly because I just noticed that I haven't booted into NT in
over two months :-)  I want to reclaim that lost disk space that is
currently
an NTFS partition, and that's where I'm stuck.  The current layout of the
drive is hda1=ntfs, hda2=/, hda5=swap, and hda6=/home.  hda1 is 4 gigs, and
hda2 and 6 are two gigs each.  Now, I assume it would be easiest to
re-fdisk/format hda1 to be ext2, then copy all of hda2 over, then hda6 as
well, delete everything but hda1, and refdisk to make a four-gig hda2, and
recreate the swap.  Sounds easy, right?  Well, therein lies the troubles.

First, I don't know of a safe way to transfer all of those files.  I've
tried
to use tar in the past, but had permision issues (things ended up being
owned
by root).  I could use dd, but that's a block-by-block transfer, right?  So
the partitions would have to be the same size? cp has the same problems as
tar, and how does copying device files work? I thought I read that would
screw stuff up.

Oh, and how do I boot up afterwards?  I forgot to mention that there is no
floppy disk available, so I can't just boot off of a rescue floppy and rerun
lilo when everything is schootched around.

So, I am undoubtably making a mountain out of a molehill, and I just ask
that
you guys not laugh too loudly.  Laughing up your sleeve is perfectly
acceptable, though :-)

TIA and HAND,

D.A.Bishop

P.S. Of course this box is running some web services so it can't be down for
longer than about 1/2 hour.  Just making things easy on me B-)


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]




Re: IMAP/POP3 + Maildir

2001-03-02 Thread Marc Haber
On Fri, 2 Mar 2001 14:15:41 +1100, Jeff Waugh [EMAIL PROTECTED] wrote:
quote who=Marc Haber

 As far as I know, Stefan just recently uploaded them to unstable and
 is now on vacation. I found the packages on
 http://incoming.debian.org/. Sources are there too.

Revisiting this thread. :)

Seems the binary packages are in, but the source packages are not... Or is
this just me being unobservant?

All binary packages for courier are built from a single source, which
is in
pool/main/c/courier/courier_0.31.1.{orig.tar.gz|-2.diff.gz|-2.dsc}.
apt-get source courier should do the trick with a properly configured
apt.

I will try to package 0.32 later today.

Greetings
Marc

-- 
-- !! No courtesy copies, please !! -
Marc Haber  |Questions are the | Mailadresse im Header
Karlsruhe, Germany  | Beginning of Wisdom  | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG Rightful Heir | Fax: *49 721 966 31 29




Re: virtual ssl ? also multiple virtual domains in apache

2001-03-02 Thread Russell Coker
On Friday 02 March 2001 09:53, Andreas Edler wrote:
  is it possible to have different certificates for every virtual host on
  apache ?

 yes, of course.  But only with IP based virtual hosts, not with
 namebased virtual hosts.

How?  Would it be possible to post a snippet from an apache config file?

On the topic of apache with multiple domains I am currently working on a 
solution for Apache with 1000 domains on a single machine.  I am using the 
following log file directives:
LogFormat %V %h %l %u %t \%r\ %s %b main
CustomLog /var/log/apache/access.log main

Which result in a single log file with www.company.com  preceeding the 
usual CLF format log file text.  I have written an enhancement to my clfmerge 
program (which will be in the next release of my logtools package) to convert 
this to have http://www.company.com/URL in the main text of the CLF log 
entries (so log analysis programs such as Webalizer can analyse all domains 
together).  Also I am about to write a program to split a single log file 
into a file per domain for per-customer log analysis.

Also I wanted to do the following:
VirtualDocumentRoot /home/www/domains/%0/docs
VirtualScriptAlias /home/www/domains/%0/cgi-bin

But it seems that this offers no support for running cgi-bin programs for 
each domain as a different UID.  So I'll have to write a script that sucks 
data out of LDAP and generates the Apache configuration.

Any suggestions on better ways of doing it?

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page




Re: IMAP/POP3 + Maildir

2001-03-02 Thread Jeff Waugh
quote who=Marc Haber

 apt-get source courier should do the trick with a properly configured apt.
 
 I will try to package 0.32 later today.

Ah, thanks very much! Much confusion over the odd versioning. :)

- Jeff


-- [EMAIL PROTECTED] - http://lazarus.aphid.net/ --

It's only ironic because it's true. - Reflexive irony, overheard. 




RE: virtual ssl ? also multiple virtual domains in apache

2001-03-02 Thread G.Brits
Add this line in your httpd.conf file at the end
Include conf/vhosts.conf

and obviously make a file called vhosts.conf - with is the part you are
looking for ..

VirtualHost www.domain1.com:80
DocumentRoot /var/htdocs/hosting/domain1/
ServerName xxx.xx.xxx.xx# This being the ip address of the server
ErrorLog logs/www.domain1.com-error_log
CustomLog logs/www.domain1.com-access_log common
DirectoryIndex index.php3 default.html
/VirtualHost

Hope this answers your question

-Original Message-
From: Russell Coker [mailto:[EMAIL PROTECTED]
Sent: 02 March 2001 12:31
To: Andreas Edler; Cherubini Enrico
Cc: debian-isp@lists.debian.org
Subject: Re: virtual ssl ? also multiple virtual domains in apache


On Friday 02 March 2001 09:53, Andreas Edler wrote:
  is it possible to have different certificates for every virtual host on
  apache ?

 yes, of course.  But only with IP based virtual hosts, not with
 namebased virtual hosts.

How?  Would it be possible to post a snippet from an apache config file?

On the topic of apache with multiple domains I am currently working on a
solution for Apache with 1000 domains on a single machine.  I am using the
following log file directives:
LogFormat %V %h %l %u %t \%r\ %s %b main
CustomLog /var/log/apache/access.log main

Which result in a single log file with www.company.com  preceeding the
usual CLF format log file text.  I have written an enhancement to my
clfmerge
program (which will be in the next release of my logtools package) to
convert
this to have http://www.company.com/URL in the main text of the CLF log
entries (so log analysis programs such as Webalizer can analyse all domains
together).  Also I am about to write a program to split a single log file
into a file per domain for per-customer log analysis.

Also I wanted to do the following:
VirtualDocumentRoot /home/www/domains/%0/docs
VirtualScriptAlias /home/www/domains/%0/cgi-bin

But it seems that this offers no support for running cgi-bin programs for
each domain as a different UID.  So I'll have to write a script that sucks
data out of LDAP and generates the Apache configuration.

Any suggestions on better ways of doing it?

--
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]




RE: transfering amongst partitions

2001-03-02 Thread David Bishop
Hrrm, I'll try to explain a bit better this time :-)

I currently have a hard drive laid out like this:

hda1 = NTFS 4Gigs
hda2 = ext2 / 2Gigs
hda5 = swap 128 Megs
hda6 = ext2 /home 2 Gigs

and I want to end up with:

hda1 = ext2 / 4Gigs
hda2 = ext2 /home 4Gigs
hda3 = swap 128 megs

So my idea was, blow away the ntfs partition, and transfer everything over
there, then blow away the other partitions, create a new 4 gig partition and
transfer /home back.  My two problems were: what can I use to copy the data
without screwing anything up (I guess cp -ap will work?) and how to tell lilo
where the new kernel is without booting off of a floppy (which, I guess I
could probably work around).  As I said, probably making a mountain out of a
molehill, I'm just fairly new at this and don't want to screw up one of our
web servers.  The reason I want to do the giant root partitioning scheme,
is that everytime I start dividing stuff up, I run into a situation where I
have plenty of space on one partition, and am cramped on another.  This seems
to be a simple way to avoid that :-)

Thanks for all the suggestions so far, I'm gonna start playing around with
it.

D.A.Bishop

On Fri, 2 Mar 2001 11:14:34 +0200, G.Brits said:

 I will explain it my way , got a bit confused with your explination ..
  
  You have one hard drive lets say 10 GIG. 4 Gig for NT , 2 GIG for var .. and
  what ever
  
  If you don't want any data from the NT drive , do the following
  
  Unmout the NT partition , so when you type in  mount  at the bash , it
  should not be in there ( The NT partition) now you can mke2fs or format that
  partition . so now you have an epty , unmouted partition . Lets say you want
  to use that partition as /var. Make a directory called var2 , and copy all
  of /var into var2 ... so you are copying the /var contents into a folder
  var2. Now unmount the /var partition , since you did not have a /var
  partition , but a /var folder , you can delete it afterwards. now mount /var
  onto the empty partition , so when you are done , and type  mount  at the
  prompt again , it shoul show you that /dev/hdax is now mounted as /var . Now
  just copy the var2 contents into the /var partition .
  
  Reboot if you want to check that everything comes up fine
  
  Regards
  
  G.Brits
  Linux Systems Engineer
  Technology Concepts
  Tel +27 11 803 2169
  Fax +27 11 803 2189
  
  -Original Message-
  From: David Bishop [mailto:[EMAIL PROTECTED]
  Sent: 02 March 2001 01:21
  To: debian-isp@lists.debian.org
  Subject: transfering amongst partitions
  
  
  So, I trying to convert a machine that has been dual-booting NT and Debian
  for awhile, mainly because I just noticed that I haven't booted into NT in
  over two months :-)  I want to reclaim that lost disk space that is
  currently
  an NTFS partition, and that's where I'm stuck.   The current layout of 
 the
  drive is hda1=ntfs, hda2=/, hda5=swap, and hda6=/home.   hda1 is 4 gigs, 
 and
  hda2 and 6 are two gigs each.  Now, I assume it would be easiest to
  re-fdisk/format hda1 to be ext2, then copy all of hda2 over, then hda6 as
  well, delete everything but hda1, and refdisk to make a four-gig hda2, and
  recreate the swap.  Sounds easy, right?  Well, therein lies the troubles.
  
  First, I don't know of a safe way to transfer all of those files.  I've
  tried
  to use tar in the past, but had permision issues (things ended up being
  owned
  by root).  I could use dd, but that's a block-by-block transfer, right?  So
  the partitions would have to be the same size? cp has the same problems as
  tar, and how does copying device files work? I thought I read that would
  screw stuff up.
  
  Oh, and how do I boot up afterwards?  I forgot to mention that there is no
  floppy disk available, so I can't just boot off of a rescue floppy and rerun
  lilo when everything is schootched around.
  
  So, I am undoubtably making a mountain out of a molehill, and I just ask
  that
  you guys not laugh too loudly.   Laughing up your sleeve is perfectly
  acceptable, though :-)
  
  TIA and HAND,
  
  D.A.Bishop
  
  P.S. Of course this box is running some web services so it can't be down for
  longer than about 1/2 hour.  Just making things easy on me B-)
  
  
  --
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of unsubscribe. Trouble? Contact
  [EMAIL PROTECTED]
  
  
  --  
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
  
  




RE: transfering amongst partitions

2001-03-02 Thread Jeremy C. Reed
On 2 Mar 2001, David Bishop wrote:

 hda1 = NTFS 4Gigs
 hda2 = ext2 / 2Gigs
 hda5 = swap 128 Megs
 hda6 = ext2 /home 2 Gigs
 
 and I want to end up with:
 
 hda1 = ext2 / 4Gigs
 hda2 = ext2 /home 4Gigs
 hda3 = swap 128 megs

 So my idea was, blow away the ntfs partition, and transfer everything over
 there, then blow away the other partitions, create a new 4 gig partition and
 transfer /home back.  My two problems were: what can I use to copy the data
 without screwing anything up (I guess cp -ap will work?) and how to tell lilo
 where the new kernel is without booting off of a floppy (which, I guess I

Backup all the important data (like /home) first.

For hda1: Use fdisk to change type (but not size). Then use mkfs (or
mkfs.ext2). cp -a should work.

To do the rest, it would be a good idea to boot from a emergency/rescue
floppy, so you don't have to worry about swap and losing your commands
when you fdisk the currently used /.

You will need to know how to use your rescue disk. For example, to edit
lilo, you'll need to mount the partition, edit it, and then run lilo with
chroot. (I like TOMSRTBT as a Linux rescue disk.)

Use fdisk to remove your 2,5,6 (primary and logical) partitions and create
your new 2 and 3 partitions.

Use mkfs (mkfs.ext2) for hda2.

Configure lilo. Maybe your /etc/lilo.conf has root=/dev/hda2; change it
to hda1 and run lilo (chrooted if using rescue disk).

Set up new swap with mkswap.

cp the /home to the new partition. (In the past, I have had two
homes: /home and /home2 with identical content. I don't remove the
unneeded home until I have verified after a reboot.)

   to use tar in the past, but had permision issues (things ended up being
   owned by root).

tar should also work. Do some tests and practice with it.

   tar, and how does copying device files work? I thought I read that would

tar and cp can properly copy device files; do some tests and practice.

 # cp -a /dev/zero tmp/zero
 # ls -l /dev/zero tmp/zero
 crw-rw-rw-1 root root   1,   5 Jan 30 13:41 /dev/zero
 crw-rw-rw-1 root root   1,   5 Jan 30 13:41 tmp/zero

Hopefully these ideas help; I may have missed something though.

  Jeremy C. Reed
...
 ISP-FAQ.com -- find answers to your questions
 http://www.isp-faq.com/




Unidentified subject!

2001-03-02 Thread Fire Angel
unsubscribe

---
|Fire Angel Zhen Ren Shan |
|[EMAIL PROTECTED] Verite Bonte Patience |
|ICQ : 26515622   |
---