Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: http://localhost/, http://127.0.0.1 does not work but http:/ |
|
Author |
|
codeDizzy
Joined: 07 Aug 2006 Posts: 2 Location: fairfield,ca
|
Posted: Mon 07 Aug '06 6:35 Post subject: http://localhost/, http://127.0.0.1 does not work but http:/ |
|
|
I am new to WAMP and I am configuring my installation. My question is how come http://localhost/ and http://127.0.0.1/ does not work but http://127.0.0.1:8080/ works?
How can I make it work for my domain? for example my domain is "mydomain.com"
How can I make it work so just typing http://mydomain.com/ on my local machine will load the default page. or just typing http://localhost/ will work too?
What about if I'm testing 2 sites that's going to be in 2 different domains. for example "domain1.com" and "domain2.com"
How can I use both? |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Mon 07 Aug '06 7:10 Post subject: |
|
|
First things first, What error are you receiving when attempting to use Port 80 (Are you running IIS)? If Port 80 generates an error, it usually because another application/service is already using it.
Per your domain question, do you have a static IP? If not, you will have to use Dynamic DNS.
Per your multiple domain question: You will need to configure VHost.
Again, first things first - let's get the Port issue solved first.
..
. |
|
Back to top |
|
codeDizzy
Joined: 07 Aug 2006 Posts: 2 Location: fairfield,ca
|
Posted: Tue 08 Aug '06 17:03 Post subject: |
|
|
I don't receive an error when I use http://127.0.0.1:8080/, actually this is the only url that works.
I have setup apache, php and mysql (all latest version) on my test machine. When I load the url http://localhost/ or http://127.0.0.1/ the page doesn't load and I get cannot find server or DNS error on Internet Explorer.
I want to load the page by just typing http://localhost/ instead of http://127.0.0.1:8080/. How do I go about it?
If I have a domain like "mydomain.com", how can I make the page load by just typing "mydomain.com" instead of http://localhost/ on my test machine? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 08 Aug '06 17:12 Post subject: |
|
|
the best way to do this is by editing your c:\windows\system32\drivers\etc\hosts to something like that
127.0.0.1 localhost
127.0.0.1 mydomain.com
That works only localy!
With the Port I would say what id the Listen in httpd.conf set? Set to 80 or 8080? if not set to 80 set 80
e.g.
|
|
Back to top |
|
|
|
|
|
|