Jump to content

Need help understanding and using vhosts


Risc OS

Recommended Posts

Hello,

 

At work I have a webserver on my machine for testing.

I want to add new subdomains so that I can access different projects.

 

I created one successfully, or so I thought. It seem to work fine, until I tried to view the default site. Than  I noticed that no matter what address I type, I always see the new subdomain page. I only discovered this after trying to create a second subdomain.

 

Can anyone recommend some links for beginners with apache (and linux) and how to setup subdomains.

 

The default address is omething like:

 

subname.name.local

 

I want also two sub-domains:

typotest.name.local and

pres.name.local.

 

After creating the first subdomain I saw the page specified for : typotest.name.local

 

but also when I visit subname.name.local (the default one set up by my network admin) I see the page for typotest.name.local

 

 

Link to comment
Share on other sites

I think your problem may be that if you create a vhost your default host disappears. You will need to redefine the default one as a vhost also. I do something similar but with the Drupal cms so that I can create different sites on the same server through different domains but use the same code base. Don't know what OS you are on but I have Gentoo which sets up a vhost by default otherwise I would have had the same problem as you. Try redefining your default localhost (I assume) as a vhost to see if it comes back.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.