• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Full Wildcard Domains in ServerAlias

D

davidcroda

Guest
I am using a Wordpress MU installation with the Wordpress MU Domain Mapping plugin. This allows you to map full domains, ie. www.myblogsite.com to a Wordpress MU blog.

The trouble is, it needs a full wildcard in the ServerAlias to do this. I have run into a few issues trying the usual work arounds.

Adding ServerAlias * to the vhost.conf works, but also breaks any virtual hosts loaded after this one. Since there is no way to control which virtual hosts are loaded first (except to force it to be last, addressed next), this is not a viable solution.

I know you can force configuration options to be loaded last by adding zzzz_ prefixed .conf files in the /etc/httpd/conf.d directory. Unfortunately, loading this directive last is also a problem, because the Default virtual host also contains a full wildcard ServerAlias. This means our wildcard is never hit.

So basically, what I need is either:

A) A way to ensure my Wildcard virtual host is loaded last out of all of my added hosts, but BEFORE the default virtual host.
B) A way to disable the default virtual host so I can load my wildcard last.

Any ideas or suggestions out there?
 
Problem solved?

Hello David,
have you managed to solve the problem? I am facing the same situation (check my post here). Like you, I have not got any answer yet. Thought, maybe you already managed to solve the issue in another way or got any new ideas.
Regards
Michael
 
Back
Top