Welcome to HostingForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Virtual hosting

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  dumpexam utility  
Author Message
James Tandy

External


Since: Mar 11, 2005
Posts: 2



(Msg. 1) Posted: Fri Mar 11, 2005 4:35 pm
Post subject: Virtual hosting
Archived from groups: alt>apache>configuration (more info?)

I have been reading all the post that have something to do with v-hosting.
I
have two website one is tandytranscription.com the other is
tandytransport.com. I made a folder in my htdocs called hosts. I made two
folders in that called transport and transcription then I put the
index.html
files in that. On my httpd config looks like this:
NameVirtualHost *


<VirtualHost *>
ServerAdmin admin.DeleteThis@tandytransport.com
DocumentRoot /hosts/transport
ServerName www.tandytransport.com
ErrorLog logs/transport-error_log
CustomLog logs/transport-access_log common
</VirtualHost>

<VirtualHost *>
ServerAdmin webmaster.DeleteThis@tandytranscription.com
DocumentRoot /hosts/transcription
ServerName www.tandytranscription.com
ErrorLog logs/transcription-error_log
CustomLog logs/transcription-access_log common
</VirtualHost>

When I try to pull up the different sites all I get is the 404page. What
am
I missing? Does anyone know Thanks James

 >> Stay informed about: Virtual hosting 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Fri Mar 11, 2005 7:35 pm
Post subject: Re: Virtual hosting [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"James Tandy" schreef in bericht

 > I have two website one is tandytranscription.com the other is
 > tandytransport.com. I made a folder in my htdocs called hosts. I
 > made two folders in that called transport and transcription then I
 > put the index.html files in that. On my httpd config looks like this:
 > NameVirtualHost *
 > <VirtualHost *>

 > DocumentRoot /hosts/transport
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.tandytransport.com</font" target="_blank">www.tandytransport.com</font</a>>
 > ErrorLog logs/transport-error_log
 > CustomLog logs/transport-access_log common
 > </VirtualHost>
 > <VirtualHost *>

 > DocumentRoot /hosts/transcription
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.tandytranscription.com</font" target="_blank">www.tandytranscription.com</font</a>>
 > ErrorLog logs/transcription-error_log
 > CustomLog logs/transcription-access_log common
 > </VirtualHost>
 > When I try to pull up the different sites all I get is the 404page.
IIRC DocumentRoot is relative to ServerRoot or the root of your filesystem.
Commonly, htdocs is a folder below ServerRoot,
so try your luck with these directives
DocumentRoot htdocs/hosts/transport
DocumentRoot htdocs/hosts/transcription

HansH<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Virtual hosting 
Back to top
Login to vote
James Tandy

External


Since: Mar 11, 2005
Posts: 2



(Msg. 3) Posted: Sat Mar 12, 2005 5:35 am
Post subject: Re: Virtual hosting [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"HansH" wrote in message



  >> I have two website one is tandytranscription.com the other is
  >> tandytransport.com. I made a folder in my htdocs called hosts. I
  >> made two folders in that called transport and transcription then I
  >> put the index.html files in that. On my httpd config looks like this:
  >> NameVirtualHost *
  >> <VirtualHost *>

  >> DocumentRoot /hosts/transport
<font color=green>  >> ServerName <a style='text-decoration: underline;' href="http://www.tandytransport.com</font" target="_blank">www.tandytransport.com</font</a>>
  >> ErrorLog logs/transport-error_log
  >> CustomLog logs/transport-access_log common
  >> </VirtualHost>
  >> <VirtualHost *>

  >> DocumentRoot /hosts/transcription
<font color=green>  >> ServerName <a style='text-decoration: underline;' href="http://www.tandytranscription.com</font" target="_blank">www.tandytranscription.com</font</a>>
  >> ErrorLog logs/transcription-error_log
  >> CustomLog logs/transcription-access_log common
  >> </VirtualHost>
  >> When I try to pull up the different sites all I get is the 404page.
 > IIRC DocumentRoot is relative to ServerRoot or the root of your
 > filesystem.
 > Commonly, htdocs is a folder below ServerRoot,
 > so try your luck with these directives
 > DocumentRoot htdocs/hosts/transport
 > DocumentRoot htdocs/hosts/transcription
 >
 > HansH
 >
 >Thanks a lot it works now.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Virtual hosting 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (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 ]