<div dir="ltr"><div class="gmail_quote">On Tue, Dec 8, 2009 at 9:26 PM, Adam Chlipala <span dir="ltr"><<a href="mailto:adamc@hcoop.net">adamc@hcoop.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Michael Shynar wrote:</div><div class="im">> I am experiencing two problems:<br>
> 1. I can't get <a href="http://growing-software.shmichael.com" target="_blank">growing-software.shmichael.com</a><br>
</div>> <<a href="http://growing-software.shmichael.com" target="_blank">http://growing-software.shmichael.com</a>> to work.<br>
<br>
[serverAlias] won't add a DNS mapping, and no other part of your config<br>
is adding a DNS mapping for this host. Try adding this line right<br>
before the [web] line:<br>
dnsIP "host" web_ip;<br></blockquote><div><br>That was indeed the issue. I added this as an example to the wiki at <a href="http://wiki.hcoop.net/DomTool/Examples#SubdomainRedirection">http://wiki.hcoop.net/DomTool/Examples#SubdomainRedirection</a><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> 2. <a href="http://www.shmichael.com" target="_blank">www.shmichael.com</a> <<a href="http://www.shmichael.com" target="_blank">http://www.shmichael.com</a>> gets rewritten as<br>
> <a href="http://shmichael.com" target="_blank">shmichael.com</a> <<a href="http://shmichael.com" target="_blank">http://shmichael.com</a>> (I want an alias behaviour, not a<br>
> rewrite).<br>
<br>
I ran 'domtool-admin describe <a href="http://shmichael.com" target="_blank">shmichael.com</a>', and I don't see anything<br>
there that would cause the rewrite. I'm not sure about the behavior of<br>
the Apache 'RewriteRule' that appears, which doesn't mention a host<br>
explicitly, but it would be weird if it automatically rewrote to a<br>
location at a host besides the main name for this vhost. My best guess<br>
is that WordPress itself is performing the rewrite. I don't have<br>
experience with WordPress, so I don't have any further advice to offer.<br></blockquote><div> <br>I disabled the wordpress rewrite rules, but still experience the same phenomena.<br>Here's the Apache vhost configuration generated (no rewrite rules this time):<br>
--------------------------------------------------------------<br>Web vhost <a href="http://www.shmichael.com">www.shmichael.com</a>: <br>--------------------------------------------------------------<br>
<br># Owner: shmichael<br><VirtualHost <a href="http://69.90.123.68:80">69.90.123.68:80</a>><br> ErrorLog /var/log/apache2/user/s/sh/shmichael/apache/log/mire/<a href="http://www.shmichael.com/error.log">www.shmichael.com/error.log</a><br>
CustomLog /var/log/apache2/user/s/sh/shmichael/apache/log/mire/<a href="http://www.shmichael.com/access.log">www.shmichael.com/access.log</a> combined<br> ServerName <a href="http://www.shmichael.com">www.shmichael.com</a> <br>
SuexecUserGroup shmichael nogroup <br> suPHP_UserGroup shmichael nogroup <br>
WaklogEnabled on <br> WaklogLocationPrincipal shmichael/<a href="mailto:daemon@HCOOP.NET">daemon@HCOOP.NET</a> /etc/keytabs/user.daemon/shmichael <br>
DAVLockDB /var/lock/apache2/dav/shmichael/DAVLock <br> DocumentRoot /afs/<a href="http://hcoop.net/user/s/sh/shmichael/wordpress">hcoop.net/user/s/sh/shmichael/wordpress</a> <br>
ServerAdmin <a href="mailto:shmichael@hcoop.net">shmichael@hcoop.net</a> <br> ServerAlias <a href="http://shmichael.com">shmichael.com</a> <br>
ServerAlias <a href="http://growing-software.shmichael.com">growing-software.shmichael.com</a> <br></VirtualHost> <br><br>I will leave the wordpress commented out for the next day or two, to allow any helpful admins to look into the issue.<br>
</div></div></div>