Timeline for Wordpress MU subdomain vhost
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 8, 2011 at 0:14 | comment | added | EAMann |
As I said in my comment to your original question, it would be smarter to have some sort of request process for domain mapping. Even just a box "map this domain to my site" would allow you to script changes to httpd.conf and add things dynamically.
|
|
Jun 8, 2011 at 0:09 | comment | added | xLRDxREVENGEx | @EAMann correct but since i will be allowing others to map domains in the feature i would really not like to have to add it all the time | |
Jun 7, 2011 at 20:35 | comment | added | EAMann |
If the vhost setup works, use that. To get your mapped domains to work with it, you need to list them in the ServerAlias part of the vhost declaration for WordPress.
|
|
Jun 7, 2011 at 19:32 | comment | added | John P Bloch | And the reason I keep saying it's not a question of getting WordPress to ignore your request, but rather a question of configuring your server correctly is that a correctly configured server wouldn't send requests to the wrong Virtual Host. WordPress is not meant to ignore any requests. It assumes the server is configured in such a way that all requests to WordPress are supposed to go there. | |
Jun 7, 2011 at 19:22 | comment | added | John P Bloch | Indeed. I updated my answer with more information. | |
Jun 7, 2011 at 19:20 | history | edited | John P Bloch | CC BY-SA 3.0 |
added 1336 characters in body
|
Jun 7, 2011 at 18:49 | comment | added | xLRDxREVENGEx | Ad far as I know its configured correctly | |
Jun 7, 2011 at 18:13 | comment | added | John P Bloch | It's not a question of getting WordPress to ignore your request. It's a question of configuring your server correctly. | |
Jun 7, 2011 at 17:01 | comment | added | xLRDxREVENGEx | Alright john. I have tried adding the .htaccess code but no luck. I just need WordPress to ignore one sub-domain thats it. Like i mentioned above when i use your setup it works but all my mapped domains go to the first listed vhost as it is considered default. But if i go after wp vhost then mapped domains go to there proper location but then i have problems with one sub-domain going to the WordPress installation and asking me to register since it is not in use. The directory for wp is /home/username/public_html/wp and the path for the subdomain is /home/username/public_html/subdomain , Thanks | |
Jun 7, 2011 at 14:30 | comment | added | John P Bloch | So here's what's happening. Any random domain routing to your server without a vhost declared will default to the first vhost defined in Apache. Period. Which means, for them to go to your WP install, it has to be first. But you have to set the subdomain first if you want to serve it out of a different directory tree. That's a real catch 22 there. I'll see if I can find a solution... | |
Jun 7, 2011 at 7:11 | comment | added | xLRDxREVENGEx | So i have tried this over and over still nothing. I know that this is only an issue with using a domain mapping plugin as soon as i load sub1.mydomain.com it loads the default directory. But as soon as i remove the entry in vhost everything works fine. | |
Jun 3, 2011 at 7:03 | comment | added | xLRDxREVENGEx | So i did the above which i have done before now it is a wordpress problem see updated question | |
Jun 3, 2011 at 0:07 | comment | added | John P Bloch | And, as always, make sure you restart apache after making any changes to the configuration. | |
Jun 3, 2011 at 0:04 | history | answered | John P Bloch | CC BY-SA 3.0 |