I need help changing settings (port forward?) after a physical server move

Hi! I have a 10.6 server that I use at home. All is well and good there. The Airport Extreme assigns IP addresses for the network. I have www.mydomain.com that runs on the server -- I use it for testing web apps, etc. I use DynDNS with their client app that send the Comcast dynamic IP address back to DynDNS to keep the server on the grid.
My friend has a 10.6 server. He has www.hisdomain.com as a home business. He also uses DynDNS in a similar way. His landlord just informed him that his apartment is going to be sold from underneath him and he has to move ASAP. It looks like he won't have a permanent place for a month or two, so I offered to let him keep his server at my place.
We both run websites on port 443 and port 80.
After attaching his server to my network, his domain name updates, but typing www.hisdomain.com into a browser lands me on www.mydomain.com. I guess that the problem is port forwarding... the router sends all 443 and 80 requests to my server.
How do I configure this so that services for hisdomain.com are forwarded to his server while services for mydomain.com are forwarded to my server?

Short answer: you can't, although there are a couple of ways to sort-of kluge it.
Long answer: When your router gets an incoming connection, the only thing it has to go on is the IP address and port number (the domain name is sent much later, after TCP session with the server is established). So unless you have multiple public IP addresses (and a router that can handle them), or want to put the sites on different ports...
Speaking of which, here's kluge #1: run his server on different ports (e.g. 81 and 444, or maybe 8080 and 8043) and set the router to forward them to his server. Problem: the user has to include the port number in the URL when they connect, or they'll get your server.
Partial solution (and kluge #2): add a virtual site on your server, with the hostname www.hisdomain.com, go to its Aliases section, and add a rule in the URL Aliases & Redirects section, with these settings:
Type: RedirectMatch
Pattern: (.*)$
Path: http://www.hisdomain.com:81$1
Then build an SSL version that redirects to https://www.hisdomain.com:444$1. Problem: when the client connects, they'll get your SSL certificate instead of his (again, it happens before the client sends the domain name it's trying to reach), and get a cert error. No fix for this.
Kluge #3: instead of making the virtual site redirect clients to his server, add a reverse proxy so your server'll transparently forward requests to his server, and proxy the replies. I haven't done this, but I think what you need to do is make a virtual site (as above), and under its Proxy tab (the one under the virtual site, not the one under the Settings section), check the Enable Reverse Proxy box, leave the Proxy Path as "/" and the Sticky Session Identifier field blank, and add a Balancer member with the Server URL "http://hisinternalipaddress" and a blank Route. Or something like that. Again, you could do the same for https as well, but you'll have the same certificate problem.

Similar Messages

  • I need Help setting up port forwarding for my foscam FI8910W.

    I am currently on Mac OS X 10.7.5. My ISP is verizon FIOS and I have an Actiontec MI424WR router with the wireless turned off. I have an AirPort Extreme running from the actiontec router for my wireless network. First of all I need to know if I should plug the Foscam into the actiontec router or the Airport Extreme? Then I need to know if I should set up the port forwarding on the Actiontec or the Airport Extreme. Lastly I need detailed instructions on how to set up the port forwarding. Hopefully someone has a solution. Thanks

    OK, and what sort of help do you need?

  • Need help setting up port forwarding

    Dear Friends
    I have just purchased a wireless linksystem 2.4 -g broadband router and my internet connection is running really well except my web server
    I want to redirect people to my web site online game but my Isprovider has blocked  access to port 80
    How can I program my router to bypass this limitation from my ISprovider ?
    I have registered my domain name with dns exit.com and also have a permanent software installed for any ip changes .
    Any advice will be appreciated and helpful
    Emmerson

    Dear Friends
    I have managed to come back to my original set up and I can reach my web server and others also but only as long as we are connected  to  the same isp provider
    As soon as they come from another source the provider blocks the entry
    My web server is  using port 80
    How can iIdirect people to my web server and bypass port 80 and this restriction from my isp provider
    Emmerson

  • Need help!---lookup connectionFactory failed after restart j2ee server!

    hi,
    I wonder anyone could help me to solve this context lookup problem described as bellows.i should say 'thanks' in advance!!!
    At the end of the message i post the code used to lookup administered objects then create connection.
    i use sun's default jms implementation (j2sdkee1.3.1) and jdk1.4 as environment.
    The jms client will try to establish a new connection if the j2ee server restarts (perhaps due to remote j2ee server shutdown or network trouble) , but it fails to lookup topicConnectionFactory in the JNDI this time. An namingException will be caught :
    "javax.naming.CommunicationException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is:
         org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:92)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
         at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Unknown Source)
         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:176)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:641)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:583)
         at com.sun.corba.ee.internal.corba.ClientDelegate.request(ClientDelegate.java:875)
         at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
         at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Unknown Source)
         ... 6 more
    Some code in the establish() method:
    try {
    TopicConnectionFactory topicConnectionFactory = null;
    InitialContext ctx = null;
    ctx = new InitialContext();
    System.out.println("ctx:" + ctx);
    topicConnectionFactory =
    (TopicConnectionFactory) ctx.lookup ("connectionfactory");
    System.out.println("topicConnectionFactory:" + topicConnectionFactory);
    while (connection == null)
    try{
    connection = topicConnectionFactory.createTopicConnection();
    } catch (javax.jms.JMSException jmse)
    System.out.print("Cannot connect to message server...");
    System.out.println("Pausing " +
    CONNECTION_RETRY_PERIOD / 1000 + " seconds before retry.");
    try
    Thread.sleep(CONNECTION_RETRY_PERIOD);
    } catch (java.lang.InterruptedException ie) {ie.printStackTrace();}
    continue;
    System.out.println("\nConnection established");
    session =
    connection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
    topic = (Topic) ctx.lookup ("subscribeTopic");
    connection.setExceptionListener( (javax.jms.ExceptionListener) this);
    catch (javax.naming.NamingException jne){
    System.err.println("[MessageSubscriber] - NamingException!");
    //jne.printStackTrace( );
    Best Regards,
    -bawanglongqiqi

    Hi!
    I've encountered a similar problem with looking up the Home-interface
    of an EJB from a client through the InitialContext object after a
    restart of the application server.
    Try to set an additional property before creating your InitialContext
    object that clears the JNDI cache (the property name seems to differ
    between context factories - e.g. I'm using a WebSphere one and had to
    set a WebSphere specific property name).
    I'm sure you will find further info when you do a web search on "clear
    JNDI cache" for your specific JNDI provider.
    Kind regards,
    Markus

  • My ISP tells me I need to I need to change the port to send/receive e-mails, but I can't remember my Mail password to add an account. How can I proceed without the password?

    My ISP tells me I need to change the port to send/receive mail, as the current port is going to be disabled for security reasons. But I can't remember my Mail password to add an account. How can I add an account when I don't remember my password? It's been several years.

    your email password is with your ISP so they can help. but if it is saved in the email app you can just change the ports in the preferneces without a password.

  • I'm using a TravelSIM to make calls home to Australia on my iPhone 4S while I'm overseas. Do I need to change settings, or do anything else, to make sure I don't pay too much?  eg turn off push data - what else?

    I'm using a TravelSIM to make calls and texts home to Australia on my iPhone 4S while I'm overseas. Do I need to change settings, or do anything else, to make sure I don't pay too much? 
    I have advice to turn off push data and don't use Google maps 
    Are there other things I should do so my costs will be kept low?
    thanks for any answers from experienced iPhone using travellers!
    kind regards,   Di

    It's not entirely impossible actually as someone has pointed out to me that I can turn on Call Forwarding and that stops any incoming calls. I've just forwarded it to my google voice number and then turned on "do not disturb" in google voice and whenever I get a call it goes straight to my google voice voicemail and my phone does nothing. The only thing now is I still get text messages but I think the phone calls bugged me more because they would make my music turn off for much longer.
    Even though this isn't a perfect solution it's something so far so maybe you shouldn't just come out and say there's NOTHING I can do because so far I've found part of a solution. If you don't have anyting productive to say then just don't reply and close the tab. Thanks.
    At this point I'm wondering if anyone knows of any Jailbreak tweaks that can enable what I want. Unless of course it's agaisnt the rules of this forum to mention jailbreak stuff...

  • Need help to Settings Apple iMAC 2012 and HP LaserJet 1100.

    Need help to Settings Apple iMAC 2012 and HP LaserJet 1100.
    I purchased a imac, 2012, before there was Windows 7. I have the HP LaserJet 1100 and Print Servers Trendnet TE100 P21, with Windows 7 it ​​worked, but with MAC OSX 10.8 does not want to, do not go printing. Could help with the setting?
    Нужна помощь в настроке Apple iMAC 2012 и HP LaserJet 1100.
    Я купил imac 2012, до этого был Windows 7. У меня есть принтер HP LaserJet 1100 и принтсервер Trendnet TE100 P21, с Windows 7 все работало, но с MAC OSX 10.8 работать не хочет, не идет печать. Могли бы помочь с настройкой?

    привет Roman,
    Mac OS X: About the Reset Printing System feature ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    10.5/10.6/10.7/10.8 instructions...
    In System Preferences>Fax & Print, Right click or Control+click on the Printers list Sidebar, choose Reset Printing System.
    if you hold option and click the "-" tab it resets the printing system.
    http://www.macosxhints.com/article.php?story=20031215144430486
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions.
    Any devices that previously appeared in your Printer List and Fax List will need to be added again after resetting the printing system.
    Resetting the printing system in Mac OS X 10.5.x+++
        1.    To use the Reset Printing System feature in Mac OS X 10.5.x, follow these steps:
        2.    Choose System Preferences from the Apple menu.
        3.    Choose Print & Fax from the View menu.
        4.    Control-click on list of printers on the left side of the window, then choose "Reset printing system" from the contextual menu. If you don't see a list of printers, Control-click on the text "Click + to add a printer or fax" and select "Reset printing system..." 
   
  As an alternative, if you currently have one or more printers listed, you can Option-click the "-" (Remove printer) button.
    http://support.apple.com/kb/ht1341
    Reboot.
    Mac OS X: О сброса системы Печать ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    10.5/10.6/10.7/10.8 инструкции ...
    В System Preferences> Печать и факс, правой кнопкой мыши или Control + Click на боковой панели списка принтеров, выберите Сброс системы печати.
    если вы держите опцию и нажмите кнопку "-" на вкладке он сбрасывает систему печати.
    http://www.macosxhints.com/article.php?story=20031215144430486
    Безопасная загрузка с HD, (Удержание нажатой клавиши Shift нажатой при загрузке), запустите Disk Utility в Приложения> Утилиты, затем выделите диск, нажмите на ремонт разрешения.
    Любые устройства, которые ранее появились в списке принтеров и факсов список необходимо будет добавить снова после перезагрузки системы печати.
    Сброс системы печати в Mac OS X 10.5.x + + +
    1. Для сброса системы печати в Mac OS X 10.5.x, выполните следующие действия:
    2. Выберите Системные настройки в меню Apple.
    3. Выбери для печати и факса в меню Вид.
    4. Управление кнопкой мыши на список принтеров в левой части окна, затем выберите "Сброс системы печати" из контекстного меню. Если вы не видите списка принтеров, управление кнопкой мыши на текст "Нажмите, чтобы добавить + принтер или факс" и выберите "Сброс системы печати ..." В качестве альтернативы, если у Вас уже есть один или несколько принтеров в списке, можно Option-нажмите кнопку "-" (Удалить принтер) кнопки.
    http://support.apple.com/kb/ht1341
    Перезагрузку.

  • Need Help, i have an Ipad2 after 6.3.1 update, i have no cameras, or e-mail, I already reset, multiple times, but no improvment, can anyone help?

    Need Help, i have an Ipad2 after 6.3.1 update, i have no cameras, or e-mail, I already reset, multiple times, but no improvment, can anyone help?

    When you say reset, do you mean a reboot by holding both the power and home buttons until the apple logo appears, ignoring the red slider if it appears?

  • I need help changing my iTunes syncing for iPad and iPhone when I connect Ed my iPhone to computer it has a different name from my laptop so I can't sync iPhone music from iPad. Please help!!!

    I Need help changing my name on lipad and iPhone to sync. I have two different name1 is from my laptop and the other is from iPad ,so I can't sync iTunes. Please help!!!!!!

    Plug the iphone in and go to the music tab in the iphone,not your itunes library.There will be a button in the borrom right that says autofill. Click that and it should thransfer all your music. It worked for me,and i had the same problem.

  • HT5312 Guys, I have forgotten my security question answers, and the rescue email I placed in with my apple id has been closed down as well (it was a university id, when I graduated, the email service expired). I need help changing my password.

    Guys, I have forgotten my security question answers, and the rescue email I placed in with my apple id has been closed down as well (it was a university id, when I graduated, the email service expired). I need help changing my password.

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • I need help changing my security information because i forgot it and i clicked forgot your answers on the apple website and its sopost to send me an email saying how to reset it but i never got an email

    i need help changing my security information because i forgot it and i clicked forgot your answers on the apple website and its sopost to send me an email saying how to reset it but i never got an email.

    Contact iTunes support:
    http://www.apple.com/support/itunes/contact/

  • Hi All, Need help my iphone 4 lock after upgrape ios7.1 (no service). i buy a secondhand phone not know first apple id. please advise how to normalize

    Hi All, Need help my iphone 4 lock after upgrape ios7.1 (no service). i buy a secondhand phone not know first apple id. please advise how to normalize

    You will need the original owner of the iPhone to unlock it for you, or the iPhone will remain useless.  It has been Activation Locked, which is described here:
    http://support.apple.com/kb/HT5818

  • Help please, with port forwarding settings

    I have an MSI RG60 wireless router (Ethernet hard wired to my XP Home PC) and don't know what settings to use for port forwarding, to enable my WinMX and BitTorrent clients to work successfully.
    I have the port numbers, and assume that this information goes in the Service Port box, i.e. 6699, or 6881-6889.
    I know which ports are TCP and which are UDP, but I don't know what IP address to enter or which Common Service Port type to choose. Can anyone help please?
    I'm pretty sure that other settings in my PC are OK as I have successfully been running a Belkin router for a couple of years, and have only replaced it with the new MSI unit due to reliability problems.

    It does indeed have port triggering, but it wants incoming and trigger port protocol info, along with trigger and incoming port numbers.
    How can I type ipconfig into either of teh clients...WinMx or Bit Torrent?

  • Need Help with 5 Port Switch, Airport Express, and wired iMac

    I recently purchased an airport express to accomodate my laptop's wireless capabilities. However, the airport express has only one ethernet port, as does my parents' modem. Thus, I could either hook up the airport or my parent's iMac. I chose the airport, which resulted in a few weeks worth of fights. To alleviate the problem, I purchased a linksys 5 port group switch, after someone told me I could use that to hook up both at the same time. Initially, the iMac wouldn't work. It registered what I was told was an invalid IP address. Then a cable technician came by, reset the modem (unplugged the battery), and now the airport does not work; it flashes yellow and says that it cannot detect the ethernet signal. 
    The iMac is running OSX 10.3 and the laptop OSX 10.4.  I am not sure if the modem can only accomodate one IP address or if there is any way to share IP addresses. Do I need to change something with the DHCP on my laptop? Do I need to manually enter an IP? Any help would be greatly appreciated. I'm completely lost....and without wireless internet.

    Instead of a switch you need a wireless router, because your modem will only assign one public ip address to the switch and that ip address will be forwarded to any one computer at a given time...You should replace the switch with a wireless router and it should resolve your concern...

  • IP changes on port forwarding

    I set up port forwarding, port 80 to 192.168.1.4
    Port forwarding works fine.
    After a day or so 192.168.1.4 changes to various IPs. such as
    8.15.17.117, and 63.251.179.13 both will be listed.
    Port forwarding stops working.
    I click <resolve now> and it changes back to 192.168.1.4
    and starts working again. But will change back after a day.
    How can I keep this from happening?

    #1 What is the exact brand and model of your router?
    #2 If you are not on FIOS, what is the brand and model of your modem?
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

Maybe you are looking for