server, web site on your mac (normal g5)

eliezer

Registered
hi

i have a 1.6ghz g5 running 10.3


i noticed that in the site folder, there is a file called index.html. when i open the page it says:

"You can use Mac OS X Personal Web Sharing to publish web pages or share files on the Internet — or on your company’s or school’s local area network — from a folder on your hard disk."

then below it tells you that you do this by turning personal web sharing on.

so i turned it on and it tells me my address is xx.x.x.x (x = digit).

does this mean that anyone in the world can access my website? or only people on my network?

also, is it dangerous using this, e.g. can someone hack into my computer through this?


also, can someone please explain this whole apache business on the computer
 
It means anyone can access 'your website' aslong as the ip number they're using hasn't been blocked in the .htaccess file or some other way. You should also check the personal web sharing option is ticked in the firewall tab and that the firewall is set to 'on'. For info on apache go here: http://www.apache.org/

EDIT: You should probably delete the other thread because it's exactly the same . :D
 
It also depends on whether or not you're behind a router/firewall. If you are and have not forwarded port 80 to your specific Macintosh, then only people on your local network will be able to access your web page. In order to get around that, forward port 80 to your Mac's IP address in the router/firewall.

If you're directly connected to the internet via DSL or cable or some other direct connection, then yes, everyone in the world can see your webpage when they hit up your IP address.
 
10.0.0.7 would be an internal IP address only, meaning only other users on your local network can access your web page.

If you want to make it accessible to anyone outside of your local network, you'll need to find out your public IP address which can be just about anything (with the exception of 10.x.x.x or 192.168.x.x or 127.0.x.x). It should be something like 167.87.223.45 or some jumble of numbers like that. Then, depending on how your network is configured (a local network behind a router/firewall, or something similar), you'll need to "forward" port 80 to your local IP address (10.0.0.7). That way, when someone from the "outside world" hits up your public IP address, the request will be forwarded to your computer (10.0.0.7) and your computer will serve up the web page.

That's the easiest way I can think of -- of course, there are other factors that may come into play here, such as maybe you're already hosting a web site on another computer there, in which case you can't forward port 80 to 10.0.0.7 because it's already forwarded to another computer... in this case, you can change the port that you're serving web stuff on to, say, port 8080 instead of 80, and then you'd need to forward port 8080 to your machine, and anyone trying to view that page will have to hit up "204.57.120.6:8080" to access your pages.

It would be best to speak with your system administrator or IT manager about this if it happens that you're on a large network with a bunch of other users.

If you simply have a connection at home via DSL or cable with or without a router, then I'm sure it would be easy to walk you through the necessary settings for your setup to get you serving pages in no time.
 
ok thanks for your help

i have a router and i am on a home network and there will be only one computer hosting a web site.

how do i foward port 80 to my local ip address and how do i find out what my local ip address is?
 
What kind of router (Brand, model) are you using? Usually, you can access the router's internal configuration with your web browser by hitting up "192.168.0.1" or "192.168.1.1" or something like that... should be in the manual.
 
Model IP Address Subnet Mask
ISDN-R 192.168.1.1 255.255.255.0
ADSL-R 10.0.0.2 255.0.0.0
ADSL-R/G, ADSL-R/S/G 192.168.1.1 255.255.255.0
ADSL-R/WL 10.10.1.10 255.0.0.0

Try entering each of those bold numbers in Safari (or whatever browser you use) and see if that gets you to the router's configuration page.

This page has specific instructions on how to forward ports on MRI routers:
http://www.mri.co.uk/tech-support/adsl-faq.htm#adsl3
 
Back
Top