I'm running the Apache that ships with NetWare v6.0 SP3, Apache v1.3.27. I want to enable Perl support, as well as Server-Side Includes (SSI) and CGI script execution. NetWare ships with Perl 5.8.0 and that is installed and loaded.
My questions:
1) What do I have to add to the default httpd.conf file to enable Perl support? I found Novell TID #10075368 that describes how to add it to the adminserv.conf (the instance of Apache that provides the web-based server administration), but that runs on port 2200 and is used for web-based server admin - the instructions deal with adding directives to the Virtual Host.
I want the instance of Apache on good ol' port 80 to have Perl support, not using a Virtual Host. I have no need of Virtual Hosting.
2) What do I need to do to enable Server-Side Includes? Is that done on a directory-by-directory basis?
3) What do I need to do to enable CGI script execution? I've added the LCGI handler and loaded CGI2PERL.NLM, but when I do this it breaks Perl.
When Apache is loaded, it indicates the following modules are loaded:
MOD_LCGI.NLM
MOD_TLS.NLM
MOD_NDS.NLM
MOD_JK.NLM
The Apache version is Apache/1.3.27 (NETWARE) mod_jk/1.2.2-dev
Here is the current httpd.conf (actually adapted from adminserv.conf):
ServerType standalone
ServerRoot "SYS:/apache"
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
ThreadsPerChild 50
ThreadStackSize 81920
MaxRequestsPerChild 0
LoadModule lcgi_module modules/mod_lcgi.nlm
<Directory "sys:/perl/web">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<IfModule mod_lcgi.c>
AddHandler lcgi-script nlm pl nsn bas
LCGIModuleMap sys:\nsn\lcgi\scrptpgs.nlm
.asp .nsp /sp
LCGIModuleMap sys:\nsn\lcgi\cgi2ucs.nlm .bas /nsn
LCGIModuleMap sys:\perl\lcgi\cgi2perl.nl
m .pl /perl
AddEnvVar PERL_ROOT sys:\perl\web
ScriptAlias /perl sys:\perl\web
ScriptAlias /nsn sys:/nsn/web
</IfModule>
LoadModule nds_auth_module modules/mod_nds.nlm
LoadModule tls_module modules/mod_tls.nlm
ServerAdmin someone@somewhere.com
ServerName rvapache.ncdor.state.nc.us
AuthNDSCacheTimeout 0
# Start Apache Services Port Configuration
Port 80
Listen 10.227.5.250:80
<IfModule mod_tls.c>
SecureListen 10.227.5.250:443 "SSL CertificateDNS"
</IfModule>
# End Apache Services Port Configuration
DocumentRoot "DATA:/HTML"
<Directory "/">
Options FollowSymLinks
AllowOverride None
Order deny,allow
deny from all
</Directory>
<Directory "DATA:/HTML">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# Options Indexes FollowSymLinks MultiViews
Options Indexes FollowSymLinks MultiViews ExecCGI +Includes
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
UseCanonicalName On
TypesConfig conf/mime.types
DefaultType text/plain
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Uncomment the following line to turn on access logging
# CustomLog logs/access_log common
ServerSignature On
#Alias /icons/ "sys:/apache/icons/"
#<Directory "sys:/apache/icons">
# Options Indexes MultiViews
# AllowOverride None
# Order allow,deny
# allow from all
#</Directory>
#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
<IfModule mod_alias.c>
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
Alias /icons/ "sys:/apache/icons/"
<Directory "sys:/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# This Alias will project the on-line documentation tree under /manual/
# even if you change the DocumentRoot. Comment it if you don't want to
# provide access to the on-line documentation.
#
Alias /manual/ "sys:/apache/htdocs/manual
/"
<Directory "sys:/apache/htdocs/manual
">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
#ScriptAlias /cgi-bin/ "sys:/apache/cgi-bin/"
ScriptAlias /cgi-bin/ "DATA:/HTML/cgi-bin/"
#
# "sys:/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
#<Directory "sys:/apache/cgi-bin">
<Directory "DATA:/HTML/cgi-bin">
AllowOverride None
# Options None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
</IfModule>
# End of aliases.
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif
) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
AddType application/x-tar .tgz
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
#
#<IfModule mod_mime.c>
# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
# AddHandler cgi-script .cgi .pl
#
# To use server-parsed HTML files
#
# AddType text/html .shtml
# AddHandler server-parsed .shtml .html
#</IfModule>
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.nlm
JkWorkersFile "SYS:/tomcat/33/conf/jk/nw
workers.pr
operties"
JkLogFile "SYS:/tomcat/33/logs/mod_j
k.log"
#
# Log level to be used by mod_jk
#
JkLogLevel error
#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
include "SYS:/NSearch/WEB-INF/NSSr
chApache.c
onf"
Start Free Trial