Installation -> Apache virtual Hosts

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

claus

Installation -> Apache virtual Hosts

Postby claus » Tue Oct 14, 2008 1:39 am

Hi there!

maybe this question is allready asked a thousand times... but I haven't found it yet...

My Question in Short:
I have allready a Apache Named-Based Virtualserver running and I cannot connect to the new Website provided by Scalix-Software


Here is my situation:
I have a virtual Server with Fedora 9 und Apache 2.2 running.
I use Name-Based Virtual hosts (using virtual.conf) where I have configured my single-external IP-Adresse with subdomains like:
123.123.123.123 -> (http://)claus.mydomain.de
123.123.123.123 -> (http://)mybrother.mydomain.de
123.123.123.123 -> (http://)mail.mydomain.de --> this should be the domain for the scalix-server
123.123.123.123 -> www.myfriendsdomain.de

I only want to use SSL for "mydomain" (later on...) so the remark
IMPORTANT: Name-Based Virtual Hosts and SSL
-> in scalix_setup_and_configuration.pdf should be no Problem ?

Now I have installed Scalix but I have no access (I can only access the server via internet -> no localhost or graphical access) to the webpage of scalix

What do I have to configure to connect to the server via mail.mydomain.de ??

I found some notes in documentation:
For integration with Apache, either Apache 2.2 using mod_proxy_ajp or Apache 2.0 with mod_jk is required. A version of libapache2-mod-jk for debian Sarge stable is provided with the Scalix debian installation package.


and

Integrating the Web-based Scalix Rules Wizard into Apache
You will just need to link the Apache config file into your Apache config directory:
ln -s /opt/scalix/global/httpd/scalix-web-client.conf /etc/httpd/conf.d
/etc/init.d/httpd restart


But I haven't found anything about the virtual.conf (or httpd.conf)?

<VirtualHosts *:80>
?????
</VirtualHosts>



hostname
If I want to use mail.mydomain.de as external name for scalix -> do I have to change my hostname to this domain?



Anyone who can help? Greetings
Claus

Attachments:


Here a short version of my virtual.conf:

Code: Select all

#
# We're running multiple virtual hosts.
#
NameVirtualHost *:80

<VirtualHost *:80>
   ServerAdmin webmaster@mydomain.de
   ServerName claus.mydomain.de
   ServerAlias claus.mydomain.de claus.mydomain.eu
   DocumentRoot /var/web/claus_mydomain/htdocs

   # LogFiles
   ErrorLog /var/web/claus_mydomain/logs/error.log
   CustomLog /var/web/claus_mydomain/logs/acces.log combined

   # Error Documents
   ErrorDocument 403 /403.html
   ErrorDocument 404 /404.html

   #CGI Directory
   ScriptAlias /cgi-bin/ "/var/web/claus_mydomain/cgi-bin/"
   <Directory "/var/web/claus_mydomain/cgi-bin">
      AllowOverride None
      Options None
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

<VirtualHost *:80>
Scalix --> mail.mydomain.de --->???
</VirtualHost>


<VirtualHost *:80>
   ServerAdmin webmaster@mydomain.de
   ServerName www.mydomain.de
   ServerAlias *.mydomain.de *.mydomain.eu
   DocumentRoot /var/web/www_mydomain/htdocs

   # LogFiles
   ErrorLog /var/web/www_mydomain/logs/error.log
   CustomLog /var/web/www_mydomain/logs/acces.log combined

   # Error Documents
   ErrorDocument 403 /403.html
   ErrorDocument 404 /404.html

   #CGI Directory
   ScriptAlias /cgi-bin/ "/var/web/www_mydomain/cgi-bin/"
   <Directory "/var/web/www_mydomain/cgi-bin">
      AllowOverride None
      Options None
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>


btw. This configuration works for my normal Websites... ^^

(maybe I have to check whether the Symbolic Link for Apache is set)
Last edited by claus on Tue Oct 14, 2008 3:34 am, edited 1 time in total.

claus

Help !?

Postby claus » Thu Oct 16, 2008 12:48 am

No one here who can help me with this Problem?
Shouldn't it be a standard configuration to host more than one site at one Server?

Greetings
Claus

vfry

Postby vfry » Sun Feb 01, 2009 5:22 pm

Having the same issue. BUMP!

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Mon Feb 02, 2009 3:16 am

This is the kind of thing you really need a lot of Apache knowledge for. And it varies from site to site. Giving you a pasted recipe may or may not work in your scenario, because we don't know exactly how the rest of it is configured.

That said, the following must be accessible as server.domain.com, where this is the real FQDN of the server:

Code: Select all

/api
/caa
/res
/sis


You will also need to remove the Scalix symlinks installed into /etc/httpd/conf.d.

Here's mine. Disclaimer: This works on my system. It may not work on yours and may break it. Use at your own risk. Use it to understand the concept, don't copy and paste.

Code: Select all

<VirtualHost *:80>
        ServerAdmin webmaster@domain.com
        ServerName mail.domain.com

        RewriteEngine on
        RewriteRule ^(.*) https://mail.domain.com:443$1 [R,L]

</VirtualHost>

<VirtualHost *:443>
        ServerAdmin webmaster@domain.com
        ServerName mail.domain.com
        ErrorLog logs/mail.domain.com-error_log
        CustomLog logs/mail.domain.com-access_log common

        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]

        SSLEngine on
        SSLProtocol -all +SSLv3 +TLSv1
        SSLCipherSuite HIGH:MEDIUM:!ADH:!SSLv2
        SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
        SSLCertificateFile /etc/pki/tls/certs/localhost.crt
        SSLCertificateKeyFile /etc/pki/tls/private/localhost.key

        <Location />
                SSLOptions +StdEnvVars
                AddOutputFilterByType DEFLATE text/xml text/html text/css
                AddOutputFilterByType DEFLATE application/x-javascript
                Order Allow,Deny
                Allow from all
        </Location>

        <IfModule mod_setenvif.c>
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown \
        downgrade-1.0 force-response-1.0
        </IfModule>

        <IfModule mod_log_config.c>
        CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
        </IfModule>

        Alias /mail /usr/share/squirrelmail

        Include /opt/scalix/global/httpd/scalix-web-client.conf

        ProxyPass /api ajp://server.domain.com:8009/api
        ProxyPass /caa ajp://server.domain.com:8009/caa
        ProxyPass /m ajp://server.domain.com:8009/m
        ProxyPass /sac ajp://server.domain.com:8009/sac
        ProxyPass /res ajp://server.domain.com:8009/res
        ProxyPass /sis ajp://server.domain.com:8009/sis
        ProxyPass /webmail ajp://server.domain.com:8009/webmail

</VirtualHost>


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 2 guests

cron