Announcement

Collapse
No announcement yet.

[HOW-TO] Setup the Apache 1.3 + mod-proxy + WebMail

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [HOW-TO] Setup the Apache 1.3 + mod-proxy + WebMail

    [HOW-TO] Setup the Apache 1.3 + mod-proxy + WebMail

    First you need to make sure you have correctly installed Apache 1.3.x and the Axigen mail server.
    We recommend using version 1.3.x of the Apache software because of a few the keep alive issues reported with Apache 2.x.

    With everything set up, we will use the following setup as an example:

    - One Apache server (example.com) that will server as the proxy. We will call this machine the "proxy".
    - One separate Axigen server that will forward the WebMail to the proxy. We will call this machine the "webmail".
    - We will use the webmail's IP as 192.168.1.12 as to point out in the configuration example the exact values that need changing.

    There is no configuration needed for the WebMail interface other than having it running on an accessible port. We will use the default port 8000 in the following examples.

    DNS configuration

    We will use the test domain "example.com" in our examples. We aim th set up webmail.example.com so for this we need to have a CNAME entry in the forward zone of the DNS server that resembles:

    Code:
    webmail      CNAME      www
    This will make webmail.example.com accessible at the same IP address used for the www.example.com page. This will be possible because of the VHOST sections in the httpd.conf file.

    Apache configuration

    You must have the proxy module loaded for the proxy related directives to work. Then, in the configuration file "httpd.conf" make sure you have the following:

    Code:
    NameVirtualHost *:80
    The above option will enable virtual hosting for all the interfaces. Next make sure you enter the following VHOST entry so that the webmail interface is accessible:

    Code:
    <VirtualHost *:80>
        ServerAdmin root@example.com
        ServerName webmail.example.com
        ProxyPass / http://192.168.1.12:8000/
        ProxyPassReverse / http://192.168.1.12:8000/
        RewriteEngine On
        ErrorLog logs/webmail.example.com-error.log
        CustomLog logs/webmail.example.com-access.log common
    </VirtualHost>
    The address:
    Code:
    192.168.1.12:8000
    should be replaced by the address you use to host your Axigen webmail interface. You should also replace the "example.com" domain with your own domain name.

    Save the file and restart your Apache web server to test the configuration.

    Now, using a browser go to the "webmail.example.com" and log into the now available webmail interface.
    Ciprian NEGRILA,
    Technical Consultant, AXIGEN

    #2
    Impossible to access Axigen via Apache Proxy (it seems)

    Hello,

    IMHO Axigen webmail (and eventually) should be accessed from within the domain website using (apache) proxy, preferable using SSL.

    remark: I changed the url's below to be able to post this mail (urg .... !! terrible Sorry for the inconvenience)

    I spend days(!) trying to get that working, trying with all kind of logical and also strange apache setups using apache 2.2 and 2.4. At the end of

    Comment


      #3
      bumppppppppppp

      Comment

      Working...
      X

      This is the legacy Axigen forum, which is no longer active.

      To create new topics & posts, please visit the new Axigen community.

      Axigen Community