/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Subdomain

I could swear I did this before and it worked fine but for the love of god I can’t get it to work again. I am trying to create subdomain. I’ve edited zone file for the domain and added A record, test.domain.com and pointed it to the server IP. On the server (IIS) I’ve created a site and added test.domain.com as hostheader for that site. This should do it but it’s not working, what did I do wrong???????

to post a comment
Web Hosting

7 Comments(s)

Copy linkTweet thisAlerts:
@MyWebsiteAdviseDec 03.2007 — Hi,

With nslookup you get the right ip ?

Did you change the hosts file ?

Do you add default document on new website ?

Ensure that you work without www prefix.
Copy linkTweet thisAlerts:
@TiGGiauthorDec 08.2007 — I guess nslookup isn't finding it. I don't see why since the zone file has the subdomain!!!????
Copy linkTweet thisAlerts:
@MyWebsiteAdviseDec 09.2007 — Hi,

You can get the ip with nslookup or ping the sub domain.

What is your sub domain ?
Copy linkTweet thisAlerts:
@TiGGiauthorDec 10.2007 — it's nationjob.webcodex.net. I've tried everything but I am not getting response from the subdomain!
Copy linkTweet thisAlerts:
@TJ111Dec 10.2007 — If you are using an Apache server, you don't need to change the zone files to create a subdomain (in fact, on most web servers, but I only know Apache). Just add this to the httpd.conf or to a .htaccess in the site root:
<i>
</i>&lt;VirtualHost [ip address here]&gt;
ServerName nationjob.webcodex.net
ServerAlias www.nationjob.webcodex.net
DocumentRoot /path/to/webcodex/httpdocs/nationjob
Script Alias '/cgi-bin/' /path/to/cgi-bin/
&lt;/VirtualHost&gt;


Note that ServerAlias and ScriptAlias are both optional, all you need is a ServerName and DocumentRoot declaration.
Copy linkTweet thisAlerts:
@TiGGiauthorDec 10.2007 — Thank for your help, i figured it out. Didn't notice before but the domain was pointing to my old name servers which are not connected to the zone files. As soon as I changed it to new NS it started working. Thanks anyway!
Copy linkTweet thisAlerts:
@MyWebsiteAdviseDec 11.2007 — I am glad to hear that all is well.
×

Success!

Help @TiGGi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...