Re: Setup SquirreMail with Virtual Host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Rdrigo,

I have a buch of Squirrelmail VHosts like
    <https://webmail.tamay-dogan.net/>
running and it is a simple VHost.
I had not to change anything but simply setup a VHost in Apache2

----[ '/srv/APACHE_availlable/webmail.xxxxx-xxxxx.xxx' ]----------------
<VirtualHost 78.47.247.21:80>
    ServerAdmin     hostmaster@xxxxxxxxxxxxxxxxxxxxxxxxx
    ServerName      webmail.xxxxx-xxxxx.xxx
    Redirect        / https://webmail.xxxxx-xxxxx.xxx/
</VirtualHost>

<VirtualHost 78.47.247.21:443>
    ServerAdmin     hostmaster@xxxxxxxxxxxxxxxxxxxxxxxxx
    ServerName      webmail.xxxxx-xxxxx.xxx

    SSLCertificateFile /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/ssl/cert.pem
    SSLCertificateKeyFile /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/ssl/privkey.pem
    SSLCertificateChainFile /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/ssl/chain.pem
    Include         /srv/APACHE_configs/SSL

    DocumentRoot    /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/htdocs

    Alias /squirrelmail             /usr/share/squirrelmail

    <Directory /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/htdocs>
      Options Indexes FollowSymLinks
      <IfModule mod_php5.c>
        php_flag register_globals off
      </IfModule>
      <IfModule mod_dir.c>
        DirectoryIndex index.php
      </IfModule>

      <Files configtest.php>
        order deny,allow
        deny from all
      </Files>
    </Directory>

    <Directory />
        Options		FollowSymLinks Indexes
        AllowOverride	None
    </Directory>

    # debug, info, notice, warn, error, crit, alert, emerg.
    LogLevel    warn
    ErrorLog    /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/log/apache/error.log

    LogFormat   "%{[%Y-%m-%d %H:%M:%S %z]}t %h [%V] %l %u \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\"" vhost
    CustomLog   /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/log/apache/access.log
vhost

    ServerSignature  On
</VirtualHost>
------------------------------------------------------------------------

This is JUST WORKING!

Am 2018-01-19 hackte Rodrigo Cunha in die Tasten:
> Dear, i have a problem in config vhost squirremail.
> I'm following the steps in the tutorial [
> http://www.100security.com.br/postfix-squirrelmail-outlook/] . The autor
> indicate setup this changes in apache2.conf:
>
> Alias /webmail â??/usr/share/squirrelmail/â??
> DirectoryIndex index.php
>
> but i want create vhost for my domain "mail.mydomain.com" and not create
> redirect IP/webmail.I want config this mail with my other localwebsites
> like:
> /etc/apache2/site-available/mail.mydomain.conf  and setup this file with
> a2ensite mail.mydomain.conf, etc.
>
> What is steps for configure my squirremail with vhost and not ip/webmail.
> Tks.
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux