Virtual Hosts
For work-related web sites a private web site can be hosted on one of the departmental web servers. The technique that is being used is Apache Virtual Host.
There are 2 alternatives besides using your own private web site:
- you can put your web site somewhere in the (existing) web-tree of your research group ... that certainly is by far easier and helps to put your research group in the spotlight, even in the context of your web pages
- you can host your web site on the KU Leuven Web Management System (WMS). If you want/need KU Leuven (web)style, this WMS system surely is the easiest/fastest way to develop a web site
Both alternatives above assume that you are happy with an URL of the form something.cs.kuleuven.be or something.kuleuven.be - if this is not possible/desirable, please read on - that is what this page is about.
Web site / virtual host details
A virtual host consists of 3 elements:
- one (or more) DNS name(s) ... e.g. www.mysite.be
- a (single) directory ... e.g. /cw/vwww/mysite.be/
- apache configuration
We will take care of the directory and apache configuration, but you must take care of the DNS name(s) yourself.
It is of course best that you consult with us before you have started the process of getting the name/domain you want !
DNS domain names
To have a DNS name of your liking, you should first get the (rights of/on) the domain ... you can do so with any Domain Registrar that you like, but do notice that the KU Leuven is such a Registrar itself and therefore most probably the best/easiest way to get a domain. There are some guidelines about it, though.
When selecting a specific Domain Registrar, pay attention to how easy it is to change the DNS information of your domain ... some have a web-based interface, others only accept change-requests via e-mail.
Also do notice that if you ever want to use https on your domain (which should be the default nowadays!) and if you want to use the (free) KU Leuven Certificate service, the Organization that is registered with your domain name must specify the KU Leuven ... if you intend to use https it is best to consult with us before starting the process of registering because we might have to consult with the KU Leuven certificate authority for the exact rules about that.
If you do not want to use this (free) KU Leuven Certificate service (or cannot use it because of the domain name registration), you can use other certificate services (like letsencrypt).
So basically it comes down to this choice:
- either you want use the (free) KU Leuven Certificate service and then you are better of also using the KU Leuven Registrar service
- or you use another registrar service and then you will also have to use another certificate service
Your web site / virtual host names
Once you have the right to use a specific domain, you must configure it such that the name you would like to use to refer to your web site (e.g. www.mysite.be) is a CNAME to the real web server it is hosted on (e.g. www.cs.kuleuven.be.)
- There are other techniques, but the CNAME approach is probably the easiest way because we can change our web server's address without disturbing CNAMEs that refer to it.
- To have the domain name itself refer to your web site (e.g. http://mysite.be/) you cannot use the CNAME technique, but you must give the domain itself an A record to our web server ... you can find the A record of our web server with the usual DNS query-tools like dig, host, nslookup, ...
- Do notice that if you use an A record, you (and you alone) are responsible to keep it up to date ... from time to time we will change our web server (because of hard- or soft-ware upgrades) and in doing so we can change its A record.
You can have several names in your domain referring to your web site ... moreover it is perfectly possible to have several domains all referring to the same web site: www.mysite.be and www.my-site.be can all refer to the same virtual host on the departmental web server.
Once you have your DNS in the way you like it, just let us/helpdesk know that you want/need a new virtual host and most important, let us know all the names that you want to use to refer to that virtual host / web site.
Helpdesk will then create the apache configuration and the directory where you can put the files for your web site in.
Because both web server hardware and software has to be upgraded from time to time, we will not just use a single name for your web site, but we will (at least as additional web site aliases) configure your web site with:
- www.yourdomain.be
- localname.cs.kuleuven.be
- localname1.cs.kuleuven.be
- localname2.cs.kuleuven.be
In this way:
- the web site is available using its primary name (for which you pay) - this is the default URL that can be published
- the web site can be kept online even after your domain name registration expires - using the local name
- the web site can be migrated to a different server and during the migration be tested to see if everything works on that new server - using the 2 secondary local names that distinguish between old and new server

