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

ip vhosts and localhosts

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  C-CGI  
Author Message
barton_finkle

External


Since: Dec 19, 2003
Posts: 1



(Msg. 1) Posted: Fri Dec 19, 2003 10:16 pm
Post subject: ip vhosts and localhosts
Archived from groups: alt>apache>configuration (more info?)

ok heres the deal
at work i have a windows box running apache 1.3.28 with local ip
192.168.100.1 which will herein be referred to as "Steve".
i use apache on that box for development purposes
i have an adsl connection with static ip 1.2.3.4 and a dlink dsl-504
modem/router which i use for NAT and which has a redirect for port 80 to
192.168.100.1
at home i have a pc that has internet access which will herein be referred
to as "Reginald".

i want to be able to type in 'localhost' into my browser on "Steve" and have
apache take me to my development folder. it already does this.
i want to be able to type in 1.2.3.4 into my browser on "Reginald" and have
the apache server on "Steve" take me to the folder /shared which is in the
development folder. it does not do this.

i am assuming that an ip based virtualhost is the way to go, but at the
moment it serves the same page to "Reginald" as it does to "Steve".
can anyone suggest a virtualhost config i could use or is there another
apache directive i have not set properly?

thanks in advance.
sticks

 >> Stay informed about: ip vhosts and localhosts 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Fri Dec 19, 2003 10:16 pm
Post subject: Re: ip vhosts and localhosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sticks Random <barton_finkle DeleteThis @hotmail.com> wrote:
 > can anyone suggest a virtualhost config i could use or is there another
 > apache directive i have not set properly?

Not knowing what you already did is quite difficult to say what you
did wrong. If you want to use IPs instead of domain names (why?),
then IP-based v-host is the way to go. Read the documentation on
<a style='text-decoration: underline;' href="http://www.apache.org" target="_blank">www.apache.org</a> and check your configuration.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ip vhosts and localhosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Upgrading 1.3 -> 2.0 vhosts? - Hi! Does the httpd config differ much between 1.3 and 2.0? The reason I wonder is becouse I just reinstalled my system and in the new system I went with 2.0 and copied most entries from the 1.3 config, but now my virtual hosts doesn't work anymore....

Apache/mod_ssl and Name Based VHosts - I'm curious, is this something that is not recommended? or something that isn't supposed to be possible? (As far as I now, through logs and such, my name based vhosts are working fine.)

Logging large scale apache 2.0 server with MANY vhosts - Hi All, I'm currently setting up a new server to handle a large number of VHOSTs. We are trying to use dynamically assigned section for vhosts. The dynamic section is working fine, all nice and peachy. Logging however is the problem. The docs state....
   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 ]