Website Options > Default website for IP address?

Operating System: FreeBSD 9.1-RELEASE

apache22-2.2.24 php5-5.4.12 perl-threaded-5.16.2_1 webmin-1.620 virtualmin-3.98

When setting a website in Virtualmin to be a default website it causes the configuration for that particular virtualserver to be completely deleted/overwritten by a blank 0-domain.tld.conf file in the virutlserver configuration directory for that particular website. A symlink with an empty file remains in place of the old configuration file that was not symlinked prior to setting the virtualserver to be the site default.

For example we set the configuration option to default the site domain.tld to be the default website. When applied/saved, domain.tld.conf is erased and replaced with the following:

lrwxr-xr-x 1 root wheel 52 Mar 12 13:50 0-domain.tld.conf -> /usr/local/etc/apache22/virtualhosts/0-domain.tld.conf

This instance is replicable and as well is effective on sub-servers.

Status: 
Closed (fixed)

Comments

This may be due to mis-configuration of Webmin's Apache module.

What directory is that symlink being created in?

Also, could you post the contents of the file /usr/local/etc/webmin/apache/config on your system?

Am I correct to assume the symlink has to be in its own directory? This option for creating default sites wasn't there before and I always used the workaround methods.

virt_name= defines_mods= link_dir=/usr/local/etc/apache22/virtualhosts test_manual=0 show_list=1 access_conf=/usr/local/etc/apache/access.conf mime_types=/usr/local/etc/apache/mime.types stop_cmd=/usr/local/etc/rc.d/apache22 stop auto_mods=1 virt_file=/usr/local/etc/apache22/virtualhosts pid_file=/var/run/httpd.pid test_apachectl=1 max_servers=100 srm_conf=/usr/local/etc/apache/srm.conf httpd_dir=/usr/local start_cmd=/usr/local/etc/rc.d/apache22 start show_order=2 graceful_cmd= test_always=0 httpd_conf=/usr/local/etc/apache22/httpd.conf defines_file= apachectl_path=/usr/local/sbin/apachectl show_names=0 httpd_version= test_config=1 apply_cmd= httpd_path=/usr/local/sbin/httpd allow_virtualmin=0 apache_docbase= defines_name=

Issue resolved. Not a bug. Symlink required separate directory. Sorry for the inconvenience and thank you for the timely response.