Subdomains with Webmin

Discussion and support for all Linux distributions and Unix flavours (FreeBSD, OpenBSD, etc).
Post Reply
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Subdomains with Webmin

Post by DarkRanger »

Hi,

Can someone please tell me how I will add a subdomain using webmin? I currently have www.example.com, but want to add admin.example.com.

Any ideas?
Image
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Subdomains with Webmin

Post by doo_much »

You do it the same way you do the domain itself.

If you do it in httpd.conf directory:

Code: Select all

<VirtualHost *&#58;80>
 ServerName http://www.mydomain.tld
 ServerAlias mydomain.tld
 ServerAdmin me@mydomain.tld
 DocumentRoot /data/mydomain.tld/www
</VirtualHost>

<VirtualHost *&#58;80>
 ServerName subdomain.mydomain.tld
 ServerAdmin me@mydomain.tld
 DocumentRoot /data/mydomain.tld/subdomain
</VirtualHost>
Or via webmin, just create a new virtual server and for the servername, use the subdomain.domain.tld as the value.
GOOGLE!!!!
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: Subdomains with Webmin

Post by DarkRanger »

doo_much wrote:Or via webmin, just create a new virtual server and for the servername, use the subdomain.domain.tld as the value.
GOOGLE!!!!
I've done that, didn't want to work.

And I've googled countless times. Please note I google always before asking a question.

Maar dankie in elk geval.

Code: Select all

<VirtualHost *:80>
DocumentRoot /var/www/admindeltafacilities
ServerName admin.deltafacilities.com
<Directory /var/www/admindeltafacilities>
allow from all
Options +Indexes
</Directory>
</VirtualHost>
this is what I have. www.deltafacilities.com works fine. Argh, frustration...
Image
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Subdomains with Webmin

Post by doo_much »

:oops:

Ag okay dan - dan moet jy maar wag vir die slim mense! :mrgreen:
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: Subdomains with Webmin

Post by DarkRanger »

doo_much wrote::oops:

Ag okay dan - dan moet jy maar wag vir die slim mense! :mrgreen:
:lol:
Image
Post Reply