Risc OS Posted February 8, 2008 Share Posted February 8, 2008 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 https://forums.phpfreaks.com/topic/90049-need-help-understanding-and-using-vhosts/ Share on other sites More sharing options...
leonglass Posted February 8, 2008 Share Posted February 8, 2008 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 https://forums.phpfreaks.com/topic/90049-need-help-understanding-and-using-vhosts/#findComment-461763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.