Welcome, Guest
Please Login or Register.
Lost Password?
Re: subdomain errors. (1 viewing)
Post Reply

TOPIC: Re: subdomain errors.

#1796
GeorgeVieira (User)
Posts: 7
graphgraph
subdomain errors. 2006/04/19 06:40  
I got creating domains working and trying to now create a subdomain but all i get is :

Failed to create virtual server : Missing or invalid IP address

This error is actually quite cryptic. In creating subdomains there is no IP address entered there at all so which IP address is this and where is it coming from?

The line 147 below from "domain_setup.cgi" is where it's coming from.

if ($config{'all_namevirtual'}) {

# Make sure the IP *is* assigned
&check_ipaddress($in{'ip'}) || &error($text{'setup_eip'});
  The administrator has disabled public write access.
#1804
Joe (Admin)
Posts: 4213
graph
Re: subdomain errors. 2006/04/19 21:38  
Hey George,

Yep, that error message is a bit iffy. We'll see if we can't get something a little less cryptic. It could very well be a bug, so I've filed a new bug in the bug-tracker here:

http://www.virtualmin.com/bug-tracker/bug?bug%5fnumber=367
  The administrator has disabled public write access.
#1807
JamieCameron (Admin)
Posts: 374
graphgraph
Re: subdomain errors. 2006/04/20 00:19  
It looks like you have the 'All Apache virtual servers are name-based?' option enabled on the Module Config page. Very few sites really need this, so you should turn it off ..
  The administrator has disabled public write access.
#1809
GeorgeVieira (User)
Posts: 7
graphgraph
Re: subdomain errors. 2006/04/20 05:48  
I have reasons for it to be turned on. Firstly this server will have it's IP changed eventually and in doing so it wouldn't cause all my virtualhosts to stop working only because the IP address isn't IP assigned. Make sense...

< VirtualHost *:80>
ServerName www.blah.com

will work on any address it receives a connection from. Virtualmin doesn't give the option to do this afaik as it always tries puts the IP address. confuses me when I turned on "All Apache virtual servers are name-based"...

So turning off, is not a solution to the problem.
  The administrator has disabled public write access.
#1835
GeorgeVieira (User)
Posts: 7
graphgraph
Re: subdomain errors. (Solution: Virtualmin is a joke). 2006/04/23 18:29  
LOL... Virtualmin is a joke.

http://www.virtualmin.com/bug-tracker/bug?bug%5fnumber=367

You're solution is to turn NameVirtualHost off when it's a standard feature of Apache and your main configuration for Virtualmin has it as an option yet within a single day you guys close off the bug by using a work around which is not suitable for me and god knows who else who needs it.

If this is how you handle the free version i hate to think how you treat your paying customers.

Looks like I have to patch your software for you.
  The administrator has disabled public write access.
#1836
GeorgeVieira (User)
Posts: 7
graphgraph
Re: subdomain errors. 2006/04/23 20:03  
Problem fixed. I have patched Virtualmin to ignore the IP when namebased is used and inserted in all effected areas $in{'ip'} = "*";

Now namebased works for me for domains and subdomain.. eg below. (note: a space is added to the front of each tag due to this forums html restrictions..)

< VirtualHost *:80>
SuexecUserGroup "#503" "#502"
ServerName blah.com
ServerAlias www.blah.com
DocumentRoot /var/www/vhosts/blah.com/httpdocs
ErrorLog /var/www/vhosts/blah.com/logs/error_log
CustomLog /var/www/vhosts/blah.com/logs/access_log common
ScriptAlias /cgi-bin/ /var/www/vhosts/blah.com/cgi-bin/

[ Directory /var/www/vhosts/blah.com/httpdocs>
Options Indexes IncludesNOEXEC ExecCGI FollowSymLinks
allow from all
[ IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/home/webmail:/tmp:/usr/share/pear:/usr/sbin"
php_admin_value include_path "/usr/share/pear:."
[ /IfModule>
[ /Directory>
< /VirtualHost>
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.