automatic temporary URL for new sites

This is not heavly tested, but, it's an hack to have an temporary URL for a new site/domain.

Please, ready this:

1) Tested on multi domain setup
2) server hosting sites have the name - in this example: isp01-ww1.myhost.com
3) You need to alter the DNS provider for myhost.com
4) Don't blame me for problens
5) All temporary site URL will become yoursite.vsite.isp01-ww1.myhost.com in this example

Let's go:

1) add in you master site (or hosting site) DNS an entry like this:

Code:

*.vsite.isp01-ww1.myhost Alias (CNAME) Default isp01-ww1.myhost.

or

Code:

*.vsite.isp01-ww1.myhost A Default 1.2.3.4

2) edit "/usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php" - in the server where the apache server hosting is running

and this allow your client to access an new domain/site in ISPCONFIG without need to change the DNS pointing for the new site/domain. This is done using URL www.newdomain.com.vsite.isp01-ww1.myhost.com, as in case of this example.

TODO;

1) Display in cleint area where to access new site using the temporary URL

Been playing around with this solution but I can't really get it to work, where the solution from Radim_h's friend works fine. I am also wondering if this would be possible to set as a checkbox so we can remove this when not needed anymore?

In current svn (upcoming 3.0.5 release) there is a feature for this.
You can configure a server alias for new vhost in the server config for each server.
It will be under system -> server config -> {choose server} -> tab "web" -> auto alias.

A little bit more infos about this option in ISPConfig 3.0.5 would be nice.
1. What exactly do i need to entry in this field?
2. Is the alias only create for new website or also for the existing ones?
3. If i use the Placeholder [website_domain] or [website_id] will the alias also be update if the website domain name or website id changes?

If you go in to Server -> Server Config -> Your server -> WEB, you can see the URL and edit it in Website auto alias. Personally I've set it to [website_domain].testserver.designfyn.dk. That means the URL will be domain.tdl.testserver.designfyn.dk