• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question to Subdomain / default-Page / vhost.conf

M

mike2006

Guest
Hello,

my external NS gives all requests for domain1.tld via A-Record and *-A-Record to my webserver (config look footer).

Via Plesk I create sub1.domain1.tld.

http://domain1.tld --> Maincontent: ok
http://www.domain1.tld --> Maincontent: ok

http://sub1.domain1.tld --> Subdomaincontent: ok
http://ANYTHING.sub1.domain1.tld --> default Plesk page: NOT ok

http://NotAvail.domain1.tld --> default Plesk page: NOT ok

I want that alle not via Plesk defined subdomains are directed to the main content (to domain1.tld).

And also that all not existing Subdomains for existing subdomain (NOTEXIST.sub1.domain1.tld) are directed to the subdomain-content.

My solutions (not working):

1. editing httpd.conf
nothing changed

2. creating vhost.conf in domain's /conf-folder:
DomainAlias *.domain1.tld

also the via Plesk registered subdomains go to the mainpage, not only the NONEXIST.domain1.tld.

3. edit the http.include
IT works, but Plesk overwrites this files

I think my request is absolute normal like in daily-usage. Which files I had to edit that my configuration works ?

I restart webserver and apache after changing/editing files.

Here I found no solution for my prob, but a lot of people have the same probs.

Thanks for any hint what I can try.

Mike
 
Back
Top