My personal website only displays:"It Works" when I access it, how do I change it?

After installing a new harddrive and Snow Leopard on my macmini I can't access my website from a browser.  It does access when I type in the address on my network in my browser followed by:"~username".  The only thing it displays when I type in my "http://xx.x.x.xx/" address in my browser is: "It Works".  I've seen mulitple posts regarding this problem on the Web but I was looking for a way a novice like me might be able to correct this!  Please help!

Two approaches...
-- command line --
From the command line, launch Terminal.app from the Applications > Utilities folder, and issue the following commands:
cd /Library/Webserver/Documents
cat index.html.en
That command sequence shows the HTML file that is the root file on an Apache server on Mac OS X client.
If you wish to edit the contents of this text file, use the following two commands:
sudo cp index.html.en index.html.en.save
sudo pico index.html.en
The sudo request will require an administrative password be input, as these files are protected against general access.  The first of the two commands creates a copy (cp) of the file, which you can use to recover the original file, if that's needed.  The second command (pico) invokes a text editor, and some on-screen text-editing commands will be displayed at the bottom of the display. 
There are other text editors at the command line, but pico is usually the easiest for a new user.  You'll use the control key and a letter - as will be shown on the bottom of the pico display - to perform whatever file changes you might require.
-- GUI --
To use the GUI and to avoid using the command line (and which is going to be a bit of a problem going forward, as the command line is how most of Apache is managed on Mac OS X (client) systems), you can use the following sequence:
Download and install the TextWrangler tool (this or an analogous tool is necessary, because the default TextEdit tool doesn't work with the following sequence), select the File menu and select the Open File By Name item, and enter the following file into the search box:
/Library/Webserver/Documents/ndex.html.en
You can then access and modify the file from the GUI.
-- Caveat --
Do not use Microsoft Word, nor Apple iWork Pages, nor the TextEdit tool, nor any other tool that can't read and write a simple text file, to edit the Apache HTML files and related.  While some of these other tools might be able to read the file, most of (all of?) these will be unable to write text files using a format that Apache and related can read and correctly process.
-- Caveat --
I am specifically differentiating here between Mac OS X - what I'm referencing as "Mac OS X (client)" - systems and Mac OS X Server systems.  The Mac OS X Server package is a configuration and upgrade that adds various tools and features to Mac OS X (client) systems, and part of the Mac OS X Server package includes easier management of web sites.  Mac OS X Server and its web directories are generally managed somewhat differently from Mac OS X (client) systems.  If you don't know what you have and if you didn't buy Mac OS X Server (directly, or as part of a Mac Mini Server or Mac Pro Server configuration), then it is likely that you have the Mac OS X (client) configuration.  Most Mac systems are sold with Mac OS X (client) software.

Similar Messages

Maybe you are looking for

  • Old code not working in 11.5

    For years I used the following code to open a .pdf file with a stand alone .pdf reader that does not require installation. open "resume.pdf" with "Foxit Reader.exe" When I converted the old director file from MX to 11.5 and tried to execute the code

  • PDF XChange annotations are not saving (temp folder problem?)

    Hello, I'm having a problem with the XChange PDF viewer within Firefox: When annotating a file outside of Firefox, I can save the changes and have them reappear when I close and re-open the file Doing this inside Firefox, I cannot, it appears that th

  • Watching price condition in sales order during configuration product

    Hello evrybody, I have a little question about product configuration during the sales order creation. I have done all my configuration structure and I have add prices on certain characteristics. However, I would like to see the price of each value of

  • WIC-4ESW issue

    Hi  Please help me,  I install a WIC-4ESW card in Cisco Router 1760 then I got the following error messages: *Mar  1 00:00:09.247: %ESWMOD-3-NOT_RESPONDING: Ethernet Switch Module is not responding *Mar  1 00:00:09.247: %ESWMOD-3-INITFAILURE: Initial

  • Iphone4 not responsing after software update

    I've got a standard iphone4 and I was reminded that I have to update my iphone system. And I followed the guidance and went to the general screen. After it finished update and reinstallation, the phone automatically shut down. While I was thinking it