Page 1 of 1

How do I host ####.com using Raspberry Pi?

Posted: Tue Sep 24, 2013 7:41 pm
by Deadbatteries
I want to make http://www.####.com on raspberry pi. How do I create one?

Re: How do I host ####.com using Raspberry Pi?

Posted: Tue Sep 24, 2013 9:53 pm
by AndrewS
You can't, '#' isn't a valid character in domain names ;-)

On a more serious note, have a look at http://elinux.org/RPi_Tutorials

Re: How do I host ####.com using Raspberry Pi?

Posted: Tue Sep 24, 2013 10:20 pm
by pluggy
If you mean you want to host a website on a Pi, its exactly the same process as for any other Linux computer, but much of whats involved is nothing to do with the computer. Its more about the connection than the computer. You stuff apache/ lighttpd/nginx/some other web server software on the Pi/computer write some content for it and then decide how you're you're connecting it to the internet and sort out DNS to make it visible.

To be brutally honest (from someone who has a Pi hosting a website) its a lot less hassle to throw a small amount of money a month to one of the myriad of hosting companies out there. A cheap, bottom of the range, shared a million ways hosting package is going to outperform a Pi doing it.

Re: How do I host ####.com using Raspberry Pi?

Posted: Wed Sep 25, 2013 3:45 am
by WebPi
You need to set up an account with a dynamic DNS company and use that to forward your domain name to your IP address. Then you need to set up port forwarding on your router to send HTTP requests to your Pi.

If you use Wordpress, you'll need to install a page caching plugin to speed up page load times. If your site is just a bunch of HTML pages, and you don't get much traffic, then performance should be ok.

Re: How do I host ####.com using Raspberry Pi?

Posted: Wed Sep 25, 2013 5:03 am
by ramstrong
Can you drop some names? I've been looking for one and has been unable to find an affordable one without being attached to their "easy-to-use" graphical web builder, when all I'm looking for is a simple ftp option.

Also, I forget where I found it, but I believe that there is at least one company who specializes in hosting servers using (customer owned) Raspberry Pis.

Re: How do I host ####.com using Raspberry Pi?

Posted: Wed Sep 25, 2013 5:52 am
by Hove
ramstrong wrote:Can you drop some names? I've been looking for one and has been unable to find an affordable one without being attached to their "easy-to-use" graphical web builder, when all I'm looking for is a simple ftp option.

Also, I forget where I found it, but I believe that there is at least one company who specializes in hosting servers using (customer owned) Raspberry Pis.
I've used catalyst2.com (http://www.catalyst2.com/web-hosting/linux) for a decade for a variety of sites and still have 3 sites with them. Their shared Linux "Mega Deal" package is £11.99 a year, and they're a good bunch of guys. Their service is reliable and their support is great - they even put up with some of the stupid questions I ask them when my brain isn't thinking straight!

Here's the forum link to the Brighton guy looking to do RPi hosting with customers RPi's http://www.raspberrypi.org/phpBB3/viewt ... 67#p423567

Re: How do I host ####.com using Raspberry Pi?

Posted: Wed Sep 25, 2013 9:27 am
by recantha2
In terms of self-hosting with dynamic DNS, take a look at: http://rpidns.co.uk/
Ryan Walmsley, of rastrack.co.uk fame, is currently setting it up and will be looking for beta testers soon. You can get him on twitter @ryanteck

Re: How do I host ####.com using Raspberry Pi?

Posted: Wed Sep 25, 2013 4:58 pm
by Lob0426
This how I have set up a web server with a Raspberry Pi.

You will need to install Apache2, NGINX, Lightttpd. These will all let you have a basic static HTML page. You will have to study what type of web site you need or want to decide what you need to install.

Wired connection:
Login to your Raspbserry Pi. Use raspi-config to rename your RasPi. Name should reflect that it is your web server.
Run ifconfig. Find your MAC address.

Login to your router. Find where you can setup a DHCP reservation. This is so you can set a static IP for your RasPi. It is done differently on different routers. This is what you need the MAC address for and you will need to enter its name also.

You need to set port forwarding at the IP on your RasPi server to port 80. Assuming your ISP does not block port 80. Otherwise you can set it to say, port 70. Then you will have to specify that port for people to get to your site.

Example if port 80 blocked:
My site is at 'rich1.dyndns.tv' that is all that is needed to get to my site.
If port 80 were blocked I would need to use
rich1.dyndns.tv:70
That tells it to enter at port 70.

Then you need to find a DNS service. I use DYNDNS. $20 a year. The domain you create at the DNS service you choose is where your web site is going to to come up at.

With a wired connection to your router you should not need to set anything on the RasPi itself, except the new name.