You are here
Name Based Virtual Hosts
I'm using Turnkey Wordpress and trying to set up a name based server (https://httpd.apache.org/docs/current/vhosts/name-based.html) so that website urls are names instead of ip addresses. This is a continuation of a previous thread, (https://www.turnkeylinux.org/forum/support/20160622/domain-based-virtual...).
The basic idea is to create a new config file, /etc/apache2/sites-available/my-site.conf, for a new wordpress site you will put in a new folder, www/var/mysite_html. The my-site.conf file is basiclly a modification of the wordpress.conf file found in the same directory.
In the previous thread cited above, this method is well discribed. But the thread wasn't finished. It ended with an unanswered question from Jeremy Davis who was offering support. The question was, did it work? Well for me it didn't.
This seems like a simple thing that should readily work. And their are other ways to do it as well. But Turnkey Wordpess almost seems like it's hard wired to use only the ip address. Unfortunately this is not very functional when it comes to developing wordpress sites.
I think I must be missing something. But even though this issue is touched upon in a number of threads, I could get no clue. I would appreciate any help offered.
Oh, by the way. Turnkey is great. Had the site up and runing in VirtualBox in 15 minutes. Except the ip address made salad of the sites links. :)