Results 1 to 1 of 1
Dear,
My situation is,
I have a domain name http://www.xxxxx.com and this domain point to IP 1.2.3.4, this 1.2.3.4 is a virtual domain web server and gateway, now, I have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-18-2007 #1Just Joined!
- Join Date
- Oct 2004
- Posts
- 22
Problem in Virtual Domain
Dear,
My situation is,
I have a domain name http://www.xxxxx.com and this domain point to IP 1.2.3.4, this 1.2.3.4 is a virtual domain web server and gateway, now, I have another web server inside the LAN 192.168.1.2. Now, how do I set the virtual domain, let http://www.xxxxx.com will link to the internal web server.
Now, I already do a setting on virtual domain web server.
My virtual machine have two lan adapter, eth0 1.2.3.4, eth1 192.168.1.1...Code:<VirtualHost *> ServerAdmin admin@xxxxxl.com ServerName www.xxxxx.com RewriteEngine on RewriteRule ^(.*)$ http://192.168.1.2/$1 [L,R] <-- told the virtual domain which internal web server ErrorLog logs/www.lckdanny.com-error.log CustomLog logs/www.lckdanny.com.log common </VirtualHost>
When I test the domain http://www.xxxxx.com, it can't display anything, just a blank page and show the URL is http://192.168.1.2, the result like to find the domain http://192.168.1.2 through internet!! My setting is wrong...
Please, anyone give me a hand to fix this problem.
Thx.
Regards,
Bluesheet


Reply With Quote
