You are here
Ivo The Master - Tue, 2011/11/29 - 13:16
Hi there!
I've started Turnkey Lamp version, config everything.
I go in Webmin.
Then I've created 2 different "no-ip.org" address (example1.no-ip.org and example2.no-ip.org) linked to the same IP address (my router external IP, obviously).
Then I've setted in my Port Forwarding router panel the permission to access from the external to my Turnkey PC (192.168.1.75) with the port 80.
So, in Webmin, accessing to Apache Control Panel, I've created 2 different Name-based virtualhost.
When I tried them, I have always the "Turnkey LAMP Home Page" (the one with the 3 options clickables), with the example1 and with the example2.
Why Apache couldn't read the hostname request?
Thanks
Forum:
I worked through this 6 months ago, was working, but now not..
I set up a name based secondary domain on one of my systems a while back. It was working. However last week I tested again and it was only resolving to the first domain.
So I am at the same place you are. It could have been a change in the package, or something overwritten by TKLBAM but it appears in my Apache that the second host is still there. It is just that Apache always responds as the first host when I try to go there.
Haven't tried with Webmin but can do manually
Here's how I do it with 2 separate domains both configured to point to the same IP (ie the server IP, or the router IP with port forwarding, etc.
The 2 FQDNs I will use for this example are: stuff.example1.com & morestuff.example2.net
This example is assuming a clean/default TKL LAMP install. It will apply generally to other setups but that can't 100% be guaranteed. Also this is how I do it and it works - I'm not guaranteeing that this is the best or only way! :)
So let's get to it:
For starters create your first new 'site':
This will open a blank file for editing. Inside this file paste/type this:
Exit and save (<Ctrl><x>, <Enter>) and do the same with your second site (and subsequent sites):
Finally enable your 2 (or more) new sites and restart Apache.
Notes:
Add new comment