Koozali.org: home of the SME Server

Virtual Domains Not Working

Offline dragasoni

  • *
  • 7
  • +0/-0
Virtual Domains Not Working
« on: January 06, 2009, 03:50:52 AM »
My ISP recently blocked port 80, so I set DNS to forward all HTTP requests to port 81.  My router then forwards port 81 to port 80 on the servers internal IP.  Unfortunately, only my primary domain can be seen.  The virtual domains only pull up the primary domain.

Is there a way to correct this?  Thanks in advance   :smile:

-Dragasoni-
« Last Edit: January 07, 2009, 02:33:11 PM by dragasoni »

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Virtual Domains Not Works
« Reply #1 on: January 06, 2009, 10:43:44 AM »
Hi

I hope you do not get this wrong: are you sure your problem is on SME server side ?
Looks like you just change external configurations (DNS on ISP or other site)... and nothing on internal (SME) side...so do not appears to be a SME problem.

You could test to access virtual domains from LAN and report if it's working.
If your SME server is configurated as DNS for LAN, you should be able to access all virtual domains by using they DNS name (www.mydomain.com, www.myvirtualdomain2.com, ...).

Good luck.

Jáder
...

Offline judgej

  • *
  • 375
  • +0/-0
Re: Virtual Domains Not Works
« Reply #2 on: January 06, 2009, 05:48:39 PM »
...I set DNS to forward all HTTP requests to port 81.

Could you explain this a litte please? DNS is not something that does port forwarding, but I can't fathom what you actually meant to say.

-- Jason
-- Jason

Offline dragasoni

  • *
  • 7
  • +0/-0
Re: Virtual Domains Not Working
« Reply #3 on: January 07, 2009, 04:54:51 AM »
First of all, I don't know how I screwed up the title so bad.  Lack of sleep will mess with you...

Ok, my DNS...it has an option to forward all HTTP requests to a different port other than the standard  port 80 on my external IP.  So I forward to port 81, and then my router forwards traffic from port 81 on external IP to port 80 on the internal IP for the SME server.

My primary domain is www.dragasoni.com, which works fine.  But if you goto www.sweetybran.com, the primary domain pulls up, and not the virtual domain.  It was working fine until my ISP blocked port 80.  Oddly, if you go to www.dragasoni.com/brandysite it works fine.

-Dragasoni-

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Virtual Domains Not Works
« Reply #4 on: January 07, 2009, 12:37:56 PM »
Ok... let´s start again:

Plan A:
Each domain uses a different port
a) main domain is :81 and your router put back to :80 on SME.
b) virtualdomain1 is :82 and your router put that back to :80 on SME

I´m not sure would work... should try!

Plan B:

on your DNS, resolv www.virtualdomain1.com to www.maindomain.com/virtualdomainIbay

Let us know if any of these works.

Good luck

Jáder
...

Offline dragasoni

  • *
  • 7
  • +0/-0
Re: Virtual Domains Not Working
« Reply #5 on: January 15, 2009, 10:30:24 PM »
Jader,

Plan B works, but not Plan A. I'm about to throw a third domain into the mix, so hopefully that works also :grin:

Thanks for your help!

-Dragasoni-

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Virtual Domains Not Working
« Reply #6 on: January 17, 2009, 11:25:08 AM »
You're welcome.
Help someone else if you can!

Regards
Jáder
...