Creating a web server

Joined
Jun 8, 2009
Messages
17
Reaction score
0
Points
1
Location
NZ
Your Mac's Specs
Macbook pro 15" 2gb RAM 2.4Ghz Intel Core 2 Duo Proccessor
Hello everyone. I'm new in this subject. The reason why I'm here is because I want to create my own web server and I'm a real newbie in this matter...So, can someone tell me what can I do to learn the basics of "how to create a web server"?

Thanks a lot
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
You can do a simple setup on your Mac with what is already included. Open System Preferences > Sharing > Web Sharing. With this on, you can place files in your ~/Sites folder and it will be accessible by browsing to http://<your ip/~<user name>. When you turn on Web Sharing, it will tell you this under "Your personal website:".

While this is a quick and easy way to setup a web server, many things won't be available to you right away and if you're behind a router, the page will only be accessible to those behind the router without further configuration. To help you further, it might be more helpful to know what, if anything, in particular you are looking to learn.
 
T

todd51

Guest
If you want to build a web server that you can get access to through any computer anywhere, your going to need a static IP address from your ISP. Do you have that? If your not sure, then more than likely you have a dynamic IP which will change every once in a while, meaning the address of your server would change.

I looked into this a while ago because I thought it would be a fun project for myself, but unfortunately my ISP will not provide me with a static IP address :(

If you can get a static IP, let me know how it goes! :)
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
What people do who can not get a static IP address is use one of the services that allow you dynamically change your address when needed. I use easydns.com and others use dyndns.com which has a free option. For my low end purposes this has worked well.

Keep in mind also that some ISPs block port 80. In those cases you can use an alternative port but have to tell people that.

This topic has been discussed many times here, so do some searching in this forum.
 
Joined
Aug 28, 2009
Messages
30
Reaction score
1
Points
8
if you want a webserver try either sining up to one already online or buy a proper one with mac server installed also you need a static ip. this should really be for anybody who runs a buisness if you are doing it for fun forget it its not worth it
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
...if you are doing it for fun forget it its not worth it

It can be well worth it. I've used this for posting things for friends and family that I don't want to keep track of on my real site, and as a personal resource for items I may want to get at remotely. Another bonus has been the learning experience.
 
Joined
Sep 7, 2009
Messages
2
Reaction score
0
Points
1
It's better to let someone host your website to prevent hackers from hacking your mac/pc.
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Maxcala, that is FUD.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Maxcala, that is FUD.
I agree. It is very possible to set up a secure web server on your own machine. Sure, web hosts may have more knowledge (it being their job after all) but it is completely possible to run a personal web server that is secure.
 

Egg


Joined
May 28, 2009
Messages
3
Reaction score
0
Points
1
Location
Calgary
Your Mac's Specs
many
Most ISPs specifically do not allow you to run your own server. This is a feature that you will have to pay extra for. However, most give you some free web space to throw your own web site onto. Just get a domain name and URL forward it to your free web space...(if you want a custom url otherwise just use the url that points to your free space)
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Most ISPs specifically do not allow you to run your own server. This is a feature that you will have to pay extra for.

How many ISPs offer a pay option to allow for servers? I don't know of any.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top