I'm running a local server manually using apache virtual hosts. Everything works fine, but the "problem" (it's not a real problem, actually) is that I'm struggling to remove the ".local" suffix I declared on "hosts" file before.
Even if I set ServerName Application1
or ServerAlias Application1
on apache config file, it doesn't work.
For the time being, it run as application1.local/index.html
and I'd like to run just as application1/index.html
.
I found the solution myself by setting the ServerName on Apache virtual-host config file as
application1
(without suffix) and changing /etc/hosts file to127.0.0.1 application1
and127.0.0.1 application1.local
and then restarting Apache.