Wildcard subdomains
Wildcard subdomains
hello,
i am very satisfied with vesta.
Burt a have a question:
how can a assign wildcard-Ssubdomains?
an alias line '*.mydomain' not works!
i needed, because our clients have to call our site with her partner-ID
example: 344.mydomain.com
naturally i can't create a individual subdomain for each partner!
the A-records for '*.domain' arr defindes correctly
thanks
hallo
Ich bin ja mit Vesta rundum zufieden.
Aber habe eine Frage:
Wie lege ich zu einer Domain "Wildcard"-Subdomains an.
Ein Alias "*.domain" wie http://www.domain functioniert nicht.
Grund, Partner rufen eine domain mit partnerid.domain auf.
und ich kann nicht fuer alle Parnter eine eigene Subdomain anlegen.
Die A-Records fuer '^*.domain sind korrekt definiert
Gruss
i am very satisfied with vesta.
Burt a have a question:
how can a assign wildcard-Ssubdomains?
an alias line '*.mydomain' not works!
i needed, because our clients have to call our site with her partner-ID
example: 344.mydomain.com
naturally i can't create a individual subdomain for each partner!
the A-records for '*.domain' arr defindes correctly
thanks
hallo
Ich bin ja mit Vesta rundum zufieden.
Aber habe eine Frage:
Wie lege ich zu einer Domain "Wildcard"-Subdomains an.
Ein Alias "*.domain" wie http://www.domain functioniert nicht.
Grund, Partner rufen eine domain mit partnerid.domain auf.
und ich kann nicht fuer alle Parnter eine eigene Subdomain anlegen.
Die A-Records fuer '^*.domain sind korrekt definiert
Gruss
Re: Wildcard subdomains
In default way answer will be no ^_^
But you can use non-default way and wildcard subdomain for apache2:
and nginx can do it too:
PS: It's examples, not tested ;-)
But you can use non-default way and wildcard subdomain for apache2:
Code: Select all
<VirtualHost *:80>
DocumentRoot /var/www/wildcard
ServerName other.example.com
ServerAlias *.example.com
</VirtualHost>
Code: Select all
server {
server_name example.com www.example.com;
root www/pub;
}
server {
server_name ~^(.*)\.example\.com$ ;
root www/pub/$1;
}
Re: Wildcard subdomains
How hard would this be to add to a 'wish' list for the panel? This is one of the cases of 'everyone else' does it.
Re: Wildcard subdomains
Soon we re-open bugtracker and you can add new idea -> https://bugs.vestacp.com/Katronix wrote:How hard would this be to add to a 'wish' list for the panel? This is one of the cases of 'everyone else' does it.
Re: Wildcard subdomains
Seems the bug tracker is closed.skurudo wrote:Soon we re-open bugtracker and you can add new idea -> https://bugs.vestacp.com/
Re: Wildcard subdomains
Yeah, wait a little longer and it'll be open.Katronix wrote:Seems the bug tracker is closed.
We transfer content now, it's manual work unfortunately.
Re: Wildcard subdomains
Just to confirm that skurudo's example works :)
Re: Wildcard subdomains
thanks dpeca for testing those ;-)