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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 15th October 2008, 18:17
vaio1 vaio1 is offline
Senior Member
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default Strange Redirect of the Co-Domains

Hi Folks,

I have a strange problem with dozen of co-domains associated to a main domain called mywebsite.com

Some of these domains seem to work and they redirect the user to mywebsite.com the main domain.

Other domains seems to redirect at that is the main shared IP domain server.

If the co-domain are called with the www.mywebsite.ext works and the user will be redirects to www.mywebsite.com. If I call the domain with simply mywebsite.ext the user will be redirects to the main shared IP.

This is the code of the Vhosts_ispconfig.conf file at /etc/httpd/conf/vhosts

ServerName www.mywebsite.com:80
ServerAdmin webmaster@mywebsite.it
DocumentRoot /var/www/web45/web
ServerAlias *.mywebsite.com *.mywebsite.net *.mywebsite.info .... 
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web45/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web45/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web45/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web45/user/$1/web/$3

I need to redirect all the domains, maintaining the domain name written in the url bar, in the main domain.
Have I to create two co-domain: *.mywebsite.net and mywebsite.net


Have you any idea about this problem?


Last edited by vaio1; 15th October 2008 at 18:43.
Reply With Quote
Sponsored Links


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
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
Web Hosting Only For Individual Domains bails Installation/Configuration 2 19th August 2008 17:35
Domains limit not enforced for resellers? mrvanes General 3 3rd January 2008 12:07
different counting of domains torusturtle Feature Requests 7 9th May 2007 23:18
Is there a Script to add Multiple Domains (websites) to ISPCONFIG??? bpmee Programming/Scripts 2 23rd February 2007 02:33

All times are GMT +2. The time now is 06:33.

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