Untuk yg ngefans Apache, ini trick running Worldclient under Apache.
Begin forwarded message:
Date: Wed, 2 Jul 2003 14:17:13 -0500
From: Randy Peterman <[EMAIL PROTECTED]>
To: "md-beta List Member" <[EMAIL PROTECTED]>
Subject: [md-beta] Apache finally works!!!
OK, so someone who apparently knows there way around apache sent the
following instructions (after my signature) to [EMAIL PROTECTED] They
work.
This assumes that you've got MDaemon already installed. Apparently he
has had it working since last November.
We'll need to clean up the instructions for the less apache literate
(such as myself), but I think that for those of you who use apache 2.0
it'll take very little to get this hummer going. I got it working and
am just thrilled to see it on Apache since it's been a request for some
time now.
Happy Apache'ing :)
--
Randy Peterman
Alt-N Technologies, Ltd.
1) Download and Install Apache 2.0.46 (I've used the default
Installation
so everything ends up in c:\program files\apache group\apache2\)
2) Try to start Apache from the commandline and look if it is working
(http:\\127.0.0.1\)
3) Locate your server configuration file called http.conf (Should be in
c:\program files\apache group\apache2\conf) and open it in NotePad
(Text-only-editors please )
4) First we have to assign .dll to an isapi. Locate a line called
"AddHandler type-map var". After this line insert: "AddHandler isapi-isa
.dll".
5) Now we have to allow access to the mdaemon Directory, with ExecCGI
Privileg. Don't use backslashes, use slashes for Paths! Insert anywhere:
<Directory "c:/Mdaemon/WorldClient/HTML">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
6a) If your only purpose is serving Worldclient then we simply could
change the DocumentRoot from "C:/Program Files/Apache
Group/Apache2/htdocs" to "c:/Mdaemon/WorldClient/HTML". Now if someone
gets http://127.0.0.1 we will see a "Access Denied" error. That's ok,
cause we only allowed ExecCGI in our Options Statement. To jump directly
to Worldclient (and worldclient is handled by ExecCGI) we catch every
Request getting the Root Directory / and
redirect them to Worldclient. Add the following Line:
RedirectMatch ^/$ http://127.0.0.1/WorldClient.dll?View=Main
(note: If you want to browse your Mdaemon Directory you have to write
"Options ExecCGI Indexes". Don't click on worldclient.dll, it will crash
the apache-thread handling worldclient.dll. You should remove Indexes on
real servers)
We are done... Start apache from the command line. If anything went
wrong, read the error.log file in c:\program files\apache
group\apache2\logs\ and the application eventlog carefully. The logs are
very detailed.
6b) If you are using Virtual Hosts it is nearly the same. Somewhere you
should have (with different IP of course):
NameVirtualHost 212.180.180.180
After this statement you're able to define your VirtualHosts or
VirtualWebservers or whatever you call them (Remember, they only work
if
you call them with a valid domain name*, here
www.my-personal-mdaemon-webserver.com):
<VirtualHost 212.180.180.180:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot c:/Mdaemon/WorldClient/HTML
RedirectMatch ^/$
http://www.my-personal-mdaemon-webserver.com/WorldClient.dll?View=Main
ServerName www.my-personal-mdaemon-webserver.com
ErrorLog c:/logs/www.my-personal-mdaemon-webserver.com-error.log
CustomLog c:/logs/www.my-personal-mdaemon-webserver.com-access.log
combined
</VirtualHost>
(* Of course you can also setup your own DNS Server just for testing,
but
that's heavy...)
--
syafril
-------
Syafril Hermansyah<syafril.dutaint.co.id>
--
--[MDaemon-L]------------------------------------------------
Milis ini untuk Diskusi antar pengguna MDaemon Mail Server.
Mohon tidak posting dalam format HTML!
Arsip : <http://mdaemon-l.dutaint.com>
Moderator : <mailto:[EMAIL PROTECTED]>
Henti Langgan : <mailto:[EMAIL PROTECTED]>
Berlangganan : <mailto:[EMAIL PROTECTED]>
Versi Terakhir : MD 6.8.4, LD 2.1.0, WA 2.0.5, MDAV 2.1.9, MDGW 1.0.4