Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    sebas9673 is offline Junior Member
    Join Date
    Apr 2012
    Posts
    2

    Default New to VPS trying to setup subdomaing for developing

    Hi i have a VPS with myhosting and no panels, i configure the vps by ssh. However i have never setup a subdomain and im failing at it. My host is expo-eventos.com, i already added the subdomain dev.expo-eventos.com and created the virtual servers in httpd.conf and also i got another ip to asign to the subdomain. At least this is what i thought i needed but its not working. Here is the virtual servers config:

    <VirtualHost 168.144.28.57:80>
    ServerAdmin sebastianviteri@gmail.com
    DocumentRoot /var/www/html
    ServerName http://www.expo-eventos.com
    ServerAlias expo-eventos.com
    ErrorLog logs/expo-error-log
    CustomLog logs/expo-eventos.com-access_log common
    </VirtualHost>
    <VirtualHost 168.144.28.189:80>
    ServerAdmin sebastianviteri@gmail.com
    DocumentRoot /var/www/dev
    ServerName http://www.dev.expo-eventos.com
    ServerAlias dev.expo-eventos.com
    ErrorLog logs/dev.expo-error-log
    CustomLog logs/dev.expo-eventos.com-acces_log common
    </VirtualHost>

    So i can enter the dev directory with the IP address but if i use http://www.dev.expo-eventos.com it takes me to the html directory.
    Please help i have no idea how to setup this correctly.
    Last edited by suwunk; 2012-04-27 at 07:01 AM.

  2. #2
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,082

    Default

    Hi There,

    Have you tried to follow this following Knowledge Base article
    http://myhosting.com/kb/Creating_and...ing_Subdomains

    Cheers

  3. #3
    jeremya is offline Administrator
    Join Date
    Jun 2008
    Posts
    270

    Default

    Quote Originally Posted by sebas9673 View Post
    Hi i have a VPS with myhosting and no panels, i configure the vps by ssh. However i have never setup a subdomain and im failing at it. My host is expo-eventos.com, i already added the subdomain dev.expo-eventos.com and created the virtual servers in httpd.conf and also i got another ip to asign to the subdomain. At least this is what i thought i needed but its not working. Here is the virtual servers config:

    <VirtualHost 168.144.28.57:80>
    ServerAdmin sebastianviteri@gmail.com
    DocumentRoot /var/www/html
    ServerName .: Expoeventos
    ServerAlias expo-eventos.com
    ErrorLog logs/expo-error-log
    CustomLog logs/expo-eventos.com-access_log common
    </VirtualHost>
    <VirtualHost 168.144.28.189:80>
    ServerAdmin sebastianviteri@gmail.com
    DocumentRoot /var/www/dev
    ServerName .: Expoeventos
    ServerAlias dev.expo-eventos.com
    ErrorLog logs/dev.expo-error-log
    CustomLog logs/dev.expo-eventos.com-acces_log common
    </VirtualHost>

    So i can enter the dev directory with the IP address but if i use .: Expoeventos it takes me to the html directory.
    Please help i have no idea how to setup this correctly.
    Hi there!

    Server-wise, you're setup A-OK! The only problem you're currently having is that your subdomain .: Expoeventos is pointing to the first IP not the second one.

    All you need to do now is add the A record to your dev.expo-events.com subdomain.

    To do this,

    1) Log into your control panel with us (http://manage.myhosting.com)
    2) Navigate to your subdomain under Sites & Domains.
    3) Click on your dev.expo-events.com subdomain
    4) Click the DNS tab, then click DNS Records just below the tabs and lastly, click Add New DNS Record
    5) Choose A record from the list, add www into the first field, and your second IP into the next field. Finish, give it time to propagate over the internet (can take an hour but usually less) and you should be up and running!
    -Jeremya

  4. #4
    greenmatter is offline Master Member
    Join Date
    Jan 2010
    Posts
    307

    Default

    Thanks!




    I provide SEO Services…pm me

  5. #5
    sebas9673 is offline Junior Member
    Join Date
    Apr 2012
    Posts
    2

    Default

    Thanks jeremya yes that was it, i was actually thinking that it had something to do with registering that ip with the subdomain in a dns server but i had no idea where or how to do it. Thank you!


 

Similar Threads

  1. VPS ASP.Net Email Code-behind Setup
    By suwunk in forum Programming
    Replies: 1
    Last Post: 2011-07-21, 11:09 AM
  2. setup fees
    By WrigleyF in forum Virtual Server
    Replies: 2
    Last Post: 2011-02-24, 11:13 AM
  3. Can't Setup Alias
    By sgoodman in forum Troubleshooting
    Replies: 3
    Last Post: 2011-01-03, 08:40 AM
  4. camera setup
    By Randy5 in forum Beginners
    Replies: 1
    Last Post: 2010-09-13, 09:07 PM
  5. aspnetdb setup.
    By peteythegeek in forum How-To
    Replies: 2
    Last Post: 2008-09-17, 01:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts