RIDivorceLawyer - Jan 21, 2007 - 2:42 pm
I just learned that Mac OS X has Apache server built in. I have directed dynamic dns services to my computer's ip address and I get a default Apache install page.
I've searched my Macintosh but I can't find that default page
regardless of how long I search for it and I don't know how to navigate my computer using Terminal to look deeper. I searched
the Help pages at apple.com but they say it is in my home folder
under Sites. I found an index.html page there but it is not the
same page that is displaying in my web-browser so there must be something that I am missing.
Any help would be appreciated.
bobw - Jan 21, 2007 - 2:54 pm
Hi Chris
Open a browser window, then drag that index.html page to the open browser window. It will guide you.
Basically, rename that index.html file to save, and create your index.html page and use that same name. Then you'll be able to go to it's URL, which the Sharing PreferencePane will show you if you click the 'Personal web Sharing' on.
bobw
http://www.macosx.com
RIDivorceLawyer - Jan 21, 2007 - 3:34 pm
Bob,
I'm afraid I may be too dense. I'm a convert to macs about 6 months ago but I'm trying hard to come up to speed.
Perhaps I didn't phrase my question well.
Go to
http://caplaw.dyndns.org
That is the page that comes up.
I go to my Mac's System Preferences and it tells me that this page is my computer's website and that my personal website is at an ip address with an extension folder on it.
The url above calls my router's ip which I then configured port forwarding on it in order to get to my computer's default website... the Apache page that comes up.
What I'm trying to do is to find that default page and change it because I don't know how to get directly to my personal website on my computer because of the subfolder and the port forwarding I set up.
I just don't know how to find that Apache page. It's not the one in my Sites folder and I can't find it anywhere.
Hopefully that makes it clearer. The page I can't find is the one that appears in the window when you go to
http://caplaw.dyndns.org I have no idea how to find it and when I try to use regular linux commands on my own computer in Terminal to search deeper it keeps telling me there is No Such Command.
Thanks so much for your fast response. If you can provide any other direction that would be great.
RIDivorceLawyer - Jan 21, 2007 - 3:46 pm
Bob,
Thank you for your help. I kept searching different combinations and I found that my computer's default webpage in the MacOS X Apache Server setup is found at
Library/WebServer/Documents/index.html.en
Thank you for your SuperFast Response. What a great forum!
I'll try to help others out as I am able to repay the favor to this great forum.
bobw - Jan 21, 2007 - 3:51 pm
Chris
The default IP you see in the Sharing PreferencePane under Personal Web Sharing is the page you should see in a browser.
This is what mine looks like;
The 192.168.0.2 is from my router. If I wasn't behind a router it would be a normal IP.
If I double click the URL
http://192.168.0.2/~bob/, it will open a browser showing my index.html page. You would see the page with this at the top;
------------------------------------------------
Your website here.
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.
------------------------------------------------
That page is in your Sites folder here;
User/Sites
The name of the page in the Sites folder is 'index.html'
You can rename that index.html by putting - old- original, etc in the name, then put your web page in that folder and name it 'index.html.
Then when you go to that URL, your page should open in a browser.
bobw
http://www.macosx.com