Jump to content

VPS Sub domain creation IIS or Apache

- - - - -

  • Please log in to reply
1 reply to this topic

#1
sura

sura

    Newbie

  • Members
  • Pip
  • 1 posts
We own a vps domain ,which consists of only the basic plans.We dont even have plesk or control panel installed to create or manage sub-domains ,We have developed jruby on rails application which should run on vps under anyone of the subdomain , Now the problem is that we are not able to create sub domain using either IIS or apache server,We also got this domain from our client who currently directs this domain to his website.Can we create sub domain without the plesk panel where domain points to some other domain.We are able to resolve the subdomain in remote host ,we cant access it from outside.What should we do on this.......How to proceed with this........Can anyone help me out on this.....

Thanks in advance.........

#2
Roger

Roger

    If nothing goes right, go left.

  • Administrators
  • 718 posts
  • Programming Language:C, PHP
  • Learning:Python
You need to ask your client to add an additional "A record" for the subdomain to their DNS that points to your VPS. That should bring the traffic to your VPS.

Then, for your Apache, you can setup the conf file to say something like

<VirtualHost *:80>
    DocumentRoot /www/subdomain
    ServerName sub.domain.tld
    ...
</VirtualHost> 

Check out our update Guidelines/FAQ. When posting code, remember to use code tags - Posted Image.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users