"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

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.6/7.1.18/7.0.30/5.6.36 - MySQL 5.7.22 - MariaDB 10.3.7
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.6/7.1.18/7.0.30/5.6.36 - MySQL 5.7.22 - MariaDB 10.3.7
PhPMyAdmin 4.8.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.