Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Configuring Multiple Web Sites with single IP on web server running Snow Leopard
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Jarvis" data-source="post: 1014618" data-attributes="member: 135936"><p>I looked more closely and it looks like the link I posted previously applies to the server edition of OS X. The regular version requires the same steps, but is more manual. You need to manually edit the httpd.conf file (in /private/etc/apache2) by uncommenting line 465: "Include /private/etc/apache2/extra/httpd-vhosts.conf". Then add virtual host information to vhost.conf (in /private/etc/apache2/extra). Here's an example of virtual host info copied from Apache's website:</p><p></p><p><VirtualHost 10.1.2.3></p><p>ServerAdmin <a href="mailto:webmaster@host.foo.com">webmaster@host.foo.com</a></p><p>DocumentRoot /www/docs/host.foo.com</p><p>ServerName host.foo.com</p><p>ErrorLog logs/host.foo.com-error_log</p><p>TransferLog logs/host.foo.com-access_log</p><p></VirtualHost></p><p></p><p>Restart Apache by turning web sharing on/off in System Prefs and it should go. </p><p></p><p>This is to add multiple domains behind the same IP, you also have the option to create multiple IPs (though I don't know how that works). Also, this is for Snow Leopard (and possibly Leopard), if you're running a slightly older version I think the only difference is that vhost.conf is included in httpd.conf.</p><p></p><p>Let me know if you have any luck!</p></blockquote><p></p>
[QUOTE="Jarvis, post: 1014618, member: 135936"] I looked more closely and it looks like the link I posted previously applies to the server edition of OS X. The regular version requires the same steps, but is more manual. You need to manually edit the httpd.conf file (in /private/etc/apache2) by uncommenting line 465: "Include /private/etc/apache2/extra/httpd-vhosts.conf". Then add virtual host information to vhost.conf (in /private/etc/apache2/extra). Here's an example of virtual host info copied from Apache's website: <VirtualHost 10.1.2.3> ServerAdmin [email]webmaster@host.foo.com[/email] DocumentRoot /www/docs/host.foo.com ServerName host.foo.com ErrorLog logs/host.foo.com-error_log TransferLog logs/host.foo.com-access_log </VirtualHost> Restart Apache by turning web sharing on/off in System Prefs and it should go. This is to add multiple domains behind the same IP, you also have the option to create multiple IPs (though I don't know how that works). Also, this is for Snow Leopard (and possibly Leopard), if you're running a slightly older version I think the only difference is that vhost.conf is included in httpd.conf. Let me know if you have any luck! [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Configuring Multiple Web Sites with single IP on web server running Snow Leopard
Top