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 244.232.22.112 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
Code:
<VirtualHost 244.232.22.112:80>
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
</VirtualHost>
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
Thanks
Have you any idea about this problem?
Regards
Recent comments
1 day 7 hours ago
1 day 7 hours ago
1 day 12 hours ago
1 day 19 hours ago
1 day 19 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 8 hours ago
2 days 11 hours ago
2 days 13 hours ago