=== erichammond1 is now known as erichammond === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates [04:37] i see some images set up /etc/hosts like 127.0.0.1 domU-12-31-38-00-95-65.compute-1.internal localhost [04:37] localhost.localdomain [04:39] is this a good or bad practice? (as opposed to just1 27.0.0.1 localhost localhost.localdomain) === dendrobates is now known as dendro-afk [05:22] yeah the .internal address should be the internal 10. IP === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates [16:20] hello. anyone around? [16:21] no [16:21] well thats too bad. [16:22] I'm trying to setup a subdomain of my ec2 site, and this might be a #apache question [16:22] cool [16:22] any chance you'd be willing to help me out? [16:22] i think I have the virtualhost settings correct in the 000-default file [16:22] but its not working [16:22] enter #httpd and enter, NameVirtualHost [16:22] except I'm on webchat.freenode which they ban [16:23] really [16:23] yes. [16:23] so whats the prob [16:23] paste the config.. [16:23] well the vhost at least [16:24] ServerName ec2.amazonaws.com DocumentRoot /var/www ServerAlias qa.ec2.compute-1.amazonaws.com ServerName ec2.amazonaws.com DocumentRoot /var/www2 ServerAlias qa2.ec2.amazonaws.com [16:24] sorry it stripped the spacing out [16:25] and i did a crappy job and stripped the compute-1 from the 2nd entry [16:25] basically when I go to ec2.amazonaws.com it works fine(ccurrently pointed to /var/www) [16:25] but the subdomains don't seem to work at all [16:26] you own amazonaws.com ? [16:26] no [16:26] lol [16:27] i just stripped out our info from the file [16:27] before I pasted it in here [16:27] so you don't even know what the directives mean? [16:27] and you can't google? [16:27] i've tried googling [16:27] all you need is ServerName qa.ec2.compute-1.amazonaws.com [16:27] http://httpd.apache.org/docs/2.0/vhosts/examples.html#purename and http://www.howtoforge.com/forums/showthread.php?t=23 [16:27] no aliases [16:28] so just servername and docroot? [16:28] lemme try [16:28] i did not mention DocumentRoot. [16:28] how would it know where to get the data? [16:28] the first link you gave me doesn't even show using ServerAlias [16:29] DocumentRoot /var/ww [16:29] *w [16:29] you also shouldn't create /var/www2 :) [16:29] i'm using random dir names [16:29] obviously www2 is a crappy directory name [16:29] so anyway [16:30] as long as you have Listen 80 and NameVirtualHost *:80 [16:30] the solution i advised is the go [16:30] so like this [16:30] ServerName qa.ec2.compute-1.amazonaws.com DocumentRoot /var/www [16:30] ? [16:30] yeah [16:31] of course qa.ec2.compute-1.amazonaws.com is foobar [16:31] right i need to change it to our proper domain name [16:31] still doesn't work [16:31] still doesn't work aint going to help [16:31] a coworker said I should change my local hosts file [16:32] can you explain [16:32] which makes no sense to me. [16:32] 404's when I go to qa.ec2 [16:32] thats better [16:33] check the apache logs [16:33] first check the access log to ensure you are hitting the server [16:33] then the error log [16:33] also ensure the vhost configuration is correct in apachectl -S [16:34] neither apache or error have any info in there [16:35] if nothing in access log then you probably are not hitting the right server [16:35] check the server signature against curl http://localhost/ [16:35] but -S talks about compute-1.internal [16:35] so that would probably come back to dns [16:36] whereas the one I setup seems to point to amazaws.com ? [16:36] show me [16:36] computer-1.amazonaws.com that is [16:38] ok so you shouldn't be touching/changing the default vhost [16:38] you need to create new ones and then enable them with a2ensite [16:39] please don't pm me again [16:39] sorry [16:39] http://apache.pastebin.com/qfHn1w5A better? [16:40] ok so what i said above [16:40] you also don't need sudo for apache2ctl [16:41] and yes of course your dns and /etc/hosts needs to be correct subsequent to that === dendrobates is now known as dendro-afk [16:48] i'm about to go to bed [16:49] http://apache.pastebin.com/tbng2d6i [16:49] how about this now? [16:51] yeah but you still have one of them in /etc/apache2/sites-enabled/000-default [16:51] thus its default to the local fqdn [16:52] have one of what? [16:52] the vhosts [16:52] the vhost info? [16:52] oh ok [16:52] one sec [16:52] and qa.ec2-184-73-97-66.compute-1.amazonaws.com has to resolve to the client [16:53] you don't have authority on this domain so its either hijack in local dns or add to /etc/hosts [16:53] sorry, to the client = for the client [16:54] as in the computer the web browser is on [16:54] also on the server for local access [16:55] hrm [16:55] ok [16:55] damn [16:55] was hoping to avoid that [16:55] aws is not a dns provider [16:55] aaah ok [16:55] hrm [16:55] damn [16:55] non elastics IPs are also dynamic [16:56] and technically elastic IPs are not marked as static in the ip register [16:56] moral to the story, get dns [16:57] ok [16:57] thanks [16:57] np [16:58] oh but the public ip of the instance does not change in the instance lifetime [16:58] sidenote.. [17:06] im gone. [17:06] thanks for the help heh === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates === ajaya_ is now known as ajaya