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 recently got a2billing (a VoIP billing software) installed by a consultant on my server. He installed it so a2billing runs as the "Default Server" of apache.
I don't want it to be like that because not only does it feel naked, but also anyone from anywhere can access the server via http and boom, there's the login screen.
Long story short, I want to move it to it's own virtual host on apache (billing.domain.com). That way I can point all new domains I purchase and have them go to /var/www/index.html as a placeholder without needing to create a new virtual host each time I buy a domain. I'd rather have THAT as my default server and not a2billing.
I know how virtual hosts work but this "Default Server" is a little too complicated once you click on it.
This is the first screen on Apache server on Webmin. When you click through into "Default Server", you see all of these new things whereas I was hoping to see something like this which you see when you click into the "Virtual Server".
Either way, you get the drift. I want this to be a virtual host. I can't simply create a new virtual host with Server Name = billing.domain.com and Document Root = /usr/share/a2billing/1-current/stable/admin/ which seems to be very easy and should get the job done.
Basically, I want that ^^ to be the virtual host and I want default server to be "Any" server name and "/var/www" as Document Root.
Any help would be great. Thanks!!
Last edited by Devileyezz; 02-06-2012 at 08:03 PM.
have you tried stopping a2billing , entering the vhost config in apache conf and then restarting apache? I see no reason why a new vhost wouldnt work with your specifications.
My apologies. I forgot to attach the screenshots along with the post and that's why it was hard for you to understand where I'm coming from. Please take a look at it and you'll see why I find it difficult.
The issue is that we have(let me speak for myself)...I have not had experience with your webapp(If I had the app, I would certainly figure it out).If you were doing it from commandline,then this would be so much easier(for me atleast).I was expecting a screenshot of your http.conf then I would advise you.But from your webapp, I have no idea on what to tell you as I have never used it before.
The issue is that we have(let me speak for myself)...I have not had experience with your webapp(If I had the app, I would certainly figure it out).If you were doing it from commandline,then this would be so much easier(for me atleast).I was expecting a screenshot of your http.conf then I would advise you.But from your webapp, I have no idea on what to tell you as I have never used it before.
I'll attach it in two minutes as soon as I find where it is. I think webmin changes the location.
cbtshare, thing is I buy lots of domains every now and then. But host only a handful.
So, my mindset was when I buy a domain I don't want to have to always set up a virtual host for them as most of them will go to /var/www/index.html which is the placeholder.
Every now and then I'd get a domain that I want to have a couple more pages, and for that a virtual host is fine. This whole dynamic got messed up when a2billing came into /var/www/.
Your suggestion is great, but unfortunately, it doesn't fit with what I'm looking to achieve. That's why I'm going nuts trying to move a2billing into it's own billing.domain.com virtual host.
ok I understand.Well I am not familiar with webmin, so may contacting support would help...I know cpanel has a forum to answer specific questions, so maybe webmin has such a place as well.
ok I understand.Well I am not familiar with webmin, so may contacting support would help...I know cpanel has a forum to answer specific questions, so maybe webmin has such a place as well.
It's ok even if it's not webmin.
If it's direct conf files that you're comfortable with - np, I'll go with it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.