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

Access apache virtual hosts

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  annoying popups  
Author Message
bali1a

External


Since: Nov 09, 2003
Posts: 1



(Msg. 1) Posted: Mon Nov 10, 2003 12:42 am
Post subject: Access apache virtual hosts
Archived from groups: alt>apache>configuration (more info?)

Hello,

I have a network at home with 2 PCs with WinXp. On PC1 run's apache with
some virtual hosts. (see config below)
If I write demo or demo1 or demo2 into the browser on PC1 it works fine.
But how can I access them from the other computer?

Thanks!

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
DocumentRoot "h:\web\demo"
ServerName demo
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot "h:\web\demo1"
ServerName demo1
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot "h:\web\demo2"
ServerName demo2
</VirtualHost>

 >> Stay informed about: Access apache virtual hosts 
Back to top
Login to vote
dvdmandt

External


Since: Jul 13, 2003
Posts: 31



(Msg. 2) Posted: Mon Nov 10, 2003 3:09 am
Post subject: Re: Access apache virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You modify
C:\Windows\System32\drivers\etc\HOSTS and add an entry starting with the ip
of the Apache server, then a tab, then demo1.. .Repeat but with demo2 in the
last step.. Smile

--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
<a style='text-decoration: underline;' href="http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen" target="_blank">http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen</a>
<a style='text-decoration: underline;' href="http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html" target="_blank">http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html</a>
##########################
"John M" <bali1a.RemoveThis@freemail.hu> skrev i meddelandet
news:Wwyrb.1049$ky5.42154@news.chello.at...
 > Hello,
 >
 > I have a network at home with 2 PCs with WinXp. On PC1 run's apache with
 > some virtual hosts. (see config below)
 > If I write demo or demo1 or demo2 into the browser on PC1 it works fine.
 > But how can I access them from the other computer?
 >
 > Thanks!
 >
 > NameVirtualHost 127.0.0.1
 >
 > <VirtualHost 127.0.0.1>
 > DocumentRoot "h:\web\demo"
 > ServerName demo
 > </VirtualHost>
 >
 > <VirtualHost 127.0.0.1>
 > DocumentRoot "h:\web\demo1"
 > ServerName demo1
 > </VirtualHost>
 >
 > <VirtualHost 127.0.0.1>
 > DocumentRoot "h:\web\demo2"
 > ServerName demo2
 > </VirtualHost>
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Access apache virtual hosts 
Back to top
Login to vote
cdepetro

External


Since: Nov 11, 2003
Posts: 1



(Msg. 3) Posted: Tue Nov 11, 2003 3:39 am
Post subject: Re: Access apache virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Change the IP address in you VirtualHost section to your LAN address.
127.0.0.1 is localhost. That is why the PC running Apache can see the pages
and the other cannot. Give the PC running Apache a static IP address if
possible.

Chris DePetro
RHCT


"John M" <bali1a.DeleteThis@freemail.hu> wrote in message
news:Wwyrb.1049$ky5.42154@news.chello.at...
 > Hello,
 >
 > I have a network at home with 2 PCs with WinXp. On PC1 run's apache with
 > some virtual hosts. (see config below)
 > If I write demo or demo1 or demo2 into the browser on PC1 it works fine.
 > But how can I access them from the other computer?
 >
 > Thanks!
 >
 > NameVirtualHost 127.0.0.1
 >
 > <VirtualHost 127.0.0.1>
 > DocumentRoot "h:\web\demo"
 > ServerName demo
 > </VirtualHost>
 >
 > <VirtualHost 127.0.0.1>
 > DocumentRoot "h:\web\demo1"
 > ServerName demo1
 > </VirtualHost>
 >
 > <VirtualHost 127.0.0.1>
 > DocumentRoot "h:\web\demo2"
 > ServerName demo2
 > </VirtualHost>
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Access apache virtual hosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
NAT and Apache cofiguration (without virtual hosts !) - Hi All, I have DSL with static IP and NAT. (apache + linux) for example: external IP of router- 69.1.1.1 internal IP of my web server - 192.168.1.5 httpd.conf Listen 192.168.1.5:80 ServerName 69.1.1.1:80 If I open port in my router and ask to redirect...

Apache 2.0.40 (RH9) virtual hosts vs. mod_proxy vs ssl - Hi all, i´m using the standard rh9 apache config with ssl enabled, which works fine. now i want to redirect an other domain via mod_proxy to an other apache server without using ssl. i´ve tried to setup a virtual host with this config: ......

apache/tomcat virtual hosts - I have set up tomcat and apache... bind them with a JK2 connector both on port 80. I have 2 domains running on the machine. the apache docs are located on the following location: /export/home/webroot/site1 (www.site1.com) /export/home/webroot/site...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...
   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 ]