You are not logged in.

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 200

Occupation: Photographer

  • Send private message

1

Monday, March 26th 2012, 6:16pm

crossdomain problem?

Hello Klaus,

I have 2 links, one is working, the second, without "www" doesn´t (security error). Can U tell me why?

http://www.null0815.com/panorama/tirol/serfaus/masnerkopf
http://null0815.com/panorama/tirol/serfaus/masnerkopf

I´ve created crossdomain.xml and have put it to our root:

Source code

1
2
3
4
5
<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd>
	<allow-access-from domain="null0815.com" />  
	<allow-access-from domain="www.null0815.com" /> 
</cross-domain-policy>


This code I have put to main krpano xml file:

Source code

1
2
3
4
5
6
<security>
    <crossdomainxml url="http://www.null0815.com/crossdomain.xml" />
	<crossdomainxml url="http://null0815.com/crossdomain.xml" />
	<allowdomain domain="www.null0815.com" />
    <allowdomain domain="null0815.com" />
</security>


What´s wrong?
Thank U!
Best regards,
Igor Socha

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Monday, March 26th 2012, 10:49pm

Why bother with the fqdn here?

<include url="http://www.null0815.com/panorama/common/skin/nullskin.xml" />
and not

<include url="../../../panorama/common/skin/nullskin.xml" />

Actually the best method is to have a correctly configured website with a .htaccess in the root

Source code

1
2
  RewriteCond %{HTTP_HOST} ^null0815\.com$ [NC]
  RewriteRule ^(.*)$ http://www.null0815.com/$1 [L,R=301]
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Tuesday, March 27th 2012, 3:52pm

Hi,
I´ve created crossdomain.xml and have put it to our root:
I have tested these both links and none is working:
http://null0815.com/crossdomain.xml
http://www.null0815.com/crossdomain.xml

btw - when the crossdomain.xml is located at the server root then any additional setting in the krpano xml shouldn't be necessary,

and one other tip - it is possible to either relative paths or also server absolute paths - just let the path start with slash '/' - then the path will start at the server root, so using the full path with the domain itself isn't necessary,

best regards,
Klaus

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 200

Occupation: Photographer

  • Send private message

4

Tuesday, March 27th 2012, 5:17pm

Why bother with the fqdn here?

<include url="http://www.null0815.com/panorama/common/skin/nullskin.xml" />
and not

<include url="../../../panorama/common/skin/nullskin.xml" />

Actually the best method is to have a correctly configured website with a .htaccess in the root

Source code

1
2
  RewriteCond %{HTTP_HOST} ^null0815\.com$ [NC]
  RewriteRule ^(.*)$ http://www.null0815.com/$1 [L,R=301]

Hi Sacha, thanx for the answer,
1/ what is fqdn?
2/ I have used abolute path with this xml, not relative
3/htaccess- it is not in my competence (my job are virtual tours and photography :))
Best regards,
Igor Socha

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 200

Occupation: Photographer

  • Send private message

5

Tuesday, March 27th 2012, 5:26pm

Hi,
I´ve created crossdomain.xml and have put it to our root:
I have tested these both links and none is working:
http://null0815.com/crossdomain.xml
http://www.null0815.com/crossdomain.xml

btw - when the crossdomain.xml is located at the server root then any additional setting in the krpano xml shouldn't be necessary,

and one other tip - it is possible to either relative paths or also server absolute paths - just let the path start with slash '/' - then the path will start at the server root, so using the full path with the domain itself isn't necessary,

best regards,
Klaus


Uff, probably I´ve removed it yesterday by an accident, when I was testing & making some changes, I can´t believe, it is not there :(

Now I´ve copied it there, but doesn´t help :(

as for the server absolute paths - it should look like:

<include url="/panorama/common/skin/nullskin.xml" />
instead of:
<include url="http://www.null0815.com/panorama/common/skin/nullskin.xml" />
?
Thanx!
Best regards,
Igor Socha

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

6

Tuesday, March 27th 2012, 5:34pm

Change
<include url="http://www.null0815.com/panorama/common/skin/nullskin.xml" />
to
<include url="/panorama/common/skin/nullskin.xml" />
and be done.

Don't use Fully Qualified Domain Names. Or build your .htaccess correctly. Google .htaccess for further information.

Quoted

as for the server absolute paths - it should look like:

<include url="/panorama/common/skin/nullskin.xml" />
instead of:
<include url="http://www.null0815.com/panorama/common/skin/nullskin.xml" />
?
Thanx!
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 200

Occupation: Photographer

  • Send private message

7

Tuesday, March 27th 2012, 6:09pm

ok Sacha, thanx!
Best regards,
Igor Socha