What is OmniNerd?

Welcome! OmniNerd's content is generated by you, the reader. Through voting and moderation we strive to highlight the nerdiest of what's around and provide content that's a little more thought provoking than other sites.

Submit New Content

Voting Booth

Choosing Sarah Palin as a Vice Presidential running mate was?

33 votes, 5 comments
5
Nerd-Its
+ -

Serving a Website from a Home Network on Mac OS X

Layout article by markmcb and Brandon on 12 March 2007, tagged as internetnetworking, computing, apple, and os x

Got a great idea for a website? Check.
Got a sweet Mac? Check.
Got the know-how? Not so much...

Never fear, friends, OmniNerd's team of well-paid geniuses have heard your plight. With this article you can take webhosting on your Apple all the way from the initial baby-steps of setting-up your internal server to dominating the World Wide Web from the comfort of your home. Don't pay for your webhosting; do it yourself. (And when you're finished, remember to give OmniNerd a shout-out for getting you there.)

Star This to Save in Your Profile Favorite
Thread parent sort order:
Highest Voted : Lowest Voted : Oldest : Newest
Thread verbosity:
Expand All : Minimize Replies to Comments

I received the following inquiry via an O-Nerd message.

-----

Your article is a great overview of the subject, however, I am having some problems and hope you can help.

I cannot seem to get VirtualHost access to my sites from outside my router. You may or may not be familiar with the Safecom 5 port modem router (neither am i for that matter) or DNS settings. I cannot seem to get the settings of my router to allow access to the new location of my site (/home/root1 and /home/root2). I suspect it has something to do with the DNS setiings of my domains and the router setrtings. An age of fiddling has not produced a positive outcome.

I have a static ip provided by my ISP

I have two domains: registered with 123-reg.co.uk and EuroDNS.com. Both supply a DNS control panel to that allows web forwarding and DNS control (not that I am sure how this works).

My http.conf file says:

NameVirtualHost *:80

VirtualHost example:

Almost any Apache directive may go into a VirtualHost container.

The first VirtualHost section is used for requests without a known

server name.

<VirtualHost *:80>

ServerAdmin webmaster@dummy-host.example.com

DocumentRoot /www/docs/dummy-host.example.com

ServerName dummy-host.example.com

ErrorLog logs/dummy-host.example.com-error_log

CustomLog logs/dummy-host.example.com-access_log common

</VirtualHost>

<VirtualHost *:80>

ServerAdmin webmaster@cantoenvivo.es

DocumentRoot /www/cantoenvivo

ServerName www.cantoenvivo.es

ServerAlias cantoenvivo.es

</VirtualHost>

<VirtualHost *:80>

ServerAdmin webmaster@isinglive.co.uk

DocumentRoot /www/isinglive

ServerName www.isinglive.co.uk

ServerAlias isinglive.co.uk

</VirtualHost>

My Hosts file says:

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

127.0.0.1 cantoenvivo.es

127.0.0.1 isinglive.co.uk

255.255.255.255 broadcasthost

1 localhost

Everything seems to work ok inside my machine (both sites display ok - I have not tested anything else) but I cannot get external access to my sites through the router. Access worked fine when the sites were served from Libtary/WebServer/Ducuments/isinglive and .../cantoenvivo. However the server was unable to access certain files from subfolders and the error logs would report errors. So I suspect tat the problem is woith the router and the web URL forwarding settings. Can you help?

Brgds Rups