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 know it's been asked before (and answered for httpd.conf) trouble is my apache config is all in apache2.conf (must be a distro thing)
I want to know how to make the default server a virtual host, got a couple of vhosts setup and they resolve back to the default, so I am guessing I got to add something to my apache2.conf (clean install apt-get apache2) to make it a virtual server. Or, which is greatly more than possible, completely wrong?
The name of the config file doesn't matter in the slightest, just make the equivalent changes in apache2.conf. I don't really understand what you mean to make it virtual? you can take the default DocumentRoot and such and put them inside a <VirtualHost *:80> tag, there's nothing really difficult to it.
Doh! Sorry, just getting frustrated......happens to us all I guess
Ok so error gone, got a new one though "NameVirtualHost *:80 has no VirtualHosts" Something somewhere is wrong and I don't know where to look for it. Is there another file I gotta change?
Maybe the documentroot doesn't exist or some such. Check the end of /var/log/httpd/error_log after loading, or run a "apachectl configtest" or "httpd -t" to verbosely check the config file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.