/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

Apache2 Artemis

Views:

sys:\apache2

apache2 is configured with virtual host names to provide access to NetStorage (files.varndean.ac.uk) and NetMail WebClient (mail.varndean.ac.uk)

NetMail web client is available under the mail.varndean.ac.uk host name. (EDIT: Not

Netstorage is available under the default (any) host name, and is accessed via a proxy on ares. If any one can get Netware to generate a wildcard certificate and then get apache netware to use it, it would be better to have NetStorage running under it's own virtual host and ditch the reverse proxy on ares. Due to the proxying, NetStorage runs in the clear (the SSL is applied on the proxy) and is set to only allow connections from ares (rule added in sys:/netstorage/xsrv.conf).

OBSOLETE pre groupwise (see bottom for current)

The following content was altered/appened in sys:\apache2\httpd.conf:

Listen 80
#SecureListen 443 "SSL CertificateDNS"
SecureListen 443 "Mail CNAME"

ServerAdmin support@varndean.ac.uk

ServerName mail.varndean.ac.uk

NameVirtualHost *:80
NameVirtualHost *:443

ProxyRequests Off

<VirtualHost _default_:80>
ProxyRequests Off
    ServerName mail.varndean.ac.uk
    DocumentRoot "SYS:\APACHE2\HTDOCS"
    Include sys:/netstorage/xsrv.conf  
</VirtualHost>

<VirtualHost _default_:443>
    ProxyRequests Off
    ServerName mail.varndean.ac.uk
   DocumentRoot "SYS:\APACHE2\HTDOCS"
   # NetWare iManager Config
    Include sys:/tomcat/4/conf/nps-Apache.conf
</VirtualHost>

<VirtualHost *:80>
    ServerName mail.varndean.ac.uk
    ProxyRequests Off
    DocumentRoot "sys:\apache2\mail-htdocs"
    RedirectPermanent / https://mail.varndean.ac.uk/
</VirtualHost>
<VirtualHost *:443>
    ServerName mail.varndean.ac.uk
    ProxyRequests Off
    DocumentRoot "sys:\apache2\mail-htdocs"
    ProxyPass / http://localhost:81/
    ProxyPassReverse / http://localhost:81/
</VirtualHost>

sys:\apache2\mail-htdocs along with some basic html pages are used for trapping/redirection.

Files Varndean Config - needsChecking with kieran =

You'd probaboly want something like this if you manage to get artemis to use a wildcard certificate:

<VirtualHost *:80>
    ServerName files.varndean.ac.uk
    ProxyRequests Off
    DocumentRoot "sys:\apache2\files-htdocs"
    # A bit of html in sys:\apache2\files-htdocs with a link pointing
    # the user to https://files would be pretty nice ;-)
    RedirectPermanent / https://files.varndean.ac.uk/NetStorage
</VirtualHost>
<VirtualHost *:443>
    ServerName files.varndean.ac.uk
    ProxyRequests Off
    DocumentRoot "sys:\apache2\files-htdocs"
# Include XTier configuration file
    Include sys:/netstorage/xsrv.conf
</VirtualHost>

current Mail config

Artemis has 2 IP addresses now. Netmail on one and groupwise on the other. Apache is listening ONLY on 212.219.118.84 aka gw.varndean.ac.uk. Netmail is therefore free to operate on port 443 on 212.219.118.85 no proxy needed.

Listen 212.219.118.84:80
SecureListen 212.219.118.84:443 "SSL CertificateDNS"
#SecureListen 443 "Mail CNAME"

ServerAdmin support@varndean.ac.uk

ServerName mail.varndean.ac.uk

NameVirtualHost *:80
NameVirtualHost *:443

ProxyRequests Off

<VirtualHost _default_:80>
ProxyRequests Off
    ServerName mail.varndean.ac.uk
    DocumentRoot "SYS:\APACHE2\HTDOCS"
    Include sys:/netstorage/xsrv.conf  
</VirtualHost>

<VirtualHost _default_:443>
    ProxyRequests Off
    ServerName mail.varndean.ac.uk
   DocumentRoot "SYS:\APACHE2\HTDOCS"
   # NetWare iManager Config
    Include sys:/tomcat/4/conf/nps-Apache.conf
</VirtualHost>

#<VirtualHost *:80>
#    ServerName mail.varndean.ac.uk
#    ProxyRequests Off
#    DocumentRoot "sys:\apache2\mail-htdocs"
#    RedirectPermanent / https://mail.varndean.ac.uk/
#</VirtualHost>
#<VirtualHost *:443>
#    ServerName mail.varndean.ac.uk
#    ProxyRequests Off
#    DocumentRoot "sys:\apache2\mail-htdocs"
#    ProxyPass / http://localhost:82/
#    ProxyPassReverse / http://localhost:82/
#</VirtualHost>
#

Main Menu

Personal tools

Toolbox