Multiple servers?

Discussion in 'Installation/Configuration' started by seadap, Dec 24, 2008.

  1. seadap

    seadap New Member

    Hey all!

    Great product. I've used it for years and LOVE it. Here's my question:

    I have the domain www.example.com running and working perfectly. What I would like to do is create a co-domain or something similar such that dev.example.com points to a different ip address.

    I have an install of gforge running on a different server and would like to have my users be able to find it with the dev domain name. I am not apposed to installing gforge as a subdirectory such as www.example.com/gforge but I'm a little unsure of myself when it comes to getting all of the components installed and configured correctly.

    I used an ISO of gforge to simplify it's install and would like to not have to go through the plumbing to get it moved over to the web server.

    Thanks!

    Scott

    --Edit:

    I should have mentioned I'm using version 2.
     
    Last edited: Dec 24, 2008
  2. newmember

    newmember New Member

    Add a 'record' to your dns server under the 'example.com' domain.

    The new 'record' will be something like:

    dev 192.168.0.100 ; where the ip address is your external public ip address or internal ip address.

    You will know it it working when you can ping dev.example.com and the ip address is the one you added to the dns server.
    Then go tour browser and type in http://dev.example.com

    Voila!
     
  3. seadap

    seadap New Member

    I tried adding an 'A' record with the correct ip address and also adding another host name to the same domain and under both circumstances I get the shared ip page. I don't know where I'm going wrong.

    Also, I'm using dyndns. I have the domain example.com with an alias of www and dev pointing to the same ip address there. I assume that when my server sees a request for dev or www it would look up it's dns records to see which ip address should serve the request. Is that wrong?

    Scott
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Is dev on a different IP in your LAN, or is it a public IP address?
     
  5. seadap

    seadap New Member

    It's a different private ip on my lan.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    The problem is that you can forward port 80 to just one IP on your router.
     
  7. seadap

    seadap New Member

  8. falko

    falko Super Moderator Howtoforge Staff

    Yes, you can set up a reverse proxy with Apache. :)
     
  9. seadap

    seadap New Member

    Help needed with forward proxy

    Hi All,

    I've been experimenting with the forward proxy idea but I seem to be a little stuck. I looked at this article and tried to adapt the config to do what I had in mind:

    Code:
    NameVirtualHost *
    <VirtualHost *>
            ServerName dev.bluejacketsoftware.com
            DocumentRoot /var/www/
            ProxyRequests Off
    
            <Proxy *>
              Order deny,allow
              Allow from all
            </Proxy>
    
            ProxyPass /dev http://www.yahoo.com/
            ProxyPassReverse /dev http://www.yahoo.com/
    </VirtualHost>
    With this code I expected to be able to browse to www.mydomain.com/dev and see yahoo's page but no dice.

    I chose to experiment with an outside domain because when I replaced www.yahoo.com with the internal ip address of my other web server i don't get any hits in the logs for it.

    The only evidence I see that anything is happening is when I change the loglevel for my ispconfig server to debug, I can see entries like:


    but the page that is returned is a generic page not found from my drupal installation.

    I've combed throught the docs about mod_proxy and mod_proxy_html but haven't found any more ideas.

    It seems that at least part of the proxy is working but I'm missing something. Where to look now?

    Thanks for your help!

    Scott
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Not sure, but maybe Yahoo is blocking proxy requests?
    Code:
    [Sun Feb 01 16:58:22 2009] [info] [client 24.18.2.179] (104)Connection reset by peer: core_output_filter: writing data to the network
    Can you try another web site?
     
  11. reason8

    reason8 Member

    Hello and good day. I am using ISPCONFIG 3. I would like to know if this method works for my version as well.

    With that in mind, do you need to add a record to ISPConfig DNS Zone AND/OR the dynamic dns account? I am using dnsexit.com and they have a website which you setup mail server, A records, cname records, etc. Should I just enter this information there, just in ISPCONFIG or both places?

    Thank you!
     

Share This Page