Koozali.org: home of the SME Server

Cloak webpage

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« on: December 18, 2006, 01:44:54 PM »
Ok here i go...
I host a webpage and because SME doesn't support dns i have to use other dns providers (zoneedit in my case).

And here's my problem....
Because i use ibays i have to cloak my pages so that people don't know where they are and that they keep their original links.

But i have a problem with google... because my page is cloaked google can't read meta tags from it and i don't know what do to to fix this issue.

Can anyone help with this?
"It should just work" if it doesn't report it. Thanks!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #1 on: December 18, 2006, 02:20:36 PM »
Someone wrote this...
Quote
A much more clever way to do this would be to use .htaccess and apache rewrite mod.
like thus:

options all
RewriteEngine on
RewriteBase /
RewriteRule <url> /<dir><filename.html>

This will subsitute whatever you put in the <url> for the url and file name directly to the right of it. The user will only see what you want them to see. It can also be use for redirects......

You will need to be running apache mod whether it be windows server or Linux. Hopfully you'll be on a linux box......


How could i do this?
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Cloak webpage
« Reply #2 on: December 18, 2006, 04:28:30 PM »
bpivk

> Because i use ibays i have to cloak my pages so that people don't know
> where they are and that they keep their original links.

Not sure what you are trying to achieve, but are you aware of (Virtual) Domains, and how you point them at an ibay in server manager ?

Users will just see a domain name displayed as the URL even though they are reading content from an ibay.
Your sme server can host many different domains with content in different ibays.
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #3 on: December 18, 2006, 06:01:11 PM »
Well i'll put it this way. I have an ibay called roundcube and if i access it from internet i have to type ip/roundcube and i would like it to be mail.domain.com. This is done by dns and cloaking (so that domain stays mail.domain.com).

This wouldn't work if i would just forward my domain because the adress would change to http://ip.of.server/roundcube and i want to keep it as mail.domain.com.

As far as i know sme doesn't support external dns. It works on lan but i need it for internet.

I hope that you understand now.
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #4 on: December 18, 2006, 06:20:28 PM »
bpivk

Cloaking is one way to achieve that.

In sme though, if you create the domain mail.domain.com in the Domains panel in server manager, and then point it at the roundcube ibay (in the Domains panel), then as long as that domain name is a real & valid domain, it will resolve to the roundcube ibay but display mail.domain.com.
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #5 on: December 18, 2006, 06:23:58 PM »
But will it do for internet and for lan. Because i read somwhere that this service isn't available for internet but only for computers on local network and that i need some other dns solution to do what i want.

Let me give you a real live case...
I am cloaking www.bezigrad.com and if you go to that page you should see www.bezigrad.com but if you enter bezigrad.com (without www) you should see my ip http://ip or server name http://wegeland...... but not my domain.
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #6 on: December 18, 2006, 06:42:14 PM »
bpivk

> I am cloaking www.bezigrad.com and if you go to that page you should > see www.bezigrad.com but if you enter bezigrad.com (without www)
> you should see my ip http://ip or server name http://wegeland...... but > not my domain

You can do that as I have said using the Domains panel, and it will also depend on whether the wildcard "www" is configured in your external DNS records for the domain name.
You will have local access and external access using the domain URL, to say an ibay on your server, and all you will ever see is the domain name.
I suggest you read the Chapter on Domains if you don't believe me.
Create a free domain or two at www.dyndns.org to test it out at no cost.
Aim each domain name at a different ibay in the serevr manager Domans panel.

Externally though, you configure the DNS records for each domain name you are hosting to point to the external IP of your sme server.
The server will sort out what content to give each domain name based on your settings in the Domains panel.
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #7 on: December 18, 2006, 06:55:32 PM »
Ok let me know if i got this...

I have two domains and a dns host at zonedit. I used to webforward domains to http://my.ip/ibay but if i do as you tell me all i have to do is point both domains to my  ip/roundcube = mail.sishell.

Is this correct. If so than i didn't understand the domains chapter. :)

Quote
When you are entering the name for the virtual domain, you should supply the fully−qualified
domain name . This is the full name of the domain, including any extensions like ".com", but
without any prefixes like "www" or "ftp".


This got me puzzled. Because i only wrote domain.com (as it says in the manual) and you say that www.domain.com or mail.domain.com is ok.
"It should just work" if it doesn't report it. Thanks!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #8 on: December 18, 2006, 09:23:52 PM »
Ok
I tryed your way and it doesn't quite work.

If i enter domain.com it works but only for domain.com not www.domain.com or mail.domain.com so i'm stuck with domain.com and domain1.com resolving but that's it. It doesn't resolve www.domain.com or any other subdomains.

So am i stuck with domains without subdomains? Or hod do i set it to work with subdomains?
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #9 on: December 19, 2006, 05:25:33 AM »
bpivk

>.. It doesn't resolve www.domain.com or any other subdomains.


You have to fix your external DNS records to use the wildcard www in front of your registered domain.
eg at dyndns.org you tick the wildcard box.

As far as other domains/subdomains are concerned you need to register them with valid external DNS records, contact whoever looks after your DNS records for your domains, and have them pointed at your servers external IP.
You would also set up those subdomains in the Domains panel.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #10 on: December 19, 2006, 06:08:34 AM »
bpivk

Depending on how your external DNS records are configured, if  domain.com is configured correctly to point at your server, then mail.domain.com should usually automatically resolve to your sme mail server.

Also check the Hostnames & addresses panel to change that behaviour locally for configured domains hosted on your server.
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #11 on: December 19, 2006, 08:29:53 AM »
Ok
So i set a domain.com and webforward it using afraid.org, set mx records and webforward (something.domain.com=ip/ibay)

Is this correct?


And what sohuld i do with "reverse mapping checking getaddrinfo for pc-00247.sishell.net failed - POSSIBLE BREAKIN ATTEMPT!". This occurs when i set my primary domain to resolve trough internet DNS.
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #12 on: December 19, 2006, 09:40:03 AM »
bpivk

> I have two domains and a dns host at zonedit.

At zoneedit you need to add a second entry for the style of www.domain.com ( as well as domain.com).

In external DNS records (eg zoneedit or wherever), each domain name entry (that you host on your sme server) should be set to resolve (point) to the sme servers external (public) IP.

When requests arrive at the sme server, internal domain name configuration/forwarding will resolve to the ibay specified in the Domains panel for that particular domain name.

There is no need for you to externally specifiy the IP/ibay URL.

If you want to use
something.domain.com
then set that up as a valid domain name and point it to sme server external IP.
Then setup that same name in the Domains panel to point at ibay.


> ...This occurs when i set my primary domain to resolve trough internet DNS.

Set it to resolve locally
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #13 on: December 19, 2006, 10:16:50 AM »
I'm using afraid's dns now.

So if i'm correct i have to set the a records eg. mail.sishell.net , user.sishell.net , stuff.sishell.net to my external ip. Only A records not webforward.

Thanks for the patience but half of the stuff works now that i have webforward enabled and half of the stuff doesn't work.


Is this what i should do? If so it still doesn't work.
http://89.212.16.101/bio/example.JPG

Or should i resolve my domains localy?
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #14 on: December 19, 2006, 11:32:37 AM »
bpivk

> http://89.212.16.101/bio/example.JPG

All those domains resolve OK for me.


> Or should i resolve my domains localy?

I set my domains to Resolve locally and they work fine for local & external users to access the virtual domain web sites that are in ibays, and users only ever see the applicable domain name URL.
The real location is not obvious to end users.
...