Koozali.org: home of the SME Server

Host name (not virtualdomain) mapping to an application in /opt

Offline Ness

  • ****
  • 108
  • +0/-0
    • http://www.tapiochre.co.uk
Host name (not virtualdomain) mapping to an application in /opt
« on: September 23, 2008, 12:02:26 AM »
Hello

I've looked through numerous postings including http://wiki.contribs.org/Web_Application_Redirect_Tutorial but I don't believe I have found the solution to my question.

I have installed moodle onto my 7.3 server. It sits within /opt and now, in simple terms, I'd like to use the URL

"http://moodle.mydomain.com"

instead of

"http://www.mydomain.com/moodle"

Is this easy to do? Is it doable at all? Am I on the wrong plane of thought?

I'll stick with the latter if it is not a logical approach but would welcome direction on where to look for support on my requirement if it is!

Best wishes in advance,

Chris
Chris Elliott - SME Server user and helper

Offline dgs

  • ***
  • 63
  • +0/-0
Re: Host name (not virtualdomain) mapping to an application in /opt
« Reply #1 on: September 23, 2008, 12:36:13 AM »
What you need to do is have a DNS entry set for moodle.mydomain.com with who ever does your DNS. this will allow moodle.yourdomain.com to point to your server.

You also need to setup your server to point to the required /opt location for requests from moodle.yourdomain.com. Use either with a custom template or do things the easy way with the SME sitemaker contrib which creates the necessary templates for all the required appache configuration for you.
« Last Edit: September 23, 2008, 12:39:28 AM by dgs »

Offline Ness

  • ****
  • 108
  • +0/-0
    • http://www.tapiochre.co.uk
Re: Host name (not virtualdomain) mapping to an application in /opt
« Reply #2 on: September 23, 2008, 12:38:14 AM »
Thank you DGS.

I will do both and I wish you well.

Chris
Chris Elliott - SME Server user and helper