We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

unable to load on my website

Home Forums General Questions unable to load on my website

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #27988
    Avatarlopatam
    Licensee

    Ciao!

    I cann’t manage to make a simple test app working on my website. If I embed the app from the verge upload link it works. If I upload everything on my website it doesn’t load anything, it gives me a 404.3 error but I put the content there.
    Is it a verge problem or is it my website? I know very little about web.
    I put the index.html file outside the Test2 folder created by Verge3d with the path of the iframe.
    I know there is a simple solution out there but help me anyway :-)

    Ciao
    Gianmarco

    Attachments:
    You must be logged in to view attached files.
    #27991
    GlifTekGlifTek
    Licensee

    Does your index.html link the v3d.js and test2.js properly? They should be ./test2/test2.js and ./test2/v3d.js

    #27993
    Avatarlopatam
    Licensee

    Yes, they are in the right directory.

    #27994
    GlifTekGlifTek
    Licensee

    I mean in your index.html the lines where those js files are called from. You need to format the code to be the way I wrote above. It normally generates those lines to look for the js files in the same directory as the html file.

    (That is,if you’ve copied your html from your test2.html generated file into your index.html file.)

    #27995
    Avatarlopatam
    Licensee

    ok, I didn’t know I have to put this line in the index.html.
    I add
    <script src=”/test2/test2.js”></script>
    <script src=”/test2/v3d.js”></script>
    to my index.html but nothing changed…

    #27996
    Avatarlopatam
    Licensee

    this is my html now, it the same of the tutorial on the Verge guide:
    <!DOCTYPE html>
    <html>

    <head>
    <title>Esempio_HTML</title>
    <meta charset=”utf-8″>
    <meta name=”viewport” content=”width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0″>
    <meta name=”description” content=”Put some description here – remember about SEO!”>
    <style>
    #my_iframe {
    position: absolute;
    top: 400px;
    left: 0px;
    width: 75%;
    height: 75%;
    border: 0;
    }

    #hide_button, #show_button {
    position: absolute;
    width: 100px;
    height: 30px;
    background-color: DodgerBlue;
    color: white;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    }

    #hide_button {
    left: 10px;
    }

    #show_button {
    left: 120px;
    }
    </style>
    </head>
    <script src=”https://www.gianmarcovilla.it//test2/test2.js”></script&gt;
    <script src=”https://www.gianmarcovilla.it//test2/v3d.js”></script&gt;
    <body>
    <h1>
    Config
    </h1>

    Hide
    Show
    <iframe width=”1024″ height=”640″ allowfullscreen src=”https://www.gianmarcovilla.it/test2/test2.html”></iframe&gt;

    </body>

    </html

    #27997
    Avatarlopatam
    Licensee

    I think it’s a problem of my website.

    #28005

    I think it’s a problem of my website.

    It looks like the server doesn’t allow downloading gltf files which verge3d uses. It’s IIS (Internet Information Services) and it needs to be configured in order to serve files of the gltf extension.

    Here’s a link explaining how to do that: https://docs.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap#how-to
    – you need to specify gltf as a file name extension and model/gltf+json as a MIME type.

    Co-founder and lead developer at Soft8Soft.

    #28011
    Avatarlopatam
    Licensee

    Thanks, now I just have to find out where to change this with Aruba, if anyone have some ideas …

    • This reply was modified 1 month, 1 week ago by Avatarlopatam.
    #28017

    Thanks, now I just have to find out where to change this with Aruba, if anyone have some ideas …

    Here’s the description of their basic windows hosting plan: https://hosting.aruba.it/en/hosting/windows-basic.aspx.

    And if you scroll down below and click the Development tools block, then it says: “IIS Remote Administration (manage MIME types, error pages, default document pages, directory exploration)” and it’s included in the plan.

    So, “manage MIME types” is what you need to resolve the issue. I think you just need to contact Aruba support about that.

    Co-founder and lead developer at Soft8Soft.

    #28023
    Avatarlopatam
    Licensee

    Yes, I’m waiting for the Aruba support answer… and thanks a lot!!

    #28037
    Avatarlopatam
    Licensee

    ole!! I need to upload a web.config file, this one:
    configuration>
    <system.webServer>
    <staticContent>
    <mimeMap fileExtension=”.gltf” mimeType=”model/gltf+json” />
    <mimeMap fileExtension=”.hdr” mimeType=”image/vnd.radiance” />
    </staticContent>
    </system.webServer>
    </configuration>

    I added also the possibilities to download from my server the .hdr files because it’s not possible by default.
    Thanks a lot Ivan and Gliftek

    #28044

    Glad you worked it out! :good:

    Co-founder and lead developer at Soft8Soft.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.