
How to install
APACHE
SERVER
|
by Luc De Pourcq, Team OS/2 - Belgium
mailto:luc.de.pourcq@skynet.be
Now we will try to configure your PC to use OS/2
Apache.
First thing is to determine your TCP/IP Config in OS/2 config
folder on your desktop. If you have a domaine name you must have the same IP adress
on your PC.
If you haven't a DNS Server (for your network), you must specify a
configuration without DNS Server in "HOST NAME". Specify your IP adress
in this box and add a name like SERVER.MARCOLO.COM and as alias all your domain
names : WWW.MARCOLO.COM WWW.NEXT.COM ... Check box
"lockup HOST before DNS name server". After that get out and save.
It's all what you need in config. Sorry if names specifications aren't
like English but my system run in french language.
Now you must unzip contains of Apache on a directory called "OS2HTTPD"
on drive C. It's not an obligation but it's more easy.
1. You must have "Emx 0.9c" with FIX 03 installed on your system. This
program needed as runtime for Apache.
2. In directory "OS2HTTOD/CONF" you found 4 files provide as default.
Copy all this files in same directory with another suffixe (ie :
xxx-dist).
3. Edit file named "HTTPD.CONF" in this directory.
At the end of this file add this lines :
<VirtualHost www.macarlo.com>
ServerAdmin macarlo@macarlo.com
DocumentRoot d:/web
ServerName www.macarlo.com
ErrorLog logs/www.macarlo.com-error.log
TransferLog logs/www.macarlo-access.log
</VirtualHost>
Put your web site on other drive to secure ftp server to
put/retrieve
documents from C drive (ie d:/web).
If you have more than one domain name repeat this operation for each domain.
don't forget to make a little program to clear logs files when you start your
PC (see my startup.cmd file as attachement) otherwize this files will grow very
fast.
If you need proxy for intranet or as gateway you can specify in this
file:
CacheRoot /os2httpd/proxy
CacheSize 20000
CacheGcInterval 12
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
CacheDirLevels 0
CacheDirLevels must be set to 0 instead of 3. Other program
will
generated errors when clear files.
4. in "ACCESS.CONF" file you must change this line :
<Directory D:/web>
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
</Directory>
Allow access to this directory for browsers.
<Directory e:/web/cgi-bin>
AllowOverride None
Options ExecCGI
</Directory>
Allow programs & scripts execution from only this directory ! be
carreful to deny access for ftp send/receive !!!
You can put a counter program for web page. I have found a very nice which runs
fine. I put it as attachement. Easy to configure for
running.
5. in "SRM.CONF" :
DocumentRoot D:/WEB
# For ftp send/receive
UserDir D:/WEB/DOWNLOAD
#document to load when not specified
DirectoryIndex index.html
Hope that this informations will help you to configure a very
powerfull platform and how more stable than Windoze fucking programs...
