"Invalid local IP" message on virtual host?
Posted by: dobbiehp (---.ph.ph.cox.net)
Date: July 25, 2017 09:54AM

Apache 2.4.23 - PHP 5.6.25 - MySQL 5.7.14
PHP 5.6.25 for CLI (Command-Line Interface)


Trying to set up a very basic web server. Its just a blank white webpage with links to videos located on my web server.

Machine that is running WAMP: 10.12.1.131. Windows 10 x64.

Apache status icon is green "All services running"

I want my web page to be public but I dont want to just hand out my IP address, so I'm using a dynamic dns provided from no-ip.org.

When I click on the WAMP icon and then hover over the "Your virtual hosts" option, it opens the menu and shows a single virtual host I have made.

When I click on the virtual host, a cmd window pops up giving this error message.




Sorry,

There is an error.
In the httpd-vhosts.conf file:

The IP used for the VirtualHost is not valid local IP


Switch cancelled

Press ENTER to continue...





Here are the contents of my vhost files.



# Virtual Hosts
#

<VirtualHost 10.12.1.131:1337>
DocumentRoot "C:\wamp64\www\test"
ServerName homemediatest
ServerAlias www.homemediatest.ddns.org
ErrorLog "logs/mysite-error.log"
CustomLog "logs/mysite-access.log" common
<Directory "C:\wamp64\www\homemediatest">
AllowOverride All
Options Indexes FollowSymLinks
Require all granted
</Directory>
</VirtualHost>






How is that invalid? My ISP blocks port 80 so I'm using 1337. Like I said, the machine running WAMP is 10.12.1.131.



Hosts file is nothong but




127.0.0.1 homemediatest.ddns.net
::1 homemediatest.ddns.net



Edited 1 time(s). Last edit at 07/25/2017 10:00AM by dobbiehp.

Options: ReplyQuote
Re: "Invalid local IP" message on virtual host?
Posted by: Otomatic (Moderator)
Date: July 25, 2017 10:11AM

Hi,

Update to Wampserver 3.0.9 then Right-click -> Wampserver parameters -> Use local IP other than 127.0.0

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

Options: ReplyQuote
Re: "Invalid local IP" message on virtual host?
Posted by: dobbiehp (---.ph.ph.cox.net)
Date: July 25, 2017 10:27AM

That fixed it. Thank you.

One more issue though. I still cannot access the web server outside of my LAN.

Options: ReplyQuote


Sorry, only registered users may post in this forum.