• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Wildcard subdomains

J

jpboyce

Guest
Previously I had a site setup by itself (not under plesk) which would allow members to input the URL xxx.domain.com where xxx was their member ID. The default.asp page would take the xxx out of the URL and then redirect them to their record.

After an OS reload, I now have the domain/site setup under Plesk. However, this functionality seems to no longer work. When I try accessing xxx.domain.com, I get a "400 - Bad request" error.

Does anyone have any suggestions on if it's possible to get this working? Thanks.
 
hey jpboyce

I think this might work for you

in your domain, access the DNS entries setup
add a CNAME record like this:

*.domain.com
pointing to domain.com

this means that if you type hskajdsoa.domain.com will open domain.com
then you can use your asp script to get the request adress

I'm not quite sure, but it's worth trying :)

hope it helps

Pedro Padron
 
Back
Top