Koozali.org: home of the SME Server

Lay-out (CSS and AJAX) not showing when reached from subdomain.

Offline piedie

  • ***
  • 58
  • +0/-0
Lay-out (CSS and AJAX) not showing when reached from subdomain.
« on: October 09, 2007, 01:08:40 PM »
Hi there!

We have an SME server for our network and a dedicated webserver somewhere else for the website. But for some filesharing application, i also wanted to use the SME server as webserver. I also use this for the personnel e-mail.

So I created some subdomains on the dedicated server, and changed the DNS to point to my SME Server. In Server Manager i created the subdomain and choose what i-bay i wanted to link to it. For the personnel this works great, but the filesharing-system suddenly shows without any markup or layout.

When i enter 892.199.919.919/filesharing it works great, but when I try to use files.ourdomain.nl is does show, but without layout.

Do you have any idea what could cause this?

(Example working) (Example not working)

« Last Edit: October 09, 2007, 01:48:19 PM by piedie »

Offline shell

  • ****
  • 117
  • +0/-0
Re: Lay-out (CSS and AJAX) not showing when reached from subdomain.
« Reply #1 on: October 09, 2007, 11:51:49 PM »
have you tried not using relative links - currently your css info is coming from this tag:

<style type="text/css" media="all">@import "/bestand/_themes/Office 2007 Dark/style.css.php";</style>
or
/bestand/_themes/Office 2007 Dark/style.css.php

can you alter the source to pull from fully qualified:

http://bestand.defilmboulevard.nl/bestand/_themes/Office 2007 Dark/style.css.php

It will be something along these lines... Not an expert so can't tell why this is happening, but something to work on.   :-?

Offline piedie

  • ***
  • 58
  • +0/-0
Re: Lay-out (CSS and AJAX) not showing when reached from subdomain.
« Reply #2 on: October 10, 2007, 12:44:00 AM »
You were almost right, but thank you very much anyway, because of your post I started to look in the locations in the script.

In config-file there was a basedir-setting, and it was set to /bestand/. That is why it worked when I used /ip/bestand, but not when i used the subdomain, because bestand.url.nl/bestand didn't exist. When I set BASEDIR to '/', it worked fine. (Now for the same reason reversed, the direct IP-call doesn't work anymore, but that is not a problem!)

Thanks!