PDA

View Full Version : External DNS server


NeoSyRenity
27th October 2009, 01:29
Hi.

I'm trying to make external DNS server A records to work with site running on ISPConfig 3.

This configuration should be possible, right?

But for some reason, I'm getting the server default welcome page, and not the site.

Any idea how to resolve this?

Thanks in advance!

NeoSyRenity
27th October 2009, 01:48
Hi.

Ok, I partially sorted it out - just needed to define the domain correctly (domain.tld and not www.domain.tld - maybe some check in this page will help future users?).

The problem is that when I type domain.tld, I reach the site correctly, but when I type www.domain.tld, I reach the server default document directory.

The server is called exactly same name (www.domain.tld), could it be the reason?
If yes, anyway to fix it, or I have to change the server name?

Thanks in advance!

till
27th October 2009, 09:58
You have to use domain.tld in the website settings and if www.domain.tld shall point to the same website then select auto subdomain www in the website settings.

NeoSyRenity
27th October 2009, 11:21
Hi.

This is exactly what I have, but on www.domain.tld I'm receiving the server (Debian) "It works!" page, and not the site virtual host.

Again, my server is named exactly in same way - www.domain.tld. Could it be related?

Thanks again!

NeoSyRenity
28th October 2009, 11:14
Hi.

Any idea about the issue?

I really need to sort this out soon, otherwise will need to re-install the server with another name - which I really don't want.

Thanks in advance!

till
28th October 2009, 11:16
Please post the content of the apache vhost file of this websites. the file is in /etc/apache2/sites-enabled or a similar directory depending on the linux distribution.

NeoSyRenity
28th October 2009, 13:03
Hi.

Here it is:

<Directory /var/www/1trabajo1.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost *:80>
DocumentRoot /var/www/1trabajo1.com/web

ServerName 1trabajo1.com
ServerAlias www.1trabajo1.com
ServerAdmin webmaster@1trabajo1.com

ErrorLog /var/log/ispconfig/httpd/1trabajo1.com/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

<Directory /var/www/1trabajo1.com/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web3/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

# php as fast-cgi enabled
<Directory /var/www/1trabajo1.com/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web3/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride all
Order allow,deny
Allow from all
</Directory>


</VirtualHost>


Thanks.

falko
28th October 2009, 16:32
Do you use www.1trabajo1.com somewhere else in your Apache configuration? What are the outputs of hostname and hostname -f?

NeoSyRenity
28th October 2009, 19:36
Hi.

That's the point - the server itself is also called www.1trabajo1.com, so it maybe what is causing the issue?

The results of commands:

www:~# hostname
www.1trabajo1.com
www:~# hostname -f
www.1trabajo1.com

Thanks again.

ivomendonca
29th October 2009, 02:28
Hi.

That's the point - the server itself is also called www.1trabajo1.com, so it maybe what is causing the issue?

The results of commands:

www:~# hostname
www.1trabajo1.com
www:~# hostname -f
www.1trabajo1.com

Thanks again.

Yes, thats is the first problem. read how to set an hostname in "perfect server config".
Hostname is not used for domain resolving so if you add. xpto.anyname.com as hostname ispconfig will work.

NeoSyRenity
29th October 2009, 12:03
Hi.

Thanks for the advice!

I changed the server name and updated the hosts file, and all works now.

Should I change anything in ISPConfig as well, or it will pick the name change by itself?

Regards.

ivomendonca
29th October 2009, 21:16
Hi.

Thanks for the advice!

I changed the server name and updated the hosts file, and all works now.

Should I change anything in ISPConfig as well, or it will pick the name change by itself?

Regards.

The name is in the mysql database. just change there i never tried, i think that will work.
by

NeoSyRenity
3rd November 2009, 00:09
Hi.

So the only thing I need to update is the field in ISPConfig DB?

Anything else that should be done?

Thanks again.

ivomendonca
3rd November 2009, 00:57
Hi.

So the only thing I need to update is the field in ISPConfig DB?

Anything else that should be done?

Thanks again.

/etc/hosts and database record and maybe will work.
Backup and try.

NeoSyRenity
3rd November 2009, 01:45
Hi.

Any idea where are the settings for DB are stored, for ISPConfig 3?

Regards.

till
3rd November 2009, 12:18
Do not update anything in the mysql db directly, the settings will not be used then. Just change the settings in the ispconfig interface!

NeoSyRenity
3rd November 2009, 14:38
Hi.

Thanks - I should have think of this myself! :)

There are 2 settings, Edit server and Server config (which may be needed to be unified?).

I presume I should update them both?

Regards.