<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to use Apache Virtual Hosts over a local network with MAMP</title>
	<atom:link href="http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/</link>
	<description>Notes on Ecommerce Web Development</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:02:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/comment-page-1/#comment-2476</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Tue, 26 Jul 2011 09:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=324#comment-2476</guid>
		<description>Check if you can access the VM on port 80 by runnign this in a terminal:
telnet 192.168.1.111 80

If that does not connect, then I&#039;d check for firewalls on CentOS, check Apache is listening on the right interface not just localhost.

If you _can_ connect, then I&#039;d try and look for errors in Apache logs. Try access just the default &#039;It Works&#039; page etc.</description>
		<content:encoded><![CDATA[<p>Check if you can access the VM on port 80 by runnign this in a terminal:<br />
telnet 192.168.1.111 80</p>
<p>If that does not connect, then I&#8217;d check for firewalls on CentOS, check Apache is listening on the right interface not just localhost.</p>
<p>If you _can_ connect, then I&#8217;d try and look for errors in Apache logs. Try access just the default &#8216;It Works&#8217; page etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dcolumbus</title>
		<link>http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/comment-page-1/#comment-2468</link>
		<dc:creator>dcolumbus</dc:creator>
		<pubDate>Sun, 24 Jul 2011 04:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=324#comment-2468</guid>
		<description>Hey Ashley,

Thanks for the post ... curious if you&#039;d be able to help me.

I&#039;ve created a VM of CentOS on my MacBook Pro with the ethernet set to Bridged. So, the VM has it&#039;s own static IP address of 192.168.1.111

Within the &quot;hosts&quot; file on the VM, I&#039;ve got:

127.0.0.1 dev.example.com

Within the &quot;hosts&quot; file on my MacBook Pro (the host machine), I&#039;ve got:

192.168.1.111 dev.example.com

Now the site works fine from within the VM, but doesn&#039;t pull up anything from the host MacBook Pro...

I&#039;ve spent literally 2 days trying to setup this stupid network and I have no idea what the issue is! :X</description>
		<content:encoded><![CDATA[<p>Hey Ashley,</p>
<p>Thanks for the post &#8230; curious if you&#8217;d be able to help me.</p>
<p>I&#8217;ve created a VM of CentOS on my MacBook Pro with the ethernet set to Bridged. So, the VM has it&#8217;s own static IP address of 192.168.1.111</p>
<p>Within the &#8220;hosts&#8221; file on the VM, I&#8217;ve got:</p>
<p>127.0.0.1 dev.example.com</p>
<p>Within the &#8220;hosts&#8221; file on my MacBook Pro (the host machine), I&#8217;ve got:</p>
<p>192.168.1.111 dev.example.com</p>
<p>Now the site works fine from within the VM, but doesn&#8217;t pull up anything from the host MacBook Pro&#8230;</p>
<p>I&#8217;ve spent literally 2 days trying to setup this stupid network and I have no idea what the issue is! :X</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/comment-page-1/#comment-2146</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Sun, 13 Feb 2011 17:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=324#comment-2146</guid>
		<description>Hi, Eric
Not sure if it&#039;s a copy paste issue, but your other box hosts file has: 
&lt;code&gt;192.168.1.156 jennylynne.net&lt;/code&gt;

That needs to match the &lt;code&gt;ServerName&lt;/code&gt; in the Apache config, which is &lt;code&gt;.dev&lt;/code&gt;. let me know if that was the issue.</description>
		<content:encoded><![CDATA[<p>Hi, Eric<br />
Not sure if it&#8217;s a copy paste issue, but your other box hosts file has:<br />
<code>192.168.1.156 jennylynne.net</code></p>
<p>That needs to match the <code>ServerName</code> in the Apache config, which is <code>.dev</code>. let me know if that was the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Ritchey</title>
		<link>http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/comment-page-1/#comment-2144</link>
		<dc:creator>Eric Ritchey</dc:creator>
		<pubDate>Sun, 13 Feb 2011 03:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=324#comment-2144</guid>
		<description>Hey Ashley -

Thanks for the writeup.. I&#039;m in the middle of trying to accomplish exactly this.

Here&#039;s my setup:
MBP + MAMP + VirtualHost = My development environment

I want to view the websites I&#039;m currently developing from anywhere on my local network (exactly what this article lays out), but I&#039;m having some trouble here... :-/

This is my vhost file on my development box:
&lt;code&gt;
# Created Wed Feb  9 23:13:24 PST 2011
&lt;VirtualHost 127.0.0.1:80&gt;
  DocumentRoot /Applications/MAMP/htdocs/jennylynne
  ServerName jennylynne.dev

  ScriptAlias /cgi-bin /Applications/MAMP/htdocs/jennylynne/cgi-bin

&lt;Directory /Applications/MAMP/htdocs/jennylynne&gt;
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
  &lt;/Directory&gt;
&lt;/VirtualHost&gt;

&lt;/code&gt;
Here&#039;s my /etc/hosts file from my development box:
&lt;code&gt;
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##

127.0.0.1 localhost
255.255.255.255	broadcasthost
::1         localhost 
fe80::1%lo0	localhost

127.0.0.1	jennylynne.dev
&lt;/code&gt;
Here&#039;s my /etc/hosts file from the computer on the same local network:
&lt;code&gt;
192.168.1.156 jennylynne.net
&lt;/code&gt;

The problem is that I simply get a directory listing of my /Applications/MAMP/htdocs folder when loading up http://jennylynne.dev on my &quot;local network&quot; computer, whereas when i go to the same URL on my dev box, the site loads up fine. any thoughts?

P.S. - I&#039;ve verified the IP address also..

</description>
		<content:encoded><![CDATA[<p>Hey Ashley -</p>
<p>Thanks for the writeup.. I&#8217;m in the middle of trying to accomplish exactly this.</p>
<p>Here&#8217;s my setup:<br />
MBP + MAMP + VirtualHost = My development environment</p>
<p>I want to view the websites I&#8217;m currently developing from anywhere on my local network (exactly what this article lays out), but I&#8217;m having some trouble here&#8230; :-/</p>
<p>This is my vhost file on my development box:<br />
<code><br />
# Created Wed Feb  9 23:13:24 PST 2011<br />
&lt;VirtualHost 127.0.0.1:80&gt;<br />
  DocumentRoot /Applications/MAMP/htdocs/jennylynne<br />
  ServerName jennylynne.dev</p>
<p>  ScriptAlias /cgi-bin /Applications/MAMP/htdocs/jennylynne/cgi-bin</p>
<p>&lt;Directory /Applications/MAMP/htdocs/jennylynne&gt;<br />
    Options All<br />
    AllowOverride All<br />
    Order allow,deny<br />
    Allow from all<br />
  &lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p></code><br />
Here&#8217;s my /etc/hosts file from my development box:<br />
<code><br />
##<br />
# Host Database<br />
#<br />
# localhost is used to configure the loopback interface<br />
# when the system is booting.  Do not change this entry.<br />
##</p>
<p>127.0.0.1 localhost<br />
255.255.255.255	broadcasthost<br />
::1         localhost<br />
fe80::1%lo0	localhost</p>
<p>127.0.0.1	jennylynne.dev<br />
</code><br />
Here&#8217;s my /etc/hosts file from the computer on the same local network:<br />
<code><br />
192.168.1.156 jennylynne.net<br />
</code></p>
<p>The problem is that I simply get a directory listing of my /Applications/MAMP/htdocs folder when loading up <a href="http://jennylynne.dev" rel="nofollow">http://jennylynne.dev</a> on my &#8220;local network&#8221; computer, whereas when i go to the same URL on my dev box, the site loads up fine. any thoughts?</p>
<p>P.S. &#8211; I&#8217;ve verified the IP address also..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/comment-page-1/#comment-697</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Wed, 11 Nov 2009 10:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=324#comment-697</guid>
		<description>Hi, You can.
I think &lt;a href=&quot;http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/&quot; rel=&quot;nofollow&quot;&gt;this post on using Magento, MAMP and virtual hosts over a network&lt;/a&gt; is what you need? Is that what you were trying to do?</description>
		<content:encoded><![CDATA[<p>Hi, You can.<br />
I think <a href="http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/" rel="nofollow">this post on using Magento, MAMP and virtual hosts over a network</a> is what you need? Is that what you were trying to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Stewart</title>
		<link>http://www.aschroder.com/2009/04/how-to-use-apache-virtual-hosts-over-a-local-network-with-mamp/comment-page-1/#comment-693</link>
		<dc:creator>Dave Stewart</dc:creator>
		<pubDate>Fri, 06 Nov 2009 15:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=324#comment-693</guid>
		<description>Interesting post!

What would I do to connect to a folder on the remote machine, where my virtual host is set up? Can I do that?

Thanks</description>
		<content:encoded><![CDATA[<p>Interesting post!</p>
<p>What would I do to connect to a folder on the remote machine, where my virtual host is set up? Can I do that?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 1/10 queries in 0.065 seconds using apc
Object Caching 291/292 objects using apc
Content Delivery Network via cdn.aschroder.com

Served from: www.aschroder.com @ 2012-02-08 03:54:39 -->
