WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.hsd1.wa.comcast.net)
Date: June 09, 2015 09:01PM

Hey everyone... I am having the worst luck trying to figure out what the heck is going on with my server set up. I have tried from my cell phone, as well as numerous other networks, and just can't get anything to work. Here is what I have, and here is what happens.

1 - Windows 7 Pro SP1 32 Bit
2 - WAMP 2.5 (even did a fresh install yesterday after uninstalling and cleaning registry of old install)'
3 - Apache 2.4.9
4 - PHP 5.5.12
5 - MySQL 5.6.17
6 - Green and states WAMPSERVER - Online
7 - 127.0.0.1 localhost (only line in hosts file on the wamp server)
8 - Yes.
9 - Yes
10 -

"Forbidden

You don't have permission to access /UI on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

11 - Windows Built-In Firewall, as well as Avast! Antivirus
12 - c:/wamp/

--------------------------------

Additional Info:

8 - If I # the line that calls the vhosts-conf, I get the main WAMP www page that comes when you first install WAMP. If I leave vhosts-conf, I get the 1st vhost listed when I type in "[localhost"]; no matter what browser.
10 - I am *NOT* typing in "/UI" when trying to access any of my vhosts. For some reason, no matter what browser I use, something in WAMP is adding the /UI in return. If I try and access any of the vhosts listed below on a machine WITHIN my network, I get a "The connection has timed out" error (Firefox) or "This page can't be displayed" (IE) error. Also, there is NOTHING written to either the error-log or access-log file for ANY of the VHosts that I try and access, even though it is throwing a 404 error. If I do a ping to ANY of the 3 vhosts, from anywhere on the internet on any machine, I get the correct IP response of 73.35.131.61, so I know the DNS server(s) have the correct entry.
11 - I have COMPLETELY disabled both the windows firewall & the Avast A/V, and still get the same results.
12 - I have the vhosts in the c:/wamp/vhosts directory.

I have gone in to the router and forwarded port 80 to .200, which is the development machine I have and get the same result. Currently, the web server machine is set up as DMZ in the Comcast Router, so it is wide open to the outside world.

My 3 VHosts, all of which give me the same error are as follows:

[prod.moparsunlimiited.org]
[prod.westcoastfiero.com]
[prod.fieroswest.org]

----------------------------------

Config Files:
httpd-conf (Stripped out everything commented or not being loaded)

ServerSignature On
ServerTokens Full
ServerRoot "c:/wamp/bin/apache/apache2.4.9"

Define APACHE24 Apache2.4

Listen 0.0.0.0:80
Listen [::0]:80

LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

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

User daemon
Group daemon

ServerAdmin webmaster@moparsunlimited.org

ServerName localhost:80
HostnameLookups On

DocumentRoot "c:/wamp/www/"

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


<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks Includes ExecCGI
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

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
ScriptAlias /cgi-bin/ "c:/wamp/bin/apache/apache2.4.9/cgi-bin/"

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

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 .php3 .html

EnableSendfile off
AcceptFilter http none
AcceptFilter https none

Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/proxy-html.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Include "c:/wamp/alias/*"

vhosts-conf:


<VirtualHost *:80>
ServerAdmin webmaster@moparsunlimited.org
DocumentRoot "c:/wamp/vhosts/moparsunlimited"
ServerName prod.moparsunlimited.org
ErrorLog "logs/moparsunlimited-error.log"
CustomLog "logs/moparsunlimited-access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@fieroswest.org
DocumentRoot "c:/wamp/vhosts/fieroswest"
ServerName prod.fieroswest.org
ErrorLog "logs/fieroswest-error.log"
CustomLog "logs/fieroswest-access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@westcoastfiero.com
DocumentRoot "c:/wamp/vhosts/westcoastfiero"
ServerName prod.westcoastfiero.com
ErrorLog "logs/westcoastfiero-error.log"
CustomLog "logs/westcoastfiero-access.log" common
</VirtualHost>

I am REALLY at a loss, so any help from anyone would be gratefully appreciated!

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: sTimulated (---.plus.com)
Date: June 09, 2015 10:25PM

Would it be anything to do with

DocumentRoot "c:/wamp/www/"

but you are using c:/wamp/vhosts/

Just a guess from someone who knows nothing in this area.

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.click-network.com)
Date: June 10, 2015 04:46AM

Negative. I tried that as well prior (sorry, overlooked typing that), and had no luck on that either.

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: RiggsFolly (---.as43234.net)
Date: June 10, 2015 10:32AM

Pleasse read this STICKY post, it will help you setup Virtual Hosts properly

WAMPServer 2.5 The Homepage, Your Projects Menu and the need for Virtual Hosts

If after reading that and correcting your VH definitions you still have problems please feel free to ask for more help.


Couple of things in addition to the VH setup issues :

Change this section back to its original state
<Directory />
AllowOverride none
Require all granted
</Directory>

to

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

This protects the root folder, and therefore all sub folder from access by an attacker. The way to setup apache security is to deny access to everything, which is what this does, and then specifically allow access to only the things apache should have access to.


The WAMPServer machine SHOULD NEVER BE IN THE DMZ. This is hugely dangerous and will allow all sorts of hacks, apache based and all others as well.
Get the machine OUT OF THE DMZ and run all the virus checks you can think of as this machine may already be infected with almost anything.

Port Forwarding is all you need to do to allow access, never use the DMZ.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.sub-70-199-130.myvzw.com)
Date: June 11, 2015 12:28AM

I only had it in the DMZ long enough to test and see if something hardware related was the issue.

I tried restarting the machine and router today, and still no change.

So ANY help to get this resolved is GRATEFULLY appreciated.

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: RiggsFolly (---.as43234.net)
Date: June 11, 2015 10:13AM

Have you changed your VHOST definitions after readin the post I linked you to?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.click-network.com)
Date: June 11, 2015 10:16AM

Yes. My VHOST config file now looks like this:

<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/moparsunlimited"
ServerName prod.moparsunlimited.org
<Directory "c:/wamp/www/moparsunlimited">
AllowOverride All
Require all granted
</Directory>
ErrorLog "logs/moparsunlimited-error.log"
CustomLog "logs/moparsunlimited-access.log" common
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/westcoastfiero"
ServerName prod.westcoastfiero.com
<Directory "c:/wamp/www/westcoastfiero">
AllowOverride All
Require all granted
</Directory>
ErrorLog "logs/westcoastfiero-error.log"
CustomLog "logs/westcoastfiero-access.log" common
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/fieroswest"
ServerName prod.fieroswest.org
<Directory "c:/wamp/www/fieroswest">
AllowOverride All
Require all granted
</Directory>
ErrorLog "logs/fieroswest-error.log"
CustomLog "logs/fieroswest-access.log" common
</VirtualHost>

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: RiggsFolly (---.as43234.net)
Date: June 11, 2015 10:32AM

Ok point 1.

When you setup VHOST apache will look at the url and try and match it to a ServerName or ServerAlias if it fails to make a match it will default you to the first VHOST defined in the httpd-vhost.conf file.

So if you are getting sent to the first vhost, then the one you are trying to access i.e. number 2 or number 3 is not being recognised so must have an error or be lacking some required config.

Have you entered the domain names into the HOSTS file

c:\windwos\system32\drivers\etc\hosts

It should have an entry for each of the domain names like so


127.0.0.1 site1.dev
::1 site1.dev

127.0.0.1 site2.dev
::1 site1.dev

127.0.0.1 site2.dev
::1 site1.dev

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.click-network.com)
Date: June 11, 2015 10:34AM

Sorry, I thought I posted a response.

Yes, I made the changes to the VHOST file. After clearing my browser history, cache, etc., all 3 VHOSTS come up fine.

I appreciate all the help and assistance. I honestly didn't see the file you sent me the link for in the sticky section, or I would have followed it.

Enjoy your day, and thanks again!

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.click-network.com)
Date: June 12, 2015 02:38AM

Nevermind! It went back to not working! UGH!!!!! It worked this morning, but now that I have tried it 6 or 7 hours later, it doesn't work again!

Yes, I have the following set up in my HOSTS file...

127.0.0.1 localhost
127.0.0.1 prod.moparsunlimited.org
127.0.0.1 prod.westcoastfiero.com
127.0.0.1 prod.fieroswest.org

::1 localhost
::1 prod.moparsunlimited.org
::1 prod.westcoastfiero.com
::1 prod.fieroswest.org

I have teamviewer on tihs machine if that would help anyone assist as well.

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: RiggsFolly (---.as43234.net)
Date: June 12, 2015 09:56AM

What are you running as a website? All your code or a package of some sort?

If it works and then stops working, something is changing on your system between working and non-working what do you chnage/run after it working before it stops working

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: sTimulated (---.plus.com)
Date: June 12, 2015 01:19PM

charlestwaters Wrote:
-------------------------------------------------------
> Nevermind! It went back to not working! UGH!!!!!
> It worked this morning, but now that I have tried
> it 6 or 7 hours later, it doesn't work again!
>
> Yes, I have the following set up in my HOSTS
> file...
>
> 127.0.0.1 localhost
> 127.0.0.1 prod.moparsunlimited.org
> 127.0.0.1 prod.westcoastfiero.com
> 127.0.0.1 prod.fieroswest.org
>
> ::1 localhost
> ::1 prod.moparsunlimited.org
> ::1 prod.westcoastfiero.com
> ::1 prod.fieroswest.org
>
> I have teamviewer on tihs machine if that would
> help anyone assist as well.


Either you have fixed it or something else as I can navigate to your websites/pages

[moparsunlimited.org] - working
[westcoastfiero.com] - working
[fieroswest.org] - working

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.click-network.com)
Date: June 12, 2015 06:43PM

That is VERY weird. I haven't touched a thing since about 9am YESTERDAY. And I just tried to bring them up, and got the good ole Forbidden 403. So that's weird. And I know it's a VERY dumb question, but you aren't looking at the actual [www] are you? You are viewing the [prod] correct?

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.hsd1.wa.comcast.net)
Date: June 12, 2015 08:34PM

Just FYI, I checked the server access logs, and I don't see *ANY* access to any of the URL's after I was able to contact them yesterday. I just see my access from my connections. But like I said, I'm baffled, because it is giving me the 403 Forbidden error message again, and absolutely NOTHING has changed!

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: sTimulated (---.plus.com)
Date: June 13, 2015 02:31AM

charlestwaters Wrote:
-------------------------------------------------------
> That is VERY weird. I haven't touched a thing
> since about 9am YESTERDAY. And I just tried to
> bring them up, and got the good ole Forbidden 403.
> So that's weird. And I know it's a VERY dumb
> question, but you aren't looking at the actual
> [www] are you? You are viewing the
> [prod] correct?


TBH I don't understand the question?www or prod?

I type moparsunlimited.org in my address bar and your website comes up.
I can move around no problem.
Same goes for your other websites.

I guess I'm looking at your www?

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.sub-70-199-146.myvzw.com)
Date: June 13, 2015 02:33AM

Yes, that's the www. That is a live server, but I do all my writing / development on prod.xxxxxx for each one. THAT'S what isn't working.

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: sTimulated (---.plus.com)
Date: June 13, 2015 10:26AM

charlestwaters Wrote:
-------------------------------------------------------
> Yes, that's the www. That is a live server, but I
> do all my writing / development on prod.xxxxxx for
> each one. THAT'S what isn't working.


Ahhhh my bad,sorry.
So if I type prod.fieroswest.org into my address bar it should bring up your websites?

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: RiggsFolly (---.as43234.net)
Date: June 13, 2015 12:35PM

Have you registered the prod.??? domain name with a dns server?

If not then there is no way to use these domain names to get to your PC

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.sub-70-199-170.myvzw.com)
Date: June 13, 2015 07:56PM

I sure have. If you do a ping you will get the correct IP. I have taken care of everything necessary first, that's why I posted.

Options: ReplyQuote
Re: WAMP Wants to add /UI to whatever I try and view outside my network, returning 404
Posted by: charlestwaters (---.hsd1.wa.comcast.net)
Date: June 13, 2015 09:49PM

** THIS HAS BEEN SOLVED **

Problem was the WD MyBookLive was overriding the Port Forwarding in the Router due to uPnP settings.

Options: ReplyQuote


Sorry, only registered users may post in this forum.