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.
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
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
(RS)Allied ships old stock to reward its Customers for long wait!