HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Issues with MyDNS and ISPConfig 3.0.0.8 (http://www.howtoforge.com/forums/showthread.php?t=30933)

koltz 4th February 2009 22:25

Issues with MyDNS and ISPConfig 3.0.0.8
 
I am having some issues. I followed the Ubnuntu 8.04 instructions on installing, but it shows DNS-Server is Offline in ISPConfig. I believe it is running though can't verify it.

Also, when I setup virtual hosts, they are not directing to the correct virtual host directory, they are just going to the first virtual host on that IP (I have two seperate IP addresses). So the first vhost for example is example.com, second is example2.com, but it is going to example.com's website instead. This is doing the same on both IP addresses. I am not sure if this is a DNS issue or not. I have not setup any DNS entries either as I can't find directions to the proper procedure.

Any help would be great!

Thanks,

Corey

peterspoon 5th February 2009 10:01

Vhosts
 
I have similar problem with virtual hosts. It appears when setting up a site (vhost) I choose IP address (one server with one IP) from drop down menu. Then all domains point to one site (every domain shows the same site content). When I choose a star * instead of IP, everything works fine (sites show normally).
Almost fine, because then I get apache error at the server startup:
Code:

[error] Virtual Host *:80 --mixing * ports and non-* ports with a NameVirtualHost address is not supported...
So when shall we choose an IP and when a star?

the server is Debian Etch

koltz 5th February 2009 17:09

I get the same error for Apache2 also when loading. I haven't tried the *, just assigned it per IP address that I wanted each domain because couple of them will require SSL.

koltz 5th February 2009 17:59

Well tried changing mine to an * and same thing. I get the following for error messages with Apache2:

Code:

[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:21:40 2009] [warn] NameVirtualHost *:80 has no VirtualHosts


falko 5th February 2009 21:10

Quote:

Originally Posted by koltz (Post 167811)
I am having some issues. I followed the Ubnuntu 8.04 instructions on installing, but it shows DNS-Server is Offline in ISPConfig. I believe it is running though can't verify it.

Try
Code:

/etc/init.d/mydns restart
Waht's in /etc/apache2/sites-available/default and in one of the other vhosts?

koltz 6th February 2009 02:04

Code:

NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

I have tried restarting MyDNS before including stop and start and doesn't seem to change the status in the backend. How can I verify it is running from the command line, netstat?

till 6th February 2009 10:53

You have to change the lines:

NameVirtualHost *
<VirtualHost *>


to:

NameVirtualHost *:80
<VirtualHost *:80>

and then restart apache.

koltz 6th February 2009 18:18

Thank you for the post, here is what I get when I restart Apache now, and still not working on the frontend.

Code:

* Restarting web server apache2                                                                                                                                                                              [Tue Feb 03 17:15:02 2009] [error] (EAI 2)Name or service not known: Could not resolve host name *80 -- ignoring!
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:02 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [error] (EAI 2)Name or service not known: Could not resolve host name *80 -- ignoring!
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.32:80 overlaps with VirtualHost 172.21.152.32:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Feb 03 17:15:12 2009] [warn] VirtualHost 172.21.152.31:80 overlaps with VirtualHost 172.21.152.31:80, the first has precedence, perhaps you need a NameVirtualHost directive


falko 6th February 2009 18:36

Can you post one of the vhosts created by ISPConfig (you can find them in the /etc/apache2/sites-available directory as well)?

koltz 6th February 2009 19:25

Code:

<VirtualHost 172.21.152.32:80>
    DocumentRoot /var/www/gamingdealz.com/web

    ServerName gamingdealz.com
    ServerAlias www.gamingdealz.com
    ServerAdmin webmaster@gamingdealz.com

    ErrorLog /var/clients/client1/web3/log/error.log

    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

    <Directory /var/www/gamingdealz.com/web>
        Options FollowSymLinks
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
    </Directory>

    # cgi enabled
    ScriptAlias  /cgi-bin/ /var/clients/client1/web3/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@gamingdealz.com"
    php_admin_value upload_tmp_dir /var/clients/client1/web3/tmp
    php_admin_value session.save_path /var/clients/client1/web3/tmp
    #php_admin_value open_basedir /var/clients/client1/web3:/usr/share/php5


</VirtualHost>



All times are GMT +2. The time now is 11:27.

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