|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello group,
I'm running apache2 under gutsy gibbon (ubuntu 7.10). My question is about setting up a virtual host whose domain is already registered. Say, www.thisdomain.com already exists, and I wish to set up a virtual host of the form dev.thisdomain.com The domain name is registered by a client of mine and I'm developing his site. I can access the local version via localhost but I'd like to use the virtual name. I've already set up other virtual hosts and they are correctly "mapped" to my local server, but in those instances, the domain names don't exist "out there" (ie they're not registered or parked). I thought that even if the domain existed apache would first look in the enabled sites. But no. When I type in dev.thisdomain.com I'm directed to the hosted thisdomain.com Am I being clear enough? Well here's the dev.thisdomain.com file: <VirtualHost *:80> ServerName dev.thisdomain.com DocumentRoot /var/www/htdocs/thisdomain/ <Directory /var/www/htdocs/thisdomain/> Options Indexes ExecCGI AllowOverride All Order allow,deny Allow from All </Directory> </VirtualHost> Thanks for any assistance some of you might be kind enough to offer Henri |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"henribaeyens" <contact@myname.com> wrote in message
news:47a70098$0$885$ba4acef3@news.orange.fr... > Hello group, > > I'm running apache2 under gutsy gibbon (ubuntu 7.10). > My question is about setting up a virtual host whose domain is already > registered. Say, www.thisdomain.com already exists, and I wish to set up > a virtual host of the form dev.thisdomain.com > The domain name is registered by a client of mine and I'm developing his > site. I can access the local version via localhost but I'd like to use > the virtual name. > I've already set up other virtual hosts and they are correctly "mapped" > to my local server, but in those instances, the domain names don't exist > "out there" (ie they're not registered or parked). I thought that even if > the domain existed apache would first look in the enabled sites. But no. > When I type in dev.thisdomain.com I'm directed to the hosted > thisdomain.com > How are you telling your browser to look for dev.thisdomain.com on the local machine? i.e. have you put an entry in /etc/hosts for it? |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Mon, 04 Feb 2008 12:35:42 +0000, phantom wrote:
> "henribaeyens" <contact@myname.com> wrote in message > news:47a70098$0$885$ba4acef3@news.orange.fr... >> Hello group, >> >> I'm running apache2 under gutsy gibbon (ubuntu 7.10). My question is >> about setting up a virtual host whose domain is already registered. >> Say, www.thisdomain.com already exists, and I wish to set up a virtual >> host of the form dev.thisdomain.com The domain name is registered by a >> client of mine and I'm developing his site. I can access the local >> version via localhost but I'd like to use the virtual name. >> I've already set up other virtual hosts and they are correctly "mapped" >> to my local server, but in those instances, the domain names don't >> exist "out there" (ie they're not registered or parked). I thought that >> even if the domain existed apache would first look in the enabled >> sites. But no. When I type in dev.thisdomain.com I'm directed to the >> hosted thisdomain.com >> >> > How are you telling your browser to look for dev.thisdomain.com on the > local machine? > i.e. have you put an entry in /etc/hosts for it? oh my my, of course!! I always seem to forget one detail thanks a bunch |
|
![]() |
| Outils de la discussion | |
|
|