Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

problem with setting up named virtual domains

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  New Apache/PHP installation, bizarre behavior  
Author Message
stan2

External


Since: Jul 23, 2003
Posts: 1



(Msg. 1) Posted: Wed Jul 23, 2003 7:11 am
Post subject: problem with setting up named virtual domains
Archived from groups: alt>apache>configuration (more info?)

I'm having a problem with setting up named virtual domains. The virtual
domains default to the global doc path, not the doc path in the VirtualHost
directive. The steps I took:

1. I commented out the global ServerName directive, leaving the global
document root intact.

[code]
#ServerName xxx.xxx.xxx.xxx:80
[/code]

2. I added the VirtualHost directives:

[code]
NameVirtualHost xxx.xxx.xxx.xxx:80

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin [email]jjb@botteronet.com[/email]
DocumentRoot /var/www/html/primary.domain
ServerName my.domain.tld
ErrorLog logs/error_log
CustomLog logs/primary.domain_cust common
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin [email]jjb@botteronet.com[/email]
DocumentRoot /var/www/html/virtual.domain
ServerName virtual.domain.tld
ErrorLog logs/virtual.domain_error
CustomLog logs/virtual.domain_cust common
</VirtualHost>
[/code]

At first, I thought maybe I neede to comment out the global document root
also, but that just resulted in object not found, so I put it back.

Any Ideas?

 >> Stay informed about: problem with setting up named virtual domains 
Back to top
Login to vote
mcp

External


Since: Jul 14, 2003
Posts: 14



(Msg. 2) Posted: Wed Jul 23, 2003 7:28 pm
Post subject: Re: problem with setting up named virtual domains [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I'm having a problem with setting up named virtual domains. The virtual
 > domains default to the global doc path, not the doc path in the
VirtualHost
 > directive. The steps I took:
[cut]
 > Any Ideas?
Are you using the address excactely as defined in the virtualhosts? (not an
extra www or something)


Martin<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: problem with setting up named virtual domains 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Any one know the maximum number of Named Virtual Hosts? - Hi all I'm just wondering if anyone here knows or knows where to find out what the max number of named virtual hosts is for both Apache 1.3 and Apache 2? Thanks in advance. -- Wayne de Villiers

Virtual domains -- Help! - Hello, For some reason, Apache isn't pointing each domain to a seperate folder, this the last part of my httpd.conf: NameVirtualHost serversip <VirtualHost serversip> DocumentRoot /home/mydomain1 ServerName mydomain.org </VirtualHost> &...

local virtual host config for testing setup problem - Ive got a dynddns address which works fine frmo the outside world. I want to set up another virtual host for testing purposes accessible only from my machine. from vhosts.conf ################# Named VirtualHosts NameVirtualHost * <VirtualHost *>....

Need help setting up mod_ssl for apache 2.0.46 on rh9 - How do you build apache 2.0.46 with SSL support? Got the apache 2.0.46 tarball, extracted it, and grabbed latest mod_ssl tarball from www.modssl.org. However, it appears to only be for apached 1.3.27. When trying to run ./configure..

Setting up apache and apppserver one one machine - Hi i had the following questions regarding setting up apache in the following config Config should be something like this Linux box with two network cards one network card for serving web traffic other one for internal network both connected to a..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]