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?
Subdomains with Webmin
-
- 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:
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Subdomains with Webmin
You do it the same way you do the domain itself.
If you do it in httpd.conf directory:
Or via webmin, just create a new virtual server and for the servername, use the subdomain.domain.tld as the value.
GOOGLE!!!!
If you do it in httpd.conf directory:
Code: Select all
<VirtualHost *:80>
ServerName http://www.mydomain.tld
ServerAlias mydomain.tld
ServerAdmin me@mydomain.tld
DocumentRoot /data/mydomain.tld/www
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain.mydomain.tld
ServerAdmin me@mydomain.tld
DocumentRoot /data/mydomain.tld/subdomain
</VirtualHost>
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
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
-
- 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
I've done that, didn't want to work.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!!!!
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>
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Subdomains with Webmin
Ag okay dan - dan moet jy maar wag vir die slim mense!
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
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
-
- 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
doo_much wrote:
Ag okay dan - dan moet jy maar wag vir die slim mense!