The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> DNS
|
Virtual Hosting, Apache 2.0.45 on Win XP Pro
Discuss Virtual Hosting, Apache 2.0.45 on Win XP Pro in the DNS forum on Dev Shed. Virtual Hosting, Apache 2.0.45 on Win XP Pro DNS forum discussing issues, servers, and configurations. The Domain Name System (DNS) is what the Internet uses to translate website names into IP addresses.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

April 19th, 2003, 12:35 PM
|
|
Junior Member
|
|
Join Date: Apr 2003
Location: The Netherlands
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Virtual Hosting, Apache 2.0.45 on Win XP Pro
Hello...
I'm trying to get some help on virtual hosting setup. I'll try to explain the internet setup that I currently have. I live in a building where a guy (John Doe) downstairs has an ADSL internet connection line of 7800kbps which he shares with 10 other people in our apartment building (LAN NETWORK). John Doe has a webserver and domain name etc which he himself uses for statistics etc. for the 10 of his clients. His server is viewable from the LAN and the WEB.
I'm running Win XP Pro.
=======================
I downloaded the Apache version for Windows and installed it on my pc at C:\Apacehe. When it asked to enter domain and server name, I entered "localhost' for both of them. Everything works fine.
His ip: 195.XX.XX.XX (also viewable by internet, LAN, and domain name)
My ip: 192.168.X.XX (LAN ip number, viewable on my pc and on LAN)
I'm interested in hosting my site from my pc so I'm asking for some help on how to set up the virtual hosting part of the httpd.conf file. I was told be a friend to get a free domain name from DYNDNS.ORG which I did. I registered livesoca.homelinux.com but it showed my John Doe's ip# as the ip address because I guess I'm on the LAN. But when I type that URL, it shows me John Doe's site (the LAN site). How do I set it so that url will show my site?
Please send me an example for the httpd.com from the Virtual Host section.
Plz feel free to email me at lennoxgrant@hotmail.com
Thank you.
Lennox Grant.
|

April 19th, 2003, 01:40 PM
|
 |
mod_dev_shed
|
|
Join Date: Sep 2002
Location: Atlanta, GA
|
|
|
You need to have John Doe open a port on his server that he can have point to your private IP on the LAN. So there's his IP of 195.x.x.x and when you view his site using that IP, it uses the default port 80. He can set it up so that if someone accesses his IP on a different port, it forwards the request to your private IP. So 195.x.x.x:8080 would forward to 192.168.x.x (your IP on the LAN). You can then give this port, in this example it's port 8080, to dyndns.org and when people access livesoca.homelinux.com, dyndns.org will send it to John Doe's IP at port 8080, and John Doe's computer will forward the request on that port to your computer.
|

April 19th, 2003, 03:11 PM
|
|
Junior Member
|
|
Join Date: Apr 2003
Location: The Netherlands
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Re: Virtual Hosting, Apache 2.0.45 on Win XP Pro
TY,
So after this is done, do I have to change anything in my httd.conf file?
|

April 19th, 2003, 07:57 PM
|
 |
mod_dev_shed
|
|
Join Date: Sep 2002
Location: Atlanta, GA
|
|
|
You should definately read through it and read about the changes you can make and to make sure it's securely set up. But if you plan to keep your files in C:\Apache\htdocs, you shouldn't need to make too many changes.
|

April 19th, 2003, 10:55 PM
|
|
Junior Member
|
|
Join Date: Apr 2003
Location: The Netherlands
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Re: Virtual Hosting
Ok... I have all of these installed and working fine on Win XP Pro:
Apache 2.0.45
Perl 5.8.xxx (By ActiveState)
PHP 4.3.1 (as an apache module, not cgi)
MySql 4.0.12
PHPMyAdmin 2.50_rc1
OpenSSL
Mod_SSL
I also created a test certificate. So when I type https://localhost/ I get the security question and when I accept, the page loads and shows the security lock in the lower right of the screen.
I also registered http://livesoca.no-ip.com, then I had to make it re-direct to port 8889 of John Doe's ip ( http://195.XX.XX.XX:8889/)..... plz note you might not get the Apache page becuase I don't usually have my pc running overnight.
Now can anyone tell me how to I enable SSL on the domain name ( https://livesoca.no-ip.com)? I don't think it will work because no-ip.com re-directs to John Doe's port, then connects to my pc on the LAN. I want to be able to enable certain folders on my pc, but I want the url to be like the https:// one above.
If this can be done, can you explain what has to be done?
Thanks again
Lennox Grant
lennoxgrant@hotmail.com
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|