Welcome to HostingForumz.com!
FAQFAQ      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.TakeThisOut@tandytransport.com
DocumentRoot /hosts/transport
ServerName www.tandytransport.com
ErrorLog logs/transport-error_log
CustomLog logs/transport-access_log common
</VirtualHost>

<VirtualHost *>
ServerAdmin webmaster.TakeThisOut@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" <tandytransport DeleteThis @tampabay.rr.com> schreef in bericht
news:sonYd.112187$pc5.50040@tornado.tampabay.rr.com...
 > 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
<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 *>
 > ServerAdmin webmaster DeleteThis @tandytranscription.com
 > 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" <hans.RemoveThis@niet.op.het.net> wrote in message
news:42322ef9$1$28976$e4fe514c@news.xs4all.nl...
 > "James Tandy" <tandytransport.RemoveThis@tampabay.rr.com> schreef in bericht
 > news:sonYd.112187$pc5.50040@tornado.tampabay.rr.com...
  >> 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.RemoveThis@tandytransport.com
  >> 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 *>
  >> ServerAdmin webmaster.RemoveThis@tandytranscription.com
  >> 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:   
Related Topics:
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..

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..

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, is this correct? - 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...

virtual hosting and perl - Hi! I am new to Apache and I am not sure this is the correct group to be asking this but, I am trying to run Perl cgi on mp XP system with Apache in virtual host mode. Currently I am trying to run the following from index.htm: ..
   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 ]