![]() |
Subdomain creation problem / DNS problem
Hi,
After nearly two days of research, I decided to explain my problem here... I have a website (eve-admin.com) defined in a ISPConfig3 server. It works very well. A want to create a subdomain (dev.eve-admin.com), but not in a directory of eve-admin.com (for a development environment) For that, I created a new domain in the same serveur : dev.eve-admin.com According to your documentation, this is supposed to work. The website tree is created correctly. Problem : Connection in dev.eve-admin.com arrives on the main site www.eve-admin.com ... I fear I have missed a step :( ISPConfig Configuration: Main domain : Domain : eve-admin.com Auto subdomain : www. redirect type : no redirection SEO Redirect : no redirection Active : yes "dev." domain: Domain : dev.eve-admin.com Auto subdomain : no redirect type : no redirection SEO Redirect : no redirection Active : yes DNS Configuration (managed in OVH): Code:
$TTL 86400That's all. I hope you find a solution to my problem... Thank you in advance for your help Quote:
|
Please check that you select the same IP or * in the dev subdomain that you use for the other site. The most common reason when a request shws the wrong site is that IP addresses and * are mixed in site settings, a IP address has precedence in this case so all requests to a site that uses * will be redirectd to the site that uses the IP.
The other site settings and dns record you posted is ok. |
I've only one IP address set in the server.
But it's right : the dev's domain "IP Address" field was configured with "*" while for main's domain it's "46.xx.xx.xx" I corrected (both with IP address). Result : both website (dev.eve-admin.com and www.eve-admin.com) are redirected to dev's domain... I'll try to set "IP Address" to "*" for both, but it's the same : both are redirected to dev's domain... It's a first step, but not the end of the road :( |
Please post or attach the vhost files (they are in /etc/apache2/sites-available/) of both sites and post the ouput of:
ls -la /etc/apache2/sites-available/ ls -la /etc/apache2/sites-enabled/ |
eve-admin.com.vhost :
Code:
<Directory /var/www/eve-admin.com>Code:
<Directory /var/www/dev.eve-admin.com>Code:
root@vps14505:/etc/apache2/sites-available# ls -al /etc/apache2/sites-available/Code:
root@vps14505:/etc/apache2/sites-available# ls -la /etc/apache2/sites-enabled/ |
up !
The problem still exists... All subdomains are redirected to dev.eve-admin.com Any idea ? |
The vhost files are ok. Do you get any errors when you restart apache?
|
A restart server to see if any errors occur :
- No error in /var/log/apache2/error.log : Code:
[Sun Feb 10 06:25:09 2013] [notice] Digest: generating secret for digest authentication ...- No log in /var/log/ispconfig/httpd/eve-admin.com in the last 5 days - in /var/log/ispconfig/httpd/dev.eve-admin.com/access.log : Code:
78.125.13.147 - - [12/Feb/2013:11:18:02 +0100] "GET /index.html HTTP/1.1" 200 5883 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0"- in /var/log/ispconfig/httpd/dev.eve-admin.com/error.log : Code:
[Tue Feb 12 10:22:07 2013] [error] [client 37.59.88.213] client denied by server configuration: /usr/share/phpmyadmin/libraries/select_lang.lib.php |
I have the same problem
I have the same problem!
If I add by hand any record in /etc/bind/pri.any_domain.com, then I have problem with all domains,which I create after manual edit of /etc/bind/pri.any_domain.com. But all domains before the edit steel is worked fine. for example by hand I write in /etc/bind/pri.any_domain.com: ns1 3600 A 123.456.789.999 ns2 3600 A 123.456.789.999 * after edit by hand -> /etc/init.d/bind9 restart |
My problem is SOLVED
my problem is SOLVED
I use ISPConfig to add ns and ns1 after that restarted bind9 and I'm HAPPY whit my new perfect installed server! :-) |
| All times are GMT +2. The time now is 05:59. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.