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

virtual hosting, is this correct?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  What permissions should my files have?  
Author Message
itsrainin

External


Since: Mar 06, 2004
Posts: 3



(Msg. 1) Posted: Sat Mar 06, 2004 7:14 pm
Post subject: virtual hosting, is this correct?
Archived from groups: alt>apache>configuration (more info?)

I have a server with serveral sites, im trying to get the virtual hosting
setup right, not sure i got it. its quirky, the sites work but i cant a
domain to work as domain.com and www.domain.com, one works while the other
will route to the defualt domain, say default.com here is the config i
used:

NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.default.com
DocumentRoot c:\INETPUB\default
</VirtualHost>

<VirtualHost *:80>
ServerName domain1.com
DocumentRoot c:\INETPUB\site1
</VirtualHost>

<VirtualHost *:80>
ServerName domain2.org
DocumentRoot c:\INETPUB\site2
</VirtualHost>

<VirtualHost *:80>
ServerName www.domain3.com
DocumentRoot c:\INETPUB\site3
</VirtualHost>

 >> Stay informed about: virtual hosting, is this correct? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sun Mar 07, 2004 11:34 am
Post subject: Re: virtual hosting, is this correct? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

itsrainin <itsrainin RemoveThis @freakinspamyahoo.com> wrote:
<font color=purple> > domain to work as domain.com and <a style='text-decoration: underline;' href="http://www.domain.com</font" target="_blank">www.domain.com</font</a>>

<VirtualHost *>
<font color=purple>  ServerName <a style='text-decoration: underline;' href="http://www.domain.com</font" target="_blank">www.domain.com</font</a>>
  ServerAlias domain.com
  ...


</VirtualHost>

Be sure that both <a style='text-decoration: underline;' href="http://www.domain.com" target="_blank">www.domain.com</a> and domain.com get resolved in the
same IP address, add a <Directory "yourdocroothere"> directive in
the <VirtualHost> block to specify the rights on the document root.
If you are using only port 80, do not specify the port number in the
virtual host configuration.

Davide

--
| "Plaese porrf raed." -- Prof. Michael O'Longhlin, S.U.N.Y. Purchase
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: virtual hosting, is this correct? 
Back to top
Login to vote
itsrainin

External


Since: Mar 06, 2004
Posts: 3



(Msg. 3) Posted: Sun Mar 07, 2004 10:10 pm
Post subject: Re: virtual hosting, is this correct? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hmmm, i tried that, now no sites work, on the top in the list


'

"Davide Bianchi" <davideyeahsure DeleteThis @onlyforfun.net> wrote in message
news:c2empu$1ri0uf$5@ID-18487.news.uni-berlin.de...
 > itsrainin <itsrainin DeleteThis @freakinspamyahoo.com> wrote:
<font color=green>  > > domain to work as domain.com and <a style='text-decoration: underline;' href="http://www.domain.com</font" target="_blank">www.domain.com</font</a>>
 >
 > <VirtualHost *>
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.domain.com</font" target="_blank">www.domain.com</font</a>>
 > ServerAlias domain.com
 > ...
 >
 >
 > </VirtualHost>
 >
 > Be sure that both <a style='text-decoration: underline;' href="http://www.domain.com" target="_blank">www.domain.com</a> and domain.com get resolved in the
 > same IP address, add a <Directory "yourdocroothere"> directive in
 > the <VirtualHost> block to specify the rights on the document root.
 > If you are using only port 80, do not specify the port number in the
 > virtual host configuration.
 >
 > Davide
 >
 > --
 > | "Plaese porrf raed." -- Prof. Michael O'Longhlin, S.U.N.Y. Purchase
 > |
 > |
 > |<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual hosting, is this correct? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
virtual hosting - I am trying to host 3 domains, when I browse to each site it is only displaying the first site as detailed in the VirtualHost Help appreciated -- Mcploppy © { Remove both MyShoes to email me} { Homepage: http://tinyurl.com/bbel } { Local Radio:..

SSL and IP based virtual hosting - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi - heres the problem: On a slackware 9.1 system running apache 1.3.x, i have a vhost with ip 192.168.0.3 (eth0:0), which is accessible by https://fred.linuxserver and https://fredsserver on my lan. Is it....

Virtual Hosting and ports - Can anyone tell me if your Apache web server is listening only on port 80, is it possible using Virtual Hosting to pass the request on to both a different URL and Port ? Kind of like port forwarding. Cant get it to work. How do you do it? Thanks in..

struggling with virtual hosting - Hi I have been trying to get virtual hosting working under RH9.0/Apache2.0 I have three virtual hosts localhost dolibarr calendrier corresponding respectively to /var/www/html /var/www/dolibarr /var/www/calendrier localhost redirects to..

Help needed with Name Based Virtual Hosting - Ok folks here's the deal I have a cable modem - firewall - server. I use netsol dnsmanager to handel the fact that i have a dynamic ip. currently www.thedan.org resolves correctly to the isp-given ip address. however even though i have virtual hosts...
   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 ]