WAMP page not displaying over internet
Posted by: Destruantes (---.012-26-73746f34.cust.bredbandsbolaget.se)
Date: November 28, 2015 06:16PM

I really need some help - hell, I'd be happy to donate $10 via paypal to anyone who can help me:

I am running my WAMP server on my laptop running Windows 8.

I have a site set up at /www/MySite and made some Changes to my httpd.conf file as to make it accessable on the web, I've opened port 8080 in my router, and I've changed the ports to 8080 in my config.

Here's what I can do: I can get the site to work on these addresses:

[127.0.0.1]
[localhost]
[192.168.1.77]

the first addresses can't be used for obvious reasons, and I'm guessing the second can't be used either since the address to my router begins with 192.168 and I therefore suspect it's some kind of local thing.

My IP address seems to be 213.114.161.6 (WhatsMyIP.org, canyouseeme.org & no-ip client) but it won't work on [213.114.161.6] - not even if I momentarily disable my firewall.

I haven't done any configureation on my no-ip client, and here's my

my httpd.conf:

ServerSignature On
ServerTokens Full

ServerRoot "c:/wamp/bin/apache/apache2.4.9"

Define APACHE24 Apache2.4

Listen 0.0.0.0:8080
Listen [::0]:8080

LoadModule php5_module "c:/wamp/bin/php/php5.5.12/php5apache2_4.dll"

<IfModule unixd_module>
User daemon
Group daemon

</IfModule>


ServerAdmin admin@example.com

ServerName localhost:8080

HostnameLookups Off

DocumentRoot "c:/wamp/www/"

<Directory />
AllowOverride none
Require all granted
</Directory>


<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks

AllowOverride all


Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

<Files ".ht*">
Require all denied
</Files>

ErrorLog "c:/wamp/logs/apache_error.log"

LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog "c:/wamp/logs/access.log" common

</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "c:/wamp/bin/apache/apache2.4.9/cgi-bin/"

</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "c:/wamp/bin/apache/apache2.4.9/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>

<IfModule mime_module>
TypesConfig conf/mime.types

AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

</IfModule>

EnableSendfile off

AcceptFilter http none
AcceptFilter https none

Include conf/extra/httpd-autoindex.conf

<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include "c:/wamp/alias/*"

please, please help.

Options: ReplyQuote
Re: WAMP page not displaying over internet
Posted by: Otomatic (Moderator)
Date: November 28, 2015 06:52PM

Hi,

Quote

<Directory />
AllowOverride none
Require all granted
</Directory>
NO, NO, NO. Don't modify this. All the world may have access to your files and folder. It must be always Require all denied.
You must use VirtualHost : The need for Virtual Host then you give the external access permissions for each VirtualHost you want.

Why want you to use port 8080 instead of the default http reserved port 80 ?

Quote

Here's what I can do: I can get the site to work on these addresses:

h ttp://127.0.0.1:8080/ok4pgm/
h ttp://localhost:8080/ok4pgm/
h ttp://192.168.1.77:8080/ok4pgm/
Besides the fact that you must use the VirtualHost, the addresses you provide are local addresses and can not be used from outside.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 11/28/2015 07:04PM by Otomatic.

Options: ReplyQuote
Re: WAMP page not displaying over internet
Posted by: Destruantes (---.012-26-73746f34.cust.bredbandsbolaget.se)
Date: November 28, 2015 09:18PM

Thank you so much for your help, Otomatic!! This is my first time doing this, so I really appreciate your help.

I was just using it because I read on some website that it might help to get the server online if you configured your wampserver on that port instead because ISP's might block port 80.

I set it back to "Require all denied" and also changed that port back to 80 now incase it's not needed and causes trouble with some other conf file.

I added this to httpd-vhosts.conf:

<VirtualHost *:80>
DocumentRoot "c:/www/ok4pgm"
ServerName ok4pgm
<Directory "c:/www/ok4pgm">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

And it seems to work since I can now access the site from [ok4pgm].

what's my next step? I guess I somehow need to link [213.114.161.6] to [ok4pgm]? how do I do that?

Options: ReplyQuote
Re: WAMP page not displaying over internet
Posted by: Destruantes (---.012-26-73746f34.cust.bredbandsbolaget.se)
Date: November 29, 2015 07:14AM

I solved it - for some weird reason disabling my firewall wasn't enough - I had to open ports both in and out as well as set up port forwarding in 2 different ways in my router

Thank you so much Otomatic!!

Options: ReplyQuote


Sorry, only registered users may post in this forum.