Forum Moderators: phranque

Message Too Old, No Replies

Pointing a virtual host to another ip

Is it possible via httpd.conf

         

mack

4:08 am on Oct 18, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



On my main site I split the content up into subdomains using virtual hosting.

<VirtualHost *>
ServerName user.example.com
DocumentRoot /home/user/public_html/
ScriptAlias /cgi-bin/ /home/user/public_html/cgi-bin/
CustomLog /home/user/logs/access.log combined
</VirtualHost>

Is it possible to point the doc root to another ip address within the local network

The reason I want to set this up is because I only have one static ip address and require to host an application on a dedicated box.

I though about simply routing port 81 requests to the new lan address but it would be a lot better to keep everything standard and use a virtual host entry somehow.

Thanks in advance.
Mack.

jdMorgan

1:42 pm on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you looked into mod_proxy?

You might also be able to mount the remote drive locally, but that's OS-dependent.

Just throwing a few ideas out... <bump>

Jim

encyclo

1:55 pm on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't have too much to add as a solution, but I wonder if the easiest method would be simply to cough up the extra for a second static IP address rather than trying the mod_proxy route?

If the cost is not too astronomic (it shouldn't be for one address), it would surely be easier and more robust a solution?