Napolitopia
New Home of the Narguls

Recent News

11.17.08 | Setting up a localhost subdomain in OS X Leopard (Made Easy)

Hello All, its been a while since I made an update and I am really only posting this because I keep forgetting what files to modify when I go to setup a new localhost subdomain.

So here it is..

Step 1) Setup your new subdomain path as a virtual directory in apache. This file lives at /etc/apache2/other/httpd-vhosts.conf

Add an entry..

    DocumentRoot "/wwwroot/yoursubdomainpath/"
    ServerName yoursubdomain.localhost


This should immediately follow the virtual host setup for localhost.

Step 2) Add an entry to your hosts file located at /etc/hosts

It probably looks like this to start.

##
# 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

Just add this line to the end of the file.. It is important to know that it is tab delimited not spaces.

127.0.0.1   yoursubdomain.localhost

The only other thing you may need to do if it wasn't already done is uncomment this line in your /etc/apache2/httpd.conf file

Include /private/etc/apache2/extra/httpd-vhosts.conf

It lives around line 461

Thats it! Restart apache and yoursubdomain.local host now works.

More News:

04.11.08 | Revenge!!!

04.04.08 | Breaking Alert!!!

04.04.08 | Treason...

Todays Narguls

Coming Soon!

Featured Finds

Page: 1[2][3][4]

Web Finds

Extras

 
*Disclaimer* | The views expressed on this site are not necessarily the views held by its owner or affiliates. Link submissions are carefully monitored and reviewed before posting to ensure no elicit, offensive or pornographic material has will be connected to this site. In the even that a link becomes one of the aforementioned it will be expressly removed.