|
-
Dec 24th, 2012, 09:07 AM
#1
Thread Starter
Lively Member
Webmin + Apache Virtual Hosts + Subdomains
Ok this is on a VPS CentOS
Im using webmin
BIND DNS is stopped.
my domain A - Record (on domain provider) points to VPS IP
NOw the domain works. www.domain.co.uk also works.
I have set up a apache virtual host to handle domain.co.uk
(ive added a www.domain.co.uk alias)
I now want to add a subdomain: latest.domain.co.uk that redirects to an external URL say www.newsite.com/test
Ive tried adding the folliwing to my etc/httd/conf/httd.conf file and tried it but it doesnt work.
Code:
<VirtualHost *:80>
ServerName latest.domain.co.uk
ServerAlias latest.domain.co.uk *.latest.domain.co.uk
Redirect / "http://www.newsite.com/test"
</VirtualHost>
I restarted the Apache service. I went to latest.domain.co.uk in firefox but it says:
Firefox can't find the server at latest.domain.co.uk.
Is it just a case of waiting or have I missed something...
The thing is on my domain control panel i can create subdomains and create URL forwading there, this is easier and saves time BUT i can only create a maximum of 5 subdomains, i will need more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|