Deadbatteries
Posts: 4
Joined: Tue Jul 23, 2013 5:37 pm

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

Tue Sep 24, 2013 7:41 pm

I want to make http://www.####.com on raspberry pi. How do I create one?

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

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

Tue Sep 24, 2013 9:53 pm

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

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

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

Tue Sep 24, 2013 10:20 pm

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.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

WebPi
Posts: 262
Joined: Wed Apr 10, 2013 6:47 pm
Location: Birmingham, UK
Contact: Website

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

Wed Sep 25, 2013 3:45 am

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.
raspberrywebserver.com - Raspberry Pi tutorials
LinuxWebServers.net - Linux Web Server tutorials and examples
pyplate.com - Python web publishing tool

ramstrong
Posts: 36
Joined: Thu Aug 15, 2013 11:14 pm
Contact: Website

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

Wed Sep 25, 2013 5:03 am

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.
Raspberry Pi Journal: http://simpletongeek.blogspot.com/p/raspberry-pi-journal-directory_4.html

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

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

Wed Sep 25, 2013 5:52 am

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
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

User avatar
recantha2
Posts: 285
Joined: Wed Nov 14, 2012 9:34 am
Location: Potton, Bedfordshire
Contact: Website

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

Wed Sep 25, 2013 9:27 am

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
--
Michael Horne - @recantha
Raspberry Pi blog - http://www.recantha.co.uk/blog

Cambridge Raspberry Jam
Website: http://camjam.me
Facebook: https://www.facebook.com/cambridgeraspberryjam
Follow the Cambridge Raspberry Jam on Twitter - @cambridgejam

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

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

Wed Sep 25, 2013 4:58 pm

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.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

Return to “General discussion”