Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 21st June 2006, 18:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I've just found this tutorial about redirects: http://www.stevenhargrove.com/redirect-web-pages/
__________________
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
Sponsored Links
  #12  
Old 27th June 2006, 07:13
monster monster is offline
Junior Member
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by todvard
you can create a virtualhost in Apache (not in ISPConfig) with this content:

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

DocumentRoot /var/www/sharedip

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail..+..+$ [NC]
RewriteCond %{HTTP_HOST} !^mail.domain.com$
RewriteRule ^(.*)$ https://webmail.domain.com$1 [R=301]

</VirtualHost>

It will redicrect all incoming querys from http://mail.* to https://webmail.domain.com (of course, "webmail" hosname in domain.com domain should exist, and "mail" host in all domains too, you can create them in DNS Manager)
Do i have to insert this for every domain i add?
Reply With Quote
  #13  
Old 27th June 2006, 12:44
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,787
Thanks: 840
Thanked 5,611 Times in 4,422 Posts
Default

Quote:
Originally Posted by monster
Do i have to insert this for every domain i add?
No, only once for every IP you use for webhosting on your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #14  
Old 27th June 2006, 12:54
todvard todvard is offline
Member
 
Join Date: Aug 2005
Posts: 85
Thanks: 1
Thanked 6 Times in 5 Posts
Default

Quote:
Originally Posted by monster
Do i have to insert this for every domain i add?
no, only once as a new apache virtualhost:

STEP 1.: create a new web in ISPconfig, with name mail.YOURDOMAIN.COM. Install Squirrelmail into this web. Make sure it is working, accessible from outside and you can log in. Create SSL certificate for this website if you would like to log in to webmail through HTTPS.

STEP 2. create a new virtualhost in apache (eg.: /etc/apache2/sites-available/webmail.conf) with this content:

Code:
<VirtualHost 192.168.1.1:80>
ServerName mail.*:80
ServerAdmin webmaster@YOURDOMAIN.COM

DocumentRoot /var/www/sharedip

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail..+..+$ [NC]
RewriteCond %{HTTP_HOST} !^mail.YOURDOMAIN.COM$
RewriteRule ^(.*)$ https://mail.YOURDOMAIN.COM$1 [R=301]

</VirtualHost>
Note: replace IP address with your IP address and YOURDOMAIN.COM with your domain name. If you dont want to server webmail over HTTPS replace
RewriteRule ^(.*)$ https://mail.YOURDOMAIN.COM$1 [R=301] with
RewriteRule ^(.*)$ http://mail.YOURDOMAIN.COM$1 [R=301]

STEP 3. link it to sites-enabled:
Code:
ln -s /etc/apache2/sites-available/webmail.conf /etc/apache2/sites-enabled/webmail.conf
STEP 4. go back to ISPconfig - DNS Manager and create "webmail" host for every domain which should access your webmail site through webmail.OTHERDOMAIN.COM
Reply With Quote
  #15  
Old 11th July 2006, 18:24
admiral admiral is offline
Junior Member
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SquirrelMail Package!

Great package, but still have a small question on allowing other domains to use. In the directions outlined below, Step 1 states the following:

Install Squirrelmail into this web. Make sure it is working, accessible from outside and you can log in.

What do you mean install Squirrelmail into this web. If you install the pkg through ISPConfig, it is installed just once. How do you install it per domain? Thanks.
Reply With Quote
  #16  
Old 12th July 2006, 13:07
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,787
Thanks: 840
Thanked 5,611 Times in 4,422 Posts
Default

Quote:
Originally Posted by admiral
Great package, but still have a small question on allowing other domains to use. In the directions outlined below, Step 1 states the following:

Install Squirrelmail into this web. Make sure it is working, accessible from outside and you can log in.

What do you mean install Squirrelmail into this web. If you install the pkg through ISPConfig, it is installed just once. How do you install it per domain? Thanks.
Todvard did not use the .pkg file available for ISPConfig. He created a website in ISPConfig and installed the tar.gz version of Squirrelmail available on the squirrelmail project page.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 7th August 2006, 00:05
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Default squirrelmail package on ispconfig website

I guess Till is a very busy man
He still did not put the squirrelmail package on http://www.ispconfig.org/downloads.htm

To put it there would be nice or ...
__________________
Hans

MrHostman | Managed Hosting
Reply With Quote
  #18  
Old 7th August 2006, 14:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I've just put it on http://www.ispconfig.org/downloads.htm
__________________
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
  #19  
Old 8th August 2006, 10:20
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,787
Thanks: 840
Thanked 5,611 Times in 4,422 Posts
Default

Quote:
Originally Posted by Hans
I guess Till is a very busy man
He still did not put the squirrelmail package on
Sorry, I totally forgot it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #20  
Old 8th August 2006, 12:36
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
 
Thumbs up

Thanks a lot Falko & Till.
__________________
Hans

MrHostman | Managed Hosting
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual users, domains Postfix.. & Squirrelmail laser144 HOWTO-Related Questions 6 5th May 2006 00:23
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 12:14
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58
Logging in to isp config Jrdgames General 43 6th March 2006 20:04
suse 9.3 install: E: Couldn't find package ncftp aallen Installation/Configuration 4 26th January 2006 21:02


All times are GMT +2. The time now is 19:31.


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