Localhost works however acess through internet doesn't.
Posted by: 1miko1 (---.neoplus.adsl.tpnet.pl)
Date: February 29, 2012 08:25PM

Server is online and running, everything seems fine, I can acess PHPmyadmin and all the other things I usually use, however when I or any of my friends try to connect to my server over Internet, the page simply doesn't load. (Default Mozilla/IE error of page not existing).

If that's important I am running Windows 7 64bit. Additionaly, only logical explanation to my problem I found so far is my ISP or router/modem connected problem.

I would be grateful for response!

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: 1miko1 (---.neoplus.adsl.tpnet.pl)
Date: March 01, 2012 10:50PM

Bump, since I still need Your help!

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: RiggsFolly (---.as13285.net)
Date: March 02, 2012 05:09PM

Have you set port forwarding on your router?

You need to forward port 80 to the IP address of the PC that is running WAMP.

Best set a static IP for that PC as well so it does not keep changing as PC on your internal network logon in different order on different days.

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: 1miko1 (---.neoplus.adsl.tpnet.pl)
Date: March 02, 2012 05:12PM

My bad, I forgot to mention one very important thing! Server USED to work smoothly w/o any problems until few days ago, since I didn't install any programs that could have affected that, I don't know why it stopped working. Another interesting thing is that previously I used xampp, and the reason why I changed to wamp was because xampp gone insane and didn't want to start MySQL or Apache at all.

Because of that I doubt that it is a port forwarding problem.

Thanks for response though!



Edited 1 time(s). Last edit at 03/02/2012 05:13PM by 1miko1.

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: RiggsFolly (---.as13285.net)
Date: March 02, 2012 10:41PM

Quite an ommision when you think about it.

Apart from the likelyhood that there is something on your system that is a bit bent as denoted by XAMP thowing a huge wobbly....

How are you attempting to access your server from outside your network?
By ip address or are you using a DNS redirect of some kind?

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: 1miko1 (---.neoplus.adsl.tpnet.pl)
Date: March 02, 2012 10:53PM

Both of them. DNS and IP.

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: RiggsFolly (---.as13285.net)
Date: March 02, 2012 11:05PM

Does the remote ip address show up in your apache access log?

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: RiggsFolly (---.as13285.net)
Date: March 02, 2012 11:07PM

And of course have you checked that you have added an exception to your firewall to allow connections on port 80 ( i assume )

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: 1miko1 (---.neoplus.adsl.tpnet.pl)
Date: March 03, 2012 10:02AM

No, it does not show up in the Apache acess log and no, I didn't check the firewall since I am not using any and the default Window's is switched off as well. smiling smiley

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: stevenmartin99 (Moderator)
Date: March 03, 2012 10:34AM

REMOVED

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 03/03/2012 10:01PM by stevenmartin99.

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: 1miko1 (---.neoplus.adsl.tpnet.pl)
Date: March 03, 2012 08:51PM

Excuse me stevenmartin99 if I am wrong, but didn't you mistake topics?

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: stevenmartin99 (Moderator)
Date: March 03, 2012 09:59PM

Sorry! Yes I did!!! Sorry

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: RiggsFolly (---.as13285.net)
Date: March 04, 2012 12:56PM

I have just re-read the thread and maybe this is your problem.

If you want apache to respond to requests from the internet you have to tell it that it is serving pages for the url being used by your external users.

i.e. If you want it to respond to http: // mysite.dyndns . org ( for example ) you need to tell it that it should.

This is done by setting up a virtual hosts.

I guess you must have had this setup on xamp.

Can you do that or do you need help with that?

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: 1miko1 (---.neoplus.adsl.tpnet.pl)
Date: March 04, 2012 04:33PM

I am afraid that I would need help with that.



Edited 2 time(s). Last edit at 03/04/2012 04:35PM by 1miko1.

Options: ReplyQuote
Re: Localhost works however acess through internet doesn't.
Posted by: RiggsFolly (---.as13285.net)
Date: March 04, 2012 11:12PM

1. Edit httpd.conf
> from wamp manage -> apache -> httpd.conf

Look for
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

And add a line like
Include conf/extra/my-vhosts.conf


2. Create that file.
[x]:\wamp\bin\apache\apache2.2.17\conf\extra\my-vhosts.conf
and add these lines, changing file names where applicable

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80


## must be first so the the wamp menu page loads
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:/wamp/www"
ServerName localhost
ServerAlias localhost
</VirtualHost>

## allow access from the PC using a mysite.localhost as the address
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:/websrc/site"
ServerName mysite.localhost
ServerAlias mysite.localhost
</VirtualHost>

## allows access from the internet. using site.dyndns.org or similiar
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:/websrc/site"
ServerName site.dyndns.org
ServerAlias site.dyndns.org
</VirtualHost>



NOTE In this example I have a directory D:\websrc that has a sub directory for each site I want to host. Change that directory to suit your directory structure.
Remember to put the server online wamp manager->Put Online



I hope this helps

Options: ReplyQuote


Sorry, only registered users may post in this forum.