[SOLVED] Configuring Debian with FQDN, Dynamic IP, virtual hosts
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would go even step further and remove the entry for abacus from 127.0.0.1 completely. Only use the 192.168... entry which is fine from my sight.
You also might want to try hostname --fqdn which should show you all of the fqdn the system can find configured. Right now it takes just the entry for the 127.0.0.1. You could also try to ping -c 1 -w 2 abacus to see to which ip the system resolves it.
It is my understand thet it is bad practice to put the FQDN in the /etc/hostname file. I thought it was only the machine name and then it was defined in /etc/hosts.
192.168.1.xxx is my local network IP range. My router is configured with ddns and port-forwards pertinent traffic to abacus. (192.168.1.3). This historically works perfectly, but I've been trying to install ISPconfig3 and now I'm running into issues. For instance, it used to serve several development sites perfectly, with only a simple change to /var/www symlink to point to what I wanted to work on. Since I installed ISPconfig3, the document roots all come up 403 - / forbidden. However, the Aliases like those for phpsysinfo, phpmyadmin, and webmail all work as they should. *:8080 comes up as no connection. The port is open, but it seems ISPconfig is not listening. Since the FQDN is not correct, I figured I would start there.
Holy Fluffbucket!!!! That was a royal pain in the painfullness.
I FINALLY managed to get ISPconfig3 to fire up on port 8080. I had to add the following line to /etc/apache2/apache2.conf
Code:
IncludeOptional sites-enabled/*.vhost
then I went through both .vhost files and gleaned the -'s and +'s out of them. Now ISPconfig3 runs fine. I also found my answer to my question regarding virtual hosts sharing a dynamic IP here. I guess it isn't that different form a shared static IP.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.