Web Sharing won't let me Share to the Web..

kommakazi

Hack the Planet!@#
I enabled Web Sharing on my tower (10.1.5 style) so I could let people preview this web page I'm working on as I do it until I put it up to the final location. My tower is the computer I have dialed-up to the internet and sharing it over my home LAN with IPNetShareX. It also has it's 192.168.0.1 ethernet address. When I try to open the IP assigned to me by my ISP in my browser it doesn't load saying there's nothing there. When I open 192.168.0.1 in my browser it loads the Apache test page like it's supposed to. Then, when I try to access my page which should be at 192.168.0.1/~peter/ I get the Forbidden page telling me I can't access it. I have my page in my Sites folder in my Home directory where it belongs. I need to make it accessable over the internet, but I have no idea what I need to do!
 
The short answer is: put the site in your root /Library/WebServer/Documents folder.

I'm sure some of the Apache experts here will be able to tell you what permissions hiccup is causing your problem with sharing from your own sites folder. Until then ...
 
Is your page named index.html?
Anyway u can change your apache config file by editing /etc/httpd/httpd.conf.

Locate line:
DocumentRoot "/Library/WebServer/Documents"
or something like this path

and change to:
DocumentRoot "/Users/yourhome/Sites"

so u can put your site in Sites folder in your home.
Type on terminal:
sudo apachectl restart, enter password and apache is now changed.

Solved the problem?
 
Thanks for responding, but that wasn't really my main concern. I now have moved my files to /Library/WebServers/Documents so I can access them by typing in my local ethernet address in my browser but still not by typing in the ip address assigned to me by my ISP viz the internet. I want to make this accessable over the web but it still does not work.
 
Back
Top