address=/ape.ape-test.local/MYIP
to the dnsmasq.conf file.
Running nmap on my server for ape.ape-test.local prints:
Starting Nmap 5.21 ( http://nmap.org ) at 2015-03-03 14:11 CET
Nmap scan report for ape.ape-test.local (xxx)
Host is up (0.0000060s latency).
rDNS record for xxx
Not shown: 994 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
53/tcp open domain
80/tcp open http
3306/tcp open mysql
6969/tcp open acmsoda
Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds
So it should be working, shouldn't it?
My /etc/apache2/sites-available/default file looks like this:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
ServerAlias ape.MYIP
ServerAlias *.ape.MYIP
</VirtualHost>
Of course every "MYIP" is in real my ip address.
Thanks for your help!