PDA

View Full Version : Issues with MyDNS and ISPConfig 3.0.0.8


koltz
4th February 2009, 22:25
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
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:
[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:


[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
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
/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
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.

* 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
<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>

falko
7th February 2009, 16:12
Add
NameVirtualHost *:80 to /etc/apache2/sites-available/default...
NameVirtualHost *
NameVirtualHost *:80
<VirtualHost *>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
[...]... and restart Apache.

koltz
9th February 2009, 16:50
* Restarting web server apache2 [Tue Feb 03 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 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 16:59:42 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Feb 03 16:59:42 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Feb 03 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 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 16:59:52 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Feb 03 16:59:52 2009] [warn] NameVirtualHost *:80 has no VirtualHosts

falko
10th February 2009, 17:48
Can you post all your vhosts here?

koltz
12th February 2009, 15:46
I will post three from each as I have many.

8bitclassics.com


<VirtualHost 172.21.152.31:80>
DocumentRoot /var/www/8bitclassics.com/web

ServerName 8bitclassics.com
ServerAlias www.8bitclassics.com
ServerAdmin webmaster@8bitclassics.com

ErrorLog /var/clients/client1/web2/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/8bitclassics.com/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web2/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@8bitclassics.com"
php_admin_value upload_tmp_dir /var/clients/client1/web2/tmp
php_admin_value session.save_path /var/clients/client1/web2/tmp
#php_admin_value open_basedir /var/clients/client1/web2:/usr/share/php5


</VirtualHost>



koltz.com


<VirtualHost 172.21.152.31:80>
DocumentRoot /var/www/koltz.com/web

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

ErrorLog /var/clients/client1/web1/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/koltz.com/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web1/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@koltz.com"
php_admin_value upload_tmp_dir /var/clients/client1/web1/tmp
php_admin_value session.save_path /var/clients/client1/web1/tmp
#php_admin_value open_basedir /var/clients/client1/web1:/usr/share/php5


</VirtualHost>



hullprodj.com


<VirtualHost 172.21.152.31:80>
DocumentRoot /var/www/hullprodj.com/web

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

ErrorLog /var/clients/client2/web12/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/hullprodj.com/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client2/web12/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@hullprodj.com"
php_admin_value upload_tmp_dir /var/clients/client2/web12/tmp
php_admin_value session.save_path /var/clients/client2/web12/tmp
#php_admin_value open_basedir /var/clients/client2/web12:/usr/share/php5


</VirtualHost>



gamingdealz.com


<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>



thegamestore.us


<VirtualHost 172.21.152.32:80>
DocumentRoot /var/www/thegamestore.us/web

ServerName thegamestore.us
ServerAlias www.thegamestore.us
ServerAdmin webmaster@thegamestore.us

ErrorLog /var/clients/client1/web13/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/thegamestore.us/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web13/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@thegamestore.us"
php_admin_value upload_tmp_dir /var/clients/client1/web13/tmp
php_admin_value session.save_path /var/clients/client1/web13/tmp
#php_admin_value open_basedir /var/clients/client1/web13:/usr/share/php5


</VirtualHost>



geekdealz.com


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

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

ErrorLog /var/clients/client1/web11/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/geekdealz.com/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web11/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@geekdealz.com"
php_admin_value upload_tmp_dir /var/clients/client1/web11/tmp
php_admin_value session.save_path /var/clients/client1/web11/tmp
#php_admin_value open_basedir /var/clients/client1/web11:/usr/share/php5


</VirtualHost>

falko
13th February 2009, 13:53
Can you add a
NameVirtualHost 172.21.152.31:80
directive to /etc/apache2/sites-available/default?

koltz
13th February 2009, 15:11
That worked, I added the same for the .32 address.

falko
14th February 2009, 13:49
I've added this to the bugtracker for further investigation.

koltz
18th February 2009, 22:36
I have upgraded to the RC2 version, and now receive the following error when restarting Apache2.

[Wed Feb 18 15:34:46 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefine d results
[Wed Feb 18 15:34:46 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Feb 18 15:34:56 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefine d results
[Wed Feb 18 15:34:56 2009] [warn] NameVirtualHost *:80 has no VirtualHosts


I saw they showed a fix in there for my issue, do I need to change something back now?

falko
19th February 2009, 20:30
Can you post /etc/apache2/sites-available/default and one of your vhosts again?

koltz
22nd February 2009, 01:39
Having issues with SSL still

Here is the what I have for defaults


NameVirtualHost *
NameVirtualHost *:80
<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>




error when restarting apache2


[Sat Feb 21 18:38:11 2009] [warn] NameVirtualHost 172.21.152.32:443 has no VirtualHosts
[Sat Feb 21 18:38:11 2009] [warn] NameVirtualHost 172.21.152.31:443 has no VirtualHosts
[Sat Feb 21 18:38:11 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Feb 21 18:38:11 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Feb 21 18:38:21 2009] [warn] NameVirtualHost 172.21.152.32:443 has no VirtualHosts
[Sat Feb 21 18:38:21 2009] [warn] NameVirtualHost 172.21.152.31:443 has no VirtualHosts
[Sat Feb 21 18:38:21 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Feb 21 18:38:21 2009] [warn] NameVirtualHost *:80 has no VirtualHosts


Error I am receiving in Firefox


Secure Connection Failed













An error occurred during a connection to www.8bitclassics.com.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)







The page you are trying to view can not be shown because the authenticity of the received data could not be verified.

* Please contact the web site owners to inform them of this problem.


What code goes were in the ISPConfig SSL area (.crt, .csr, .key) and I use GoDaddy which also has a Intermediary SSL cert so an additional file.

till
22nd February 2009, 11:58
Change the lines:

NameVirtualHost *
NameVirtualHost *:80
<VirtualHost *>


to:

NameVirtualHost *:80
<VirtualHost *:80>

koltz
22nd February 2009, 20:23
Doesn't do anything for helping the SSL to work (port 443).

koltz
23rd February 2009, 21:45
Anyone? See a couple messages above for the actual SSL/443 issues. I am looking at all of the site configs for ISPConfig3 and do not see any thing setup for SSL. I do have it enabled it under the site that needs it, but no reference under default or the specific Vhost file for the NameVirtualHost.

till
23rd February 2009, 22:00
You have to create a ssl certificate on the ssl tab.

koltz
23rd February 2009, 22:24
It had one created originally, didn't start. I tried copying the GoDaddy cert as also mentioned. I then clicked the thing to Create Certificate, created it's own and I tried to restart apache but wouldn't. Here is my Vhost files:

8bitclassics.com.vhost


<VirtualHost 172.21.152.31:80>
DocumentRoot /var/www/8bitclassics.com/web

ServerName 8bitclassics.com
ServerAlias www.8bitclassics.com
ServerAdmin webmaster@8bitclassics.com

ErrorLog /var/log/ispconfig/httpd/8bitclassics.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/8bitclassics.com/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web2/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@8bitclassics.com"
php_admin_value upload_tmp_dir /var/clients/client1/web2/tmp
php_admin_value session.save_path /var/clients/client1/web2/tmp
#php_admin_value open_basedir /var/clients/client1/web2:/usr/share/php5

php_admin_value memory_limit 64M
</VirtualHost>


<IfModule mod_ssl.c>
################################################## #########
# SSL Vhost
################################################## #########

<VirtualHost 172.21.152.31:443>
DocumentRoot /var/www/8bitclassics.com/web

ServerName 8bitclassics.com
ServerAlias www.8bitclassics.com
ServerAdmin webmaster@8bitclassics.com

ErrorLog /var/log/ispconfig/httpd/8bitclassics.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

SSLEngine on
SSLCertificateFile /var/clients/client1/web2/ssl/8bitclassics.com.crt
SSLCertificateKeyFile /var/clients/client1/web2/ssl/8bitclassics.com.key
SSLCACertificateFile /var/clients/client1/web2/ssl/8bitclassics.com.bundle

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web2/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@8bitclassics.com"
php_admin_value upload_tmp_dir /var/clients/client1/web2/tmp
php_admin_value session.save_path /var/clients/client1/web2/tmp
#php_admin_value open_basedir /var/clients/client1/web2:/usr/share/php5

php_admin_value memory_limit 64M
</VirtualHost>
</IfModule>



default

NameVirtualHost *
NameVirtualHost *:80
<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>

koltz
26th February 2009, 00:10
Bump, see above message.

till
26th February 2009, 09:12
You still have not done what I told you in post #21 of this thread! If you dont do what we tell you, your setup will never get working.

koltz
26th February 2009, 13:43
Umm, I did. Now if you wanted me to do 21 with the other last post you didn't specify. 21 by itself doesn't do anything different as mentioned in my post underneath it. I will try 21 with recreating the SSL.

koltz
26th February 2009, 20:07
After I make the changes from post 21, it adds this to my site:


<IfModule mod_ssl.c>
################################################## #########
# SSL Vhost
################################################## #########

<VirtualHost 172.21.152.31:443>
DocumentRoot /var/www/8bitclassics.com/web

ServerName 8bitclassics.com
ServerAlias www.8bitclassics.com
ServerAdmin webmaster@8bitclassics.com

ErrorLog /var/log/ispconfig/httpd/8bitclassics.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

SSLEngine on
SSLCertificateFile /var/clients/client1/web2/ssl/8bitclassics.com.crt
SSLCertificateKeyFile /var/clients/client1/web2/ssl/8bitclassics.com.key
SSLCACertificateFile /var/clients/client1/web2/ssl/8bitclassics.com.bundle

# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web2/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@8bitclassics.com"
php_admin_value upload_tmp_dir /var/clients/client1/web2/tmp
php_admin_value session.save_path /var/clients/client1/web2/tmp
#php_admin_value open_basedir /var/clients/client1/web2:/usr/share/php5

php_admin_value memory_limit 64M
</VirtualHost>
</IfModule>



Apache2 fails to restart once the SSL cert is created, here is what Apache2 says when loading


* Restarting web server apache2 [Thu Feb 26 13:05:01 2009] [warn] NameVirtualHost 172.21.152.32:443 has no VirtualHosts
[Thu Feb 26 13:05:01 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
httpd (pid 26994?) not running
[Thu Feb 26 13:05:11 2009] [warn] NameVirtualHost 172.21.152.32:443 has no VirtualHosts
[Thu Feb 26 13:05:11 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[fail]


When I delete the SSL Vhost stuff added, the site starts running again.

falko
27th February 2009, 14:14
Can you post all the NameVirtualHost lines from your Apache configuration?

koltz
1st March 2009, 00:19
In the httpd.conf file, i just have one line in the whole file:


NameVirtualHost *:80


Nothing in the apache2.conf file.

koltz
1st March 2009, 01:43
I just tried it again and this time looked at apache2 error.log after it wouldn't restart. Here is the error:


PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/htscanner.so' - /usr/lib/php5/20060613+lfs/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0

koltz
1st March 2009, 03:17
Maybe it would be beneficial for me to see what a known working default and vhost file with SSL enabled looks like? Are you able to post yours with SSL enabled for me to look at and see what differences there are?

till
1st March 2009, 11:39
I just tried it again and this time looked at apache2 error.log after it wouldn't restart. Here is the error:


PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/htscanner.so' - /usr/lib/php5/20060613+lfs/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0


This is a php module which you installed and were a file is missing, this is nothing ispconfig related. Either you reinstall this php module so that the .so file is there or you remove it from the php configuration.

koltz
1st March 2009, 21:22
Can you post actual default and vhost files that have SSL enabled?

till
2nd March 2009, 12:16
You can find the templates for the vhost file here:

/usr/local/ispconfig/server/conf/vhost.conf.master

It contains also the ssl part.

koltz
3rd March 2009, 15:40
Well got it working. Looking at the instructions (for Ubuntu), it doesn't look like there is anything in it for adding SSL besides the module and enabling it. I had to create the local certs using openssl, copied /etc/apache2/sites-available/default to /etc/apache2/sites-available/ssl, making a link to /sites-enabled. I then changed in the ssl file

from:

NameVirtualHost *:80
<VirtualHost *:80>


to:

NameVirtualHost *:443
<VirtualHost *:443>


and added to following underneath the DocumentRoot line:


SSLEngine on
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key


I created the CRT and KEY files with openssl and installed them in the above paths. I restarted apache and got my SSL working for my site. Getting the local cert created then I had to figure out getting the GoDaddy cert in there, but finally did that last night.