mercredi 4 mars 2015

Question regarding Wildcard Subdomains and WordPress

I am attempting to get Wildcard Subdomains working with a WordPress site that has had the multi-site option enabled but seem to be missing something, the instructions I have been following are here...



http://ift.tt/1w3Uqj9



The site I have set up is for testing purposes only, I added a user to DirectAdmin creating a site similar to http://ift.tt/1dTOlMV. I then installed WordPress in the main public_html folder there with the multi-site option enabled.



Next I created an A record for the site containing just an * and the ip address of the site, that part is working fine, I can perform an nslookup on test.subdomain.domain.com, or test2.subdomain.com and the correct IP address is returned.



I then added the line "ServerAlias *.|subdomain.domain.com|" to the Apache configuration and that is where I seem to be getting stuck. With that entry in place I went ahead and created a new site in WordPress named "brian.subdomain.domain.com" but when visiting that site I always end up at the Apache is functioning normally page instead of the proper site.



However, if I add the line "ServerAlias brian.subdomain.domain.com" directly instead of "ServerAlias *.|subdomain.domain.com|" that works perfectly. If necessary I guess I can just add every site I want to set up in WordPress separately but it would be easier if I could get the wildcard working.



Can any one provide any insight as to why adding "ServerAlias *.|subdomain.domain.com|" to the Apache config might not be working when adding the sites directly (without the wildcard) does?



Thanks in advance.





Question regarding Wildcard Subdomains and WordPress

Aucun commentaire:

Enregistrer un commentaire