#1  
Old 2nd August 2012, 20:44
tahunasky tahunasky is offline
Member
 
Join Date: Jul 2012
Location: Buenos Aires
Posts: 84
Thanks: 1
Thanked 9 Times in 9 Posts
Default subdomain redirects

Hi,

i want to point the following subdomains to the appropriate apps:

mail.mydomain.com -> /usr/share/squirrelmail
cloud.mydomain.com -> /usr/share/owncloud

however when i do this it cant find them. i have tried:

SITES/SUBDOMAINS

Host mail
Domain mydomain.com
Redirect Type noflag
Redirect Path /../../../../../usr/share/squirrelmail/
Active check

That worked for a while, and then it didnt.

i have also tried:
Redirect Path /usr/share/squirrelmail/
Redirect Path /webmail/
Redirect Path http://mydomain.com/webmail/
Redirect Path https://mydomain.com/webmail/

and nothing seems to work..

if i do a nslookup mail.mydomain.com from within the server or on the network, it brings back the correct ip address.
i have also tried setting the DNS with an A record and CNAME for the mail / cloud subs:

A mydomain.com. 10.0.0.95
A mail 10.0.0.95

or

A mydomain.com. 10.0.0.95
CNAME mail 10.0.0.95

has anyone got this working ?

thanks for any help..

Last edited by tahunasky; 2nd August 2012 at 20:56.
Reply With Quote
Sponsored Links
  #2  
Old 3rd August 2012, 10:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,717
Thanks: 840
Thanked 5,592 Times in 4,404 Posts
 
Default

Subdomain redirects are not made to load content from a directory outside the web dir.

1) Delete the subdomain in ispconfig.
2) Edit the file in /etc/apache2/conf.d/squirrelmail.conf and add there:

<VirtualHost 1.2.3.4:80>
DocumentRoot /usr/share/squirrelmail
ServerName webmail.mydomain.com
</VirtualHost>

3) Do the same for owncloud.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Setup subdomain with ISPConfig Nap Installation/Configuration 2 30th July 2012 21:06
Subdomain, Godaddy & NO-IP Salital Installation/Configuration 5 29th September 2011 19:02
DNS zone and subdomain with Joomla, Drupal, Wordpress emanation Installation/Configuration 6 16th September 2011 11:41
Proper subdomain support. arcain6 Feature Requests 1 28th June 2010 11:15
How Subdomain works (for documentation) moglia Developers' Forum 7 19th June 2010 23:14


All times are GMT +2. The time now is 23:34.


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