Incorrect subdomain handling

Hubbitus

New member
Joined
Aug 3, 2011
Messages
3
Helloo, All!

I had bought hosting from host1plus.com. After that I have very long discussion with its support team and at end they send me write bugreport to yours, because they use DirectAdmin as end user hosting software.

I've setup two my subdomains: mail.hubbitus.info and test.hubbitus.info. Last one works as expected and default page shown: http://test.hubbitus.info/. But first handled by some special way, as I can understood and redirect to SquirellMail interface happened: http://mail.hubbitus.info/src/login.php

Please note administrative interface allow me setup it, but it never working!

I think there may be at least 3 way to fix it:
  1. Most easy - just check if subdomains (mail, webmail etc) reserved for inner DIrectAdmin usage and do not allow users create custom subdomains on it.
  2. Second - check if user setup such domain - disable its special meaning and setup as user do it.
  3. Most correct - fusion of previous two. Check if chosen subdomain have special meaning and give user chose with short description what to do with it.
 
Hosting providers should never be sending end users to directadmin for support. They mst be a horrid hosting provider.
 
Your post has nothing to do with Apache, the subforum in which you placed it. I've moved it; it's a user issue.

And it's not a bug at all; I've removed the term BUG from your message title.

I had bought hosting from host1plus.com. After that I have very long discussion with its support team and at end they send me write bugreport to yours, because they use DirectAdmin as end user hosting software.
mr.applesauce is correct, you should not expect a forum whose members are mostly other hosting companies, give support your hosting company isn't able to give you.
I've setup two my subdomains: mail.hubbitus.info and test.hubbitus.info. Last one works as expected and default page shown: http://test.hubbitus.info/. But first handled by some special way, as I can understood and redirect to SquirellMail interface happened: http://mail.hubbitus.info/src/login.php

Please note administrative interface allow me setup it, but it never working!
It works for me now, so it appears you've fixed it and not bothered to report back. Possibly it didn't work because your redirect ran into a loop. If the generous purpose tools don't work because of your specific requirements and/or situation, you should of course write your own .htaccess file(s). Most of us here are systems administrators, not html coders, so it's probably not reasonable for us to understand the intracies of html.
I think there may be at least 3 way to fix it:

Most easy - just check if subdomains (mail, webmail etc) reserved for inner DIrectAdmin usage and do not allow users create custom subdomains on it.

check if user setup such domain - disable its special meaning and setup as user do it.

Most correct - fusion of previous two. Check if chosen subdomain have special meaning and give user chose with short description what to do with it.
DirectAdmin has now way of knowing what you want to use a subdomain for, and gives you flexibility to use any domain for any purpose.

Jeff
 
Firstly thank you very much for the answer and willing to help!

Your post has nothing to do with Apache, the subforum in which you placed it.
I thinking this subforum not only about apache issues of directAdmin installation, but also working with they virtual hosts.

Sorry if I have been mistaken.

I've moved it; it's a user issue.
As you want.

And it's not a bug at all; I've removed the term BUG from your message title.
Ok. But may be you change you mind concerning it in the future.

mr.applesauce is correct, you should not expect a forum whose members are mostly other hosting companies, give support your hosting company isn't able to give you.
You are both right about such answer from my hosting provider. I think anout it in similar way... But it is my last chance get support from yours to solve problem.

It works for me now, so it appears you've fixed it and not bothered to report back. Possibly it didn't work because your redirect ran into a loop. If the generous purpose tools don't work because of your specific requirements and/or situation, you should of course write your own .htaccess file(s). Most of us here are systems administrators, not html coders, so it's probably not reasonable for us to understand the intracies of html.

No, no, it still does not working.
To be honest I'm not understand what you mean speaking about html, but I speak only about setup issue.
So, I'll demonstrate issue step-by step:
  1. I'he setup subdomain http://test.hubbitus.info in directAdmin. Subdirectory test was created and DOCUMENT_ROOT placed in ~/domains/hubbitus.info/public_html/test
  2. Then placed file index.html with sole content "This is test.hubbitus.info index.html file.". As you can see it works as expected.
  3. Then setup second domain (really it was in revert order and test. was created only to demonstrate issue) subdomain http://mail.hubbitus.info.
  4. Placed in it document root directory index.html with similar content: "This is mail.hubbitus.info index.html file.". Unfortunately it never has been worked as my user subdomain. Instead squirell web interface appeared there initially! And I have no way reach my own index.html file or ony other my content on it. I had double checking there no any .htaccess files.

It was reason why I have create support ticket support to my hosting provider mentioned before, but got answer, citing:
Dear Mr. Pavel,
unfortunately the subdomains "mail" and "webmail" are reserved for webmail access interface by the DirectAdmin panel. Your virtual host is configured like this:


ServerName webmail.hubbitus.info
ServerAlias mail.hubbitus.info
ServerAdmin [email protected]
DocumentRoot /var/www/html/squirrelmail

I regret to inform you that I will not be able to change this for you.

DirectAdmin has now way of knowing what you want to use a subdomain for, and gives you flexibility to use any domain for any purpose.
Gold words! I think such also! and it is main idea what I was tried told to my hosting provider in support ticket!
 
I thinking this subforum not only about apache issues of directAdmin installation, but also working with they virtual hosts.

Sorry if I have been mistaken.
It's not a bug since both Apache and DirectAdmin are working as designed.
You are both right about such answer from my hosting provider. I think anout it in similar way... But it is my last chance get support from yours to solve problem.
But the problem is you're not going to get good help here. The problem appears to be with your hosting company's setup (DirectAdmin is very flexible) and not with the design of DirectAdmin.
I'he setup subdomain http://test.hubbitus.info in directAdmin. Subdirectory test was created and DOCUMENT_ROOT placed in ~/domains/hubbitus.info/public_html/test

Then placed file index.html with sole content "This is test.hubbitus.info index.html file.". As you can see it works as expected.

Then setup second domain (really it was in revert order and test. was created only to demonstrate issue) subdomain http://mail.hubbitus.info.

Placed in it document root directory index.html with similar content: "This is mail.hubbitus.info index.html file.". Unfortunately it never has been worked as my user subdomain. Instead squirell web interface appeared there initially! And I have no way reach my own index.html file or ony other my content on it. I had double checking there no any .htaccess files.
I've just tested, and for me the mail subdomain works as expected.
It was reason why I have create support ticket support to my hosting provider mentioned before.
My guess is they've set it up that way; it doesn't seem to be a standard in DirectAdmin.

However, though mail isn't one of them there are some reserved subdomain names in DirectAdmin; I can't remember them right now. webmail may be one of them. I'm not sure.

Jeff
 
It's not a bug since both Apache and DirectAdmin are working as designed.

But the problem is you're not going to get good help here. The problem appears to be with your hosting company's setup (DirectAdmin is very flexible) and not with the design of DirectAdmin.

I've just tested, and for me the mail subdomain works as expected.

My guess is they've set it up that way; it doesn't seem to be a standard in DirectAdmin.

However, though mail isn't one of them there are some reserved subdomain names in DirectAdmin; I can't remember them right now. webmail may be one of them. I'm not sure.

Jeff

THANK YOU very much. Now I can point my hosting company to that topic and your answer!!
 
Back
Top