When I type www.localhost, where is index.html

otuatail

New member
Member
VIP
Local time
3:54 PM
Messages
102
When I type www.localhost, where is index.html

I have asked this question on other news groups even Microsoft. Why is this such a hard question to answere. I have installed Apachi web server on my PC but when I type www.localhost into a web browser, I find myself looking at a difrent file.

HELP
 

My Computer My Computer

OS
Windows 7 32
Hi Otuatail,

Try typing just localhost and leave out the www. That may work. If not, you can try typing 127.0.0.1

Hope that helps!
Snarks
 

My Computer My Computer

Computer Manufacturer/Model Number
Dell Precision M4400
OS
Windows 7 Ultimate x64 SP1
CPU
Intel Core 2 Duo @ 2.4 ghz
Motherboard
Intel
Memory
4 GB
Graphics Card(s)
Nvidia Quadro 7700x
Sound Card
Onboard
Monitor(s) Displays
Dell LCD
Screen Resolution
1440x900
PSU
Absolutely! How else would this hunk o' junk run?
Got the t-shirt. I am a website developer. I know about 127.0.0.1.
I have a samsing 800G hard disk. Where is index.html. That is the problem. Where would bill gates put it. I assume it would be in a folder called htdocs/

When I said I typed in www.localhost, I DO get a web page displayed. Problem is locating that page.
 

My Computer My Computer

OS
Windows 7 32
Which browser are you using? I was curious and typed "www.localhost" into my address bar in Firefox. It automatically changed to "www.localhost.com" and that site, whatever it is, gave me a 'connection was reset' error.

If you're actually able to load something from "www.localhost" then you must be running a local webserver on your computer; there's no other way. Neither Mr. Gates nor the size of your harddisk will have anything to do with it, nor am I quite sure why you think there's a folder "htdocs."

Describe the page you're seeing. What does it say? Better yet, can you show us a screenshot of it?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)
If you're actually able to load something from "www.localhost" then you must be running a local webserver on your computer;

The OP is running Apache.

FAQ - Httpd Wiki
 

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
If I open a browser like firefox or internet explorer and type in the url of a website and it comes up with a page does the website exsist? Yes it does. If I type www,localhost or 127.0.0.1 and a web page does apear with a welcome message does this page exsist. You say it does not exsist but if you search the internet you will fond information on this topic. On a new IIS instalation it would point to something like htdocs/index.html. it would be a html page. You thinkt that the page that I am looking at does not exsist anywhere not even on my local hard disk. This is very strange.

I remeber years ago when XP was out adding IIS to it and I definatly had a folder and file index.html created with a default page created. I could edit this page and even create a loacl website for development issues. But you seem to think that the page I am looking at in my web browser does not exsist.
 

My Computer My Computer

OS
Windows 7 32
I simply missed the part in your original post saying you were running Apache, that's all.

Still not quite clear as to why you insist on typing www.localhost and not simply localhost, though. You also haven't said what the page looks like or what it tells you, yet.

Have you consulted the documentation for Apache to find an answer to your question? I'm not familiar with either Apache or IIS myself.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)
If I open a browser like firefox or internet explorer and type in the url of a website and it comes up with a page does the website exsist? Yes it does. If I type www,localhost or 127.0.0.1 and a web page does apear with a welcome message does this page exsist. You say it does not exsist but if you search the internet you will fond information on this topic. On a new IIS instalation it would point to something like htdocs/index.html. it would be a html page. You thinkt that the page that I am looking at does not exsist anywhere not even on my local hard disk. This is very strange.

I remeber years ago when XP was out adding IIS to it and I definatly had a folder and file index.html created with a default page created. I could edit this page and even create a loacl website for development issues. But you seem to think that the page I am looking at in my web browser does not exsist.

If you search the FAQ in the link I posted it details how to point to the index.html page. That's why I posted it. Just use your browser search on "index.html" in the FAQ.
 

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Am I being stupid by asking the question. search on index or start try both .html and .htm

just ignore this if I am being dumb..

Rich
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Laptop Qosimo X870
OS
Windows 7 Pro x64 SP1
CPU
Intel Core I7
Motherboard
Toshiba Qosmio
Memory
16 Gigs
Graphics Card(s)
NVIDIA GeForce GTX 670M
Monitor(s) Displays
17.7" laptop
Screen Resolution
1600 x 900
Hard Drives
256 Gig SanDisk SSD for C
256 Gig Intel SSD for D
Internet Speed
50/25 FIOS
Antivirus
Vipre (all you can eat for 10 machines)
Browser
IE and FF
Other Info
I have dos 6.22, wfwg 3.11, win98, 2000 and xp VHD's available for testing. MS's Virtual PC works great.
I don't know why everyone is so reluctant to do the search here:
FAQ - Httpd Wiki

Web pages can also be dynamic. There may not be a file named "index.html" lying around.

edit: I'm not a web programmer. But just from managing my own web page I know apache uses a file .htaccess that may prevent a directory from being indexed so that unauthorized people can't just look through every folder to see what's to be seen. The default .htaccess may be set up to block indexing of all folders for all I know. There are example .htaccess files on the web with the various commands explained. No need to reproduce those docs here.
 

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I keep saying that when I type in www.localhost or local host or even 127.0.0.1, I DO GET A WEB PAGE. I want to know where this html file exsists on my compuuter so I can edit it and use it for website development. Is this not clear to anyone?
 

My Computer My Computer

OS
Windows 7 32
I keep saying that when I type in www.localhost or local host or even 127.0.0.1, I DO GET A WEB PAGE. I want to know where this html file exsists on my compuuter so I can edit it and use it for website development. Is this not clear to anyone?

And I asked you to search the relevant FAQ in the link, twice to see how it works. Can you not read the already documented information?


http://www.lestarte.com/pages/apache-tutorial-e.html

Web pages are often created dynamically

http://www.w3schools.com/dhtml/default.asp
 

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I keep saying that when I type in www.localhost or local host or even 127.0.0.1, I DO GET A WEB PAGE. I want to know where this html file exsists on my compuuter so I can edit it and use it for website development. Is this not clear to anyone?

It is, but listen to the advice given by MilesAhead please. In addition I asked you twice to tell us what the webpage says.
Simply telling us "I get a webpage" is useless information for us, for all we know it could simply be a default 404 error page. Which would then mean there's no running webserver at localhost.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
OQO 2+
OS
Windows 8 Pro w/MC 32-bit
CPU
Intel Atom 1.86 GHz
Motherboard
OQO 2+
Memory
2 GB
Graphics Card(s)
Intel GMA 500
Sound Card
IDT
Monitor(s) Displays
LCD
Screen Resolution
800 x 480 (portable) 1280 x 1024 (docked)
Hard Drives
64 GB SSD
PSU
9 Ah Battery (portable) or OQO Brick (docked)
Case
Shirt Pocket Sized
Cooling
Tiny Fan
Keyboard
Slide out (portable) DiNovo Edge (docked)
Mouse
Eraser head (portable) Logitech Bluetooth (docked)
Internet Speed
WWAN or 802.11G (portable) T1 (docked)
Browser
IE 10
Other Info
DVD-RW OQO Docking Station
Using Apache HTTP Server on Microsoft Windows - Apache HTTP Server
If you did in fact see the Apache placeholder page then:
I am going to read the manual for you, I'm also trying to hold your hand but I think I can't reach :)
The default path is C:\Program Files\Apache Software Foundation under which a directory called Apache2.2 will be created by default.
Hmmm, I would start looking there.
if you already have a file called htdocs\index.html <------ is this it?!?!?!
I hope I have the correct version...
 

My Computer My Computer

Computer Manufacturer/Model Number
Acer Ferrari One/HP Proliant Microserver/Random Monstrosities
OS
Windows 7 Home Premium 64 OEM
if you already have a file called htdocs\index.html <------ is this it?!?!?!
Your school education is lost on you here. I was writing computer programs probably before you where born giblets.
I do know what a html file looks like. I also know that I do not have to install it in the default directory and that the directory would not be called Apache2.2 if this was not the version of Apache I installed.

I do know what I am doing. Need a professiona to help.

I installed apache_2.0.63-win32-x86-no_ssl.msi to

E:\Apache Group\

When I type http://localhost/ into any browser (Some here want to know what browser I am using for some strange reason)
I get a page that has two words

It Works.

If I type in http://localhost/index.html

I Get the same.
There is a folder with lots of html pages in difrent languages in

E:\Apachie Group\Apachie2\htdocs like
index.html.de, index.html.en, index.html.dk
BUT NO index.html

I Havw also
C:\windows\system32\drivers\etc\httpd.conf with
<Directory "E:/Apache Group/Apache2/htdocs">

ServerRoot "E:/Apache Group/Apache2"
DocumentRoot "E:/Apache Group/Apache2/htdocs" // No index.html herer
<Directory "E:/Apache Group/Apache2/htdocs">
// No index.html herer
UserDir "My Documents/My Website" // No such folder My Website


 

My Computer My Computer

OS
Windows 7 32
Being a website developer this might be an obvious question.
Have you created an index page or are you expecting one already exists ?
 

My Computer My Computer

Computer Manufacturer/Model Number
DIY
OS
Windows 7 home premium x64
CPU
AMD FX-4100 AM3+ 3.6GHz 12MB Black Edition
Motherboard
Asus M5A97 Pro
Memory
Crsair vengeance 12Gb DDR3 1600MHz CL9
Graphics Card(s)
Asus GTX 560 1GB
Sound Card
Realtek onboard
Monitor(s) Displays
Hanns G 1680x1050 native
Hard Drives
OCZ 128Gb Petrol ssd
2x500 Gb Samsung
PSU
OCZ StealthXstream II 500W
Internet Speed
8Mb or better
"It works" is what the Apache placeholder page says.
 

My Computer My Computer

Computer Manufacturer/Model Number
Acer Ferrari One/HP Proliant Microserver/Random Monstrosities
OS
Windows 7 Home Premium 64 OEM
Back
Top