Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th December 2011, 19:25
Trunkles Trunkles is offline
Member
 
Join Date: Oct 2010
Location: New Zealand
Posts: 46
Thanks: 1
Thanked 3 Times in 2 Posts
Default webmail.server.example.com isn't there.

Hi folks.

I've made the mods suggested so that http://webmail.drsimon.co.nz should give a squirrel mail login, but it doesn't.

What I get is the standard
Code:
It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.
If, however, you go to http://drsimon.co.nz/webmail all is fine.

Here's my /etc/apache2/conf.d/squirrelmail.conf
Code:
Alias /squirrelmail /usr/share/squirrelmail
Alias /webmail /usr/share/squirrelmail

<Directory /usr/share/squirrelmail>
  Options FollowSymLinks
  <IfModule mod_php5.c>
    AddType application/x-httpd-php .php
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
    php_admin_flag allow_url_fopen Off
    php_value include_path .
    php_admin_value upload_tmp_dir /var/lib/squirrelmail/tmp
    php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname
    php_flag register_globals off
  </IfModule>
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>

  # access to configtest is limited by default to prevent information leak
  <Files configtest.php>
    order deny,allow
    deny from all
    allow from 127.0.0.1
  </Files>
</Directory>

# users will prefer a simple URL like http://webmail.example.com
<VirtualHost 222.154.250.78>
  DocumentRoot /usr/share/squirrelmail
  ServerName webmail.drsimon.co.nz
</VirtualHost>

# redirect to https when available (thanks omen@descolada.dartmouth.edu)
#
#  Note: There are multiple ways to do this, and which one is suitable for
#  your site's configuration depends. Consult the apache documentation if
#  you're unsure, as this example might not work everywhere.
#
#<IfModule mod_rewrite.c>
#  <IfModule mod_ssl.c>
#    <Location /squirrelmail>
#      RewriteEngine on
#      RewriteCond %{HTTPS} !^on$ [NC]
#      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
#    </Location>
#  </IfModule>
#</IfModule>
I've obviously done something wrong somewhere but I've no idea what. I bet you have though!

Enlighten me, please.

Simon.
Reply With Quote
Sponsored Links
  #2  
Old 12th December 2011, 18:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Can you try
Code:
<VirtualHost 222.154.250.78:80>
  DocumentRoot /usr/share/squirrelmail
  ServerName webmail.drsimon.co.nz
</VirtualHost>
in /etc/apache2/conf.d/squirrelmail.conf instead?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th December 2011, 07:37
Trunkles Trunkles is offline
Member
 
Join Date: Oct 2010
Location: New Zealand
Posts: 46
Thanks: 1
Thanked 3 Times in 2 Posts
Default

I inserted this

Code:
<VirtualHost 222.154.250.78:80>
  DocumentRoot /usr/share/squirrelmail
  ServerName webmail.drsimon.co.nz 
  ServerName www.webmail.drsimon.co.nz
</VirtualHost>
at the end of /etc/squirrelmail/apache.confbut to no avail. If I try http://webmail.drsimon.co.nz I get the standard Apache "It works!... no content has been added yet" screen, if I try http://www.webmail.drsimon.co.nz I get a server not found error. http://drsimon.co.nz/webmail and the www. version work fine.
Reply With Quote
  #4  
Old 19th December 2011, 11:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Try
Code:
<VirtualHost 222.154.250.78:80>
  DocumentRoot /usr/share/squirrelmail
  ServerName webmail.drsimon.co.nz 
  ServerAlias www.webmail.drsimon.co.nz
</VirtualHost>
instead. Is the IP address correct?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
webmail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.